2016-01-14 18:35:29 +00:00
|
|
|
// Attaches properties to |exports|.
|
2016-03-25 19:50:33 +00:00
|
|
|
exports.defineProperties = function (exports) {
|
2016-01-12 02:40:23 +00:00
|
|
|
return Object.defineProperties(exports, {
|
2016-01-14 18:35:29 +00:00
|
|
|
// Common modules, please sort with alphabet order.
|
2016-01-12 02:40:23 +00:00
|
|
|
clipboard: {
|
2016-01-14 18:35:29 +00:00
|
|
|
// Must be enumerable, otherwise it woulde be invisible to remote module.
|
2016-01-12 02:40:23 +00:00
|
|
|
enumerable: true,
|
2016-03-25 19:50:33 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../clipboard')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
crashReporter: {
|
|
|
|
enumerable: true,
|
2016-03-25 19:50:33 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../crash-reporter')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
nativeImage: {
|
|
|
|
enumerable: true,
|
2016-03-25 19:50:33 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../native-image')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
shell: {
|
|
|
|
enumerable: true,
|
2016-03-25 19:50:33 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../shell')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2016-01-14 18:35:29 +00:00
|
|
|
// The internal modules, invisible unless you know their names.
|
2016-01-12 02:40:23 +00:00
|
|
|
CallbacksRegistry: {
|
2016-03-25 19:50:33 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../callbacks-registry')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
2016-04-28 17:14:42 +00:00
|
|
|
},
|
|
|
|
deprecate: {
|
|
|
|
get: function () {
|
|
|
|
return require('../deprecate')
|
|
|
|
}
|
|
|
|
},
|
|
|
|
deprecations: {
|
|
|
|
get: function () {
|
|
|
|
return require('../deprecations')
|
|
|
|
}
|
2016-05-25 05:38:35 +00:00
|
|
|
},
|
|
|
|
isPromise: {
|
|
|
|
get: function () {
|
|
|
|
return require('../is-promise')
|
|
|
|
}
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
2016-03-25 19:50:33 +00:00
|
|
|
})
|
|
|
|
}
|