Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,3 @@ { | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@continuous-auth/semantic-release-npm", | ||
@@ -7,0 +8,0 @@ "@semantic-release/github" |
@@ -0,1 +1,8 @@ | ||
## [2.0.1](https://github.com/electron/asar/compare/v2.0.0...v2.0.1) (2019-04-29) | ||
### Bug Fixes | ||
* don't monkeypatch fs with promisified versions ([#176](https://github.com/electron/asar/issues/176)) ([319dd81](https://github.com/electron/asar/commit/319dd81)) | ||
# Changes By Version | ||
@@ -2,0 +9,0 @@ |
@@ -8,3 +8,3 @@ 'use strict' | ||
const methods = [ | ||
const promisifiedMethods = [ | ||
'lstat', | ||
@@ -16,9 +16,15 @@ 'readFile', | ||
for (const method of methods) { | ||
fs[method] = promisify(fs[method]) | ||
const promisified = {} | ||
for (const method of Object.keys(fs)) { | ||
if (promisifiedMethods.includes(method)) { | ||
promisified[method] = promisify(fs[method]) | ||
} else { | ||
promisified[method] = fs[method] | ||
} | ||
} | ||
// To make it more like fs-extra | ||
fs.mkdirp = promisify(mkdirp) | ||
fs.mkdirpSync = mkdirp.sync | ||
promisified.mkdirp = promisify(mkdirp) | ||
promisified.mkdirpSync = mkdirp.sync | ||
module.exports = fs | ||
module.exports = promisified |
@@ -5,3 +5,3 @@ { | ||
"description": "Creating Electron app packages", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"bin": { | ||
@@ -42,2 +42,3 @@ "asar": "./bin/asar.js" | ||
"@continuous-auth/semantic-release-npm": "^1.0.3", | ||
"@semantic-release/changelog": "^3.0.2", | ||
"electron": "^5.0.0", | ||
@@ -44,0 +45,0 @@ "electron-mocha": "^8.0.1", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
30537
550
0
10