Socket
Socket
Sign inDemoInstall

compress-commons

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compress-commons - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

7

lib/archivers/zip/zip-archive-entry.js

@@ -9,2 +9,3 @@ /**

var inherits = require('util').inherits;
var normalizePath = require('normalize-path');

@@ -173,3 +174,3 @@ var ArchiveEntry = require('../archive-entry');

ZipArchiveEntry.prototype.setName = function(name) {
name = name.replace(/\\/g, '/').replace(/:/g, '').replace(/^\/+/, '');
name = normalizePath(name, false).replace(/^\w+:/, '').replace(/^(\.\.\/|\/)+/, '');

@@ -223,4 +224,8 @@ if (Buffer.byteLength(name) !== name.length) {

ZipArchiveEntry.prototype.isUnixSymlink = function() {
return (this.getUnixMode() & constants.S_IFLINK) === constants.S_IFLINK;
};
ZipArchiveEntry.prototype.isZip64 = function() {
return this.csize > constants.ZIP64_MAGIC || this.size > constants.ZIP64_MAGIC;
};

3

package.json
{
"name": "compress-commons",
"version": "0.4.1",
"version": "0.4.2",
"description": "a library that defines a common interface for working with archive formats within node",

@@ -32,2 +32,3 @@ "homepage": "https://github.com/archiverjs/node-compress-commons",

"node-int64": "~0.4.0",
"normalize-path": "~2.0.0",
"readable-stream": "~2.0.0"

@@ -34,0 +35,0 @@ },

@@ -1,2 +0,2 @@

# Compress Commons v0.4.1 [![Build Status](https://travis-ci.org/archiverjs/node-compress-commons.svg?branch=master)](https://travis-ci.org/archiverjs/node-compress-commons) [![Build status](https://ci.appveyor.com/api/projects/status/fx3066dufdpar0it/branch/master?svg=true)](https://ci.appveyor.com/project/ctalkington/node-compress-commons/branch/master)
# Compress Commons v0.4.2 [![Build Status](https://travis-ci.org/archiverjs/node-compress-commons.svg?branch=master)](https://travis-ci.org/archiverjs/node-compress-commons) [![Build status](https://ci.appveyor.com/api/projects/status/fx3066dufdpar0it/branch/master?svg=true)](https://ci.appveyor.com/project/ctalkington/node-compress-commons/branch/master)

@@ -3,0 +3,0 @@ Compress Commons is a library that defines a common interface for working with archive formats within node.

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