Comparing version 2.4.1 to 2.4.2
@@ -363,2 +363,5 @@ var fs = require("fs"); | ||
var defaultFileMode = parseInt("0100664", 8); | ||
var defaultDirectoryMode = parseInt("040775", 8); | ||
// this class is not part of the public API | ||
@@ -374,3 +377,3 @@ function Entry(metadataPath, isDirectory, options) { | ||
} else { | ||
this.setFileAttributesMode(isDirectory ? 040775 : 0100664); | ||
this.setFileAttributesMode(isDirectory ? defaultDirectoryMode : defaultFileMode); | ||
} | ||
@@ -377,0 +380,0 @@ if (isDirectory) { |
{ | ||
"name": "yazl", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "yet another zip library for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,7 +32,7 @@ # yazl | ||
mtime: new Date(), | ||
mode: 0100664, // -rw-rw-r-- | ||
mode: parseInt("0100664", 8), // -rw-rw-r-- | ||
}); | ||
zipfile.addBuffer(new Buffer("hello"), "hello.txt", { | ||
mtime: new Date(), | ||
mode: 0100664, // -rw-rw-r-- | ||
mode: parseInt("0100664", 8), // -rw-rw-r-- | ||
}); | ||
@@ -104,3 +104,3 @@ // call end() after all the files have been added | ||
mtime: new Date(), | ||
mode: 0100664, | ||
mode: parseInt("0100664", 8), | ||
compress: true, | ||
@@ -129,3 +129,3 @@ forceZip64Format: false, | ||
mtime: new Date(), | ||
mode: 0100664, | ||
mode: parseInt("0100664", 8), | ||
compress: true, | ||
@@ -276,5 +276,7 @@ forceZip64Format: false, | ||
Always `45`, meaning 4.5. | ||
This enables the ZIP64 format. | ||
Usually `20`, meaning 2.0. This allows filenames to be UTF-8 encoded. | ||
When ZIP64 format is used, some of the Version Needed to Extract values will be `45`, meaning 4.5. | ||
When this happens, there may be a mix of `20` and `45` values throughout the zipfile. | ||
### General Purpose Bit Flag | ||
@@ -329,2 +331,4 @@ | ||
* 2.4.2 | ||
* Remove octal literals to make yazl compatible with strict mode. [pull #28](https://github.com/thejoshwolfe/yazl/pull/28) | ||
* 2.4.1 | ||
@@ -331,0 +335,0 @@ * Fix Mac Archive Utility compatibility issue. [issue #24](https://github.com/thejoshwolfe/yazl/issues/24) |
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
42943
600
354