Socket
Socket
Sign inDemoInstall

@electron/asar

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron/asar - npm Package Compare versions

Comparing version 3.2.5 to 3.2.6

20

lib/asar.js

@@ -183,2 +183,3 @@ 'use strict'

const extractionErrors = []
for (const fullPath of filenames) {

@@ -204,10 +205,19 @@ // Remove leading slash

} else {
// it's a file, extract it
const content = disk.readFileSync(filesystem, filename, file)
fs.writeFileSync(destFilename, content)
if (file.executable) {
fs.chmodSync(destFilename, '755')
// it's a file, try to extract it
try {
const content = disk.readFileSync(filesystem, filename, file)
fs.writeFileSync(destFilename, content)
if (file.executable) {
fs.chmodSync(destFilename, '755')
}
} catch (e) {
extractionErrors.push(e)
}
}
}
if (extractionErrors.length) {
throw new Error(
'Unable to extract some files:\n\n' +
extractionErrors.map(error => error.stack).join('\n\n'))
}
}

@@ -214,0 +224,0 @@

@@ -54,3 +54,3 @@ 'use strict'

}
node.files = {}
node.files = node.files || {}
return node.files

@@ -57,0 +57,0 @@ }

{
"name": "@electron/asar",
"description": "Creating Electron app packages",
"version": "3.2.5",
"version": "3.2.6",
"main": "./lib/asar.js",

@@ -6,0 +6,0 @@ "types": "./lib/index.d.ts",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc