Comparing version 5.0.2 to 5.1.0
## Changelog | ||
**5.1.0** - <small>_November 19, 2020_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/5.0.2...5.1.0) | ||
Features | ||
- Add mode parameter to symlink (#469) | ||
- Add isRegisteredFormat method (#462) | ||
Bug Fixes | ||
- Fix glob() `options` parameter's link (#453) | ||
Maintenance | ||
- Bump archiver-jsdoc-theme from 1.1.1 to 1.1.3 (#472) | ||
- Bump zip-stream from 4.0.2 to 4.0.4 (#473) | ||
- Bump jsdoc from 3.6.5 to 3.6.6 (#452) | ||
- Bump readdir-glob from 1.0.0 to 1.1.1 (#460) | ||
- Bump mocha from 8.1.3 to 8.2.1 (#465) | ||
- Bump actions/setup-node from v2.1.1 to v2.1.2 (#459) | ||
- Bump actions/checkout from v2.3.2 to v2.3.4 (#466) | ||
**5.0.2** - <small>_September 11, 2020_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/5.0.1...5.0.2) | ||
Maintenance | ||
* Force bump tar-stream from 2.1.2 to 2.1.4 (#450) | ||
**5.0.1** - <small>_September 10, 2020_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/5.0.0...5.0.1) | ||
Maintenance | ||
- Bump tar-stream from 2.1.3 to 2.1.4 (#448) | ||
- Update docs (#441) | ||
- Bump mocha from 8.1.1 to 8.1.3 (#444) | ||
- Bump tar from 6.0.2 to 6.0.5 (#439) | ||
- Bump mocha from 8.1.0 to 8.1.1 (#437) | ||
- Bump actions/checkout from v2.3.1 to v2.3.2 (#438) | ||
- Bump mocha from 8.0.1 to 8.1.0 (#436) | ||
- Bump actions/setup-node from v2.1.0 to v2.1.1 (#432) | ||
- Bump jsdoc from 3.6.4 to 3.6.5 (#434) | ||
**5.0.0** - <small>_July 22, 2020_</small> — [Diff](https://github.com/archiverjs/node-archiver/compare/4.0.2...5.0.0) | ||
@@ -4,0 +45,0 @@ |
14
index.js
@@ -66,2 +66,16 @@ /** | ||
/** | ||
* Check if the format is already registered. | ||
* | ||
* @param {String} format the name of the format. | ||
* @return boolean | ||
*/ | ||
vending.isRegisteredFormat = function (format) { | ||
if (formats[format]) { | ||
return true; | ||
} | ||
return false; | ||
}; | ||
vending.registerFormat('zip', require('./lib/plugins/zip')); | ||
@@ -68,0 +82,0 @@ vending.registerFormat('tar', require('./lib/plugins/tar')); |
@@ -720,3 +720,3 @@ /** | ||
* @param {String} pattern The [glob pattern]{@link https://github.com/isaacs/minimatch} to match. | ||
* @param {Object} options See [node-glob]{@link https://github.com/yqnn/node-readdir-glob#options}. | ||
* @param {Object} options See [node-readdir-glob]{@link https://github.com/yqnn/node-readdir-glob#options}. | ||
* @param {EntryData} data See also [ZipEntryData]{@link ZipEntryData} and | ||
@@ -853,5 +853,6 @@ * [TarEntryData]{@link TarEntryData}. | ||
* @param {String} target The target path (within archive). | ||
* @param {Number} mode Sets the entry permissions. | ||
* @return {this} | ||
*/ | ||
Archiver.prototype.symlink = function(filepath, target) { | ||
Archiver.prototype.symlink = function(filepath, target, mode) { | ||
if (this._state.finalize || this._state.aborted) { | ||
@@ -883,2 +884,6 @@ this.emit('error', new ArchiverError('QUEUECLOSED')); | ||
if (typeof mode === "number") { | ||
data.mode = mode; | ||
} | ||
this._entriesCount++; | ||
@@ -885,0 +890,0 @@ this._queue.push({ |
{ | ||
"name": "archiver", | ||
"version": "5.0.2", | ||
"version": "5.1.0", | ||
"description": "a streaming interface for archive generation", | ||
@@ -38,6 +38,6 @@ "homepage": "https://github.com/archiverjs/node-archiver", | ||
"tar-stream": "^2.1.4", | ||
"zip-stream": "^4.0.0" | ||
"zip-stream": "^4.0.4" | ||
}, | ||
"devDependencies": { | ||
"archiver-jsdoc-theme": "^1.1.1", | ||
"archiver-jsdoc-theme": "^1.1.3", | ||
"chai": "^4.2.0", | ||
@@ -44,0 +44,0 @@ "jsdoc": "^3.6.4", |
@@ -92,2 +92,4 @@ # Archiver | ||
You can check if format already exists before to register a new one with `isRegisteredFormat`. | ||
_Formats will be changing in the future to implement a middleware approach._ |
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
50559
1273
95
Updatedzip-stream@^4.0.4