Socket
Socket
Sign inDemoInstall

archiver

Package Overview
Dependencies
7
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 3.0.0

24

CHANGELOG.md
## Changelog
**2.1.1** — <small>_January 10th, 2018_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.1.0...2.1.1)
**3.0.0** - <small>_August 22, 2018_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.1.1...3.0.0)
- breaking: follow node LTS, remove support for versions under 6. (#339)
- bugfix: use stats in tar.js and core.js (#326)
- other: update to archiver-utils@2 and zip-stream@2
- other: remove lodash npm module usage (#335, #339)
- other: Avoid using deprecated Buffer constructor (#312)
- other: Remove unnecessary return and fix indentation (#297)
- test: now targeting node v10 (#320)
**2.1.1** — <small>_January 10, 2018_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.1.0...2.1.1)
- bugfix: fix relative symlink paths (#293)
- other: coding style fixes (#294)
**2.1.0** — <small>_October 12th, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.0.3...2.1.0)
**2.1.0** — <small>_October 12, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.0.3...2.1.0)

@@ -13,3 +23,3 @@ - refactor: `directory` now uses glob behind the scenes. should fix some directory recursion issues. (#267, #275)

**2.0.3** — <small>_August 25th, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.0.2...2.0.3)
**2.0.3** — <small>_August 25, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.0.2...2.0.3)

@@ -19,7 +29,7 @@ - bugfix: revert #261 due to potential issues with editing entryData in special cases.

**2.0.2** — <small>_August 25th, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.0.1...2.0.2)
**2.0.2** — <small>_August 25, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.0.1...2.0.2)
- docs: fix changelog date.
**2.0.1** — <small>_August 25th, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.0.0...2.0.1)
**2.0.1** — <small>_August 25, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/2.0.0...2.0.1)

@@ -29,3 +39,3 @@ - bugfix: add const to entryData in glob callback (#261)

**2.0.0** — <small>_July 5th, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/1.3.0...2.0.0)
**2.0.0** — <small>_July 5, 2017_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/1.3.0...2.0.0)

@@ -79,2 +89,2 @@ - feature: support for symlinks. (#228)

[Release Archive](https://github.com/archiverjs/node-archiver/releases)
[Release Archive](https://github.com/archiverjs/node-archiver/releases)

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

var async = require('async');
var _ = require('lodash');
var path = require('path');

@@ -239,3 +238,2 @@ var util = require('archiver-utils');

this.emit('error', new ArchiverError('NOENDMETHOD'));
return;
}

@@ -383,3 +381,2 @@ };

this._finalize();
return;
}

@@ -442,3 +439,3 @@ };

if (stats.size) {
this._fsEntriesTotalBytes += stats.size;
this._fsEntriesTotalBytes += stats.size;
}

@@ -499,3 +496,3 @@

task.data.sourceType = 'buffer';
task.source = new Buffer(0);
task.source = Buffer.concat([]);
} else if (stats.isSymbolicLink() && this._moduleSupports('symlink')) {

@@ -507,10 +504,10 @@ var linkPath = fs.readlinkSync(task.filepath);

task.data.sourceType = 'buffer';
task.source = new Buffer(0);
task.source = Buffer.concat([]);
} else {
if (stats.isDirectory()) {
this.emit('warning', new ArchiverError('DIRECTORYNOTSUPPORTED', task.data));
this.emit('warning', new ArchiverError('DIRECTORYNOTSUPPORTED', task.data));
} else if (stats.isSymbolicLink()) {
this.emit('warning', new ArchiverError('SYMLINKNOTSUPPORTED', task.data));
this.emit('warning', new ArchiverError('SYMLINKNOTSUPPORTED', task.data));
} else {
this.emit('warning', new ArchiverError('ENTRYNOTSUPPORTED', task.data));
this.emit('warning', new ArchiverError('ENTRYNOTSUPPORTED', task.data));
}

@@ -650,3 +647,3 @@

var ignoreMatch = false;
var entryData = _.extend({}, data);
var entryData = Object.assign({}, data);
entryData.name = match;

@@ -741,3 +738,3 @@ entryData.prefix = destpath;

function onGlobMatch(match){
var entryData = _.extend({}, data);
var entryData = Object.assign({}, data);

@@ -884,3 +881,3 @@ if (options.cwd) {

data: data,
source: new Buffer(0)
source: Buffer.concat([])
});

@@ -887,0 +884,0 @@

@@ -81,4 +81,4 @@ /**

append(null, source);
} else if (data.sourceType === 'stream' && data._stats) {
data.size = data._stats.size;
} else if (data.sourceType === 'stream' && data.stats) {
data.size = data.stats.size;

@@ -85,0 +85,0 @@ var entry = self.engine.entry(data, function(err) {

{
"name": "archiver",
"version": "2.1.1",
"version": "3.0.0",
"description": "a streaming interface for archive generation",

@@ -24,3 +24,3 @@ "homepage": "https://github.com/archiverjs/node-archiver",

"engines": {
"node": ">= 4"
"node": ">= 6"
},

@@ -33,10 +33,9 @@ "scripts": {

"dependencies": {
"archiver-utils": "^1.3.0",
"archiver-utils": "^2.0.0",
"async": "^2.0.0",
"buffer-crc32": "^0.2.1",
"glob": "^7.0.0",
"lodash": "^4.8.0",
"readable-stream": "^2.0.0",
"tar-stream": "^1.5.0",
"zip-stream": "^1.2.0"
"zip-stream": "^2.0.1"
},

@@ -47,8 +46,8 @@ "devDependencies": {

"chai": "^4.0.0",
"mocha": "^3.1.1",
"rimraf": "^2.4.2",
"mocha": "^5.0.0",
"rimraf": "^2.6.0",
"mkdirp": "^0.5.0",
"stream-bench": "^0.1.2",
"tar": "^3.1.0",
"yauzl": "^2.3.1"
"tar": "^4.3.0",
"yauzl": "^2.9.0"
},

@@ -55,0 +54,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc