Socket
Socket
Sign inDemoInstall

asar

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asar - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

1

.releaserc.json

@@ -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 @@

18

lib/wrapped-fs.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc