Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asar

Package Overview
Dependencies
Maintainers
5
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 0.4.3 to 0.4.4

15

lib/disk.js

@@ -9,2 +9,4 @@ var fs = require('fs');

var filesystemCache = {};
var copyFileTo = function(dest, src, filename) {

@@ -72,7 +74,10 @@ var content = fs.readFileSync(path.join(src, filename));

module.exports.readFilesystem = function(archive) {
var header = this.readArchiveHeader(archive);
var filesystem = new Filesystem(archive);
filesystem.header = header.header;
filesystem.headerSize = header.headerSize;
return filesystem;
if (!filesystemCache[archive]) {
var header = this.readArchiveHeader(archive);
var filesystem = new Filesystem(archive);
filesystem.header = header.header;
filesystem.headerSize = header.headerSize;
filesystemCache[archive] = filesystem;
}
return filesystemCache[archive];
};

@@ -79,0 +84,0 @@

@@ -5,3 +5,3 @@ {

"description": "Creating atom-shell app packages",
"version": "0.4.3",
"version": "0.4.4",
"bin": {

@@ -8,0 +8,0 @@ "asar": "bin/asar"

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