compress-commons
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -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; | ||
}; |
{ | ||
"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. |
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
32640
840
5
+ Addednormalize-path@~2.0.0
+ Addednormalize-path@2.0.1(transitive)