autoformat more easy files
This commit is contained in:
parent
67fa250020
commit
3855a774ab
19 changed files with 1068 additions and 1076 deletions
|
@ -1,20 +1,20 @@
|
|||
(function () {
|
||||
return function(process, require, asarSource) {
|
||||
;(function () {
|
||||
return function (process, require, asarSource) {
|
||||
// Make asar.coffee accessible via "require".
|
||||
process.binding('natives').ATOM_SHELL_ASAR = asarSource;
|
||||
process.binding('natives').ATOM_SHELL_ASAR = asarSource
|
||||
|
||||
// Monkey-patch the fs module.
|
||||
require('ATOM_SHELL_ASAR').wrapFsWithAsar(require('fs'));
|
||||
require('ATOM_SHELL_ASAR').wrapFsWithAsar(require('fs'))
|
||||
|
||||
// Make graceful-fs work with asar.
|
||||
var source = process.binding('natives');
|
||||
source['original-fs'] = source.fs;
|
||||
var source = process.binding('natives')
|
||||
source['original-fs'] = source.fs
|
||||
return source['fs'] = `
|
||||
var nativeModule = new process.NativeModule('original-fs');
|
||||
nativeModule.cache();
|
||||
nativeModule.compile();
|
||||
var asar = require('ATOM_SHELL_ASAR');
|
||||
asar.wrapFsWithAsar(nativeModule.exports);
|
||||
module.exports = nativeModule.exports`;
|
||||
};
|
||||
})();
|
||||
var nativeModule = new process.NativeModule('original-fs')
|
||||
nativeModule.cache()
|
||||
nativeModule.compile()
|
||||
var asar = require('ATOM_SHELL_ASAR')
|
||||
asar.wrapFsWithAsar(nativeModule.exports)
|
||||
module.exports = nativeModule.exports`
|
||||
}
|
||||
})()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue