Comparing version 0.4.3 to 0.4.4
@@ -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" |
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
27783
478