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

yazl

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yazl - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

5

index.js

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

2

package.json
{
"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)

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