@yao-pkg/pkg
Advanced tools
Comparing version 6.1.0 to 6.1.1
{ | ||
"name": "@yao-pkg/pkg", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Package your Node.js project into an executable", | ||
@@ -5,0 +5,0 @@ "main": "lib-es5/index.js", |
@@ -83,3 +83,3 @@ /* eslint-disable global-require */ | ||
function wrap(obj, name) { | ||
const f = fs[name]; | ||
const f = obj[name]; | ||
obj[name] = (...args) => { | ||
@@ -115,2 +115,3 @@ const args1 = Object.values(args); | ||
wrap(fs, 'read'); | ||
wrap(fs, 'readFile'); | ||
wrap(fs, 'writeSync'); | ||
@@ -136,4 +137,16 @@ wrap(fs, 'write'); | ||
wrap(fs, 'access'); | ||
wrap(fs.promises, 'open'); | ||
wrap(fs.promises, 'read'); | ||
wrap(fs.promises, 'readFile'); | ||
wrap(fs.promises, 'write'); | ||
wrap(fs.promises, 'readdir'); | ||
wrap(fs.promises, 'realpath'); | ||
wrap(fs.promises, 'stat'); | ||
wrap(fs.promises, 'lstat'); | ||
wrap(fs.promises, 'fstat'); | ||
wrap(fs.promises, 'access'); | ||
wrap(fs.promises, 'copyFile'); | ||
} | ||
} | ||
})(); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
250258
6644