autoformat more easy files

This commit is contained in:
Zeke Sikelianos 2016-03-25 12:50:33 -07:00 committed by Kevin Sawicki
parent 80f7c82f93
commit c845ea8372
5 changed files with 99 additions and 101 deletions

View file

@ -1,15 +1,14 @@
// Do not expose the internal modules to `require`.
const hideInternalModules = function() {
var globalPaths = require('module').globalPaths;
const hideInternalModules = function () {
var globalPaths = require('module').globalPaths
if (globalPaths.length === 3) {
// Remove the "common/api/lib" and "browser-or-renderer/api/lib".
return globalPaths.splice(0, 2);
return globalPaths.splice(0, 2)
}
};
}
// Attaches properties to |exports|.
exports.defineProperties = function(exports) {
exports.defineProperties = function (exports) {
return Object.defineProperties(exports, {
hideInternalModules: {
enumerable: true,
@ -18,48 +17,47 @@ exports.defineProperties = function(exports) {
// Common modules, please sort with alphabet order.
clipboard: {
// Must be enumerable, otherwise it woulde be invisible to remote module.
enumerable: true,
get: function() {
return require('../clipboard');
get: function () {
return require('../clipboard')
}
},
crashReporter: {
enumerable: true,
get: function() {
return require('../crash-reporter');
get: function () {
return require('../crash-reporter')
}
},
deprecations: {
enumerable: true,
get: function() {
return require('../deprecations');
get: function () {
return require('../deprecations')
}
},
nativeImage: {
enumerable: true,
get: function() {
return require('../native-image');
get: function () {
return require('../native-image')
}
},
shell: {
enumerable: true,
get: function() {
return require('../shell');
get: function () {
return require('../shell')
}
},
// The internal modules, invisible unless you know their names.
CallbacksRegistry: {
get: function() {
return require('../callbacks-registry');
get: function () {
return require('../callbacks-registry')
}
},
deprecate: {
get: function() {
return require('../deprecate');
get: function () {
return require('../deprecate')
}
}
});
};
})
}