Comparing version 6.0.2 to 6.1.0
'use strict'; | ||
const {promisify} = require('util'); | ||
const {promisify} = require('node:util'); | ||
@@ -5,0 +5,0 @@ const add = (emitter, event, result) => { |
'use strict'; | ||
const process = require('node:process'); | ||
const isString = (a) => typeof a === 'string'; | ||
const { | ||
createReadStream, | ||
createWriteStream, | ||
} = require('fs'); | ||
} = require('node:fs'); | ||
@@ -14,8 +14,8 @@ const { | ||
unlink, | ||
} = require('fs/promises'); | ||
} = require('node:fs/promises'); | ||
const path = require('path'); | ||
const {EventEmitter} = require('events'); | ||
const {inherits, promisify} = require('util'); | ||
const assert = require('assert'); | ||
const path = require('node:path'); | ||
const {EventEmitter} = require('node:events'); | ||
const {inherits, promisify} = require('node:util'); | ||
const assert = require('node:assert'); | ||
@@ -28,3 +28,3 @@ const pipe = require('pipe-io'); | ||
const superfind = require('./superfind'); | ||
const isString = (a) => typeof a === 'string'; | ||
const {dirname} = path; | ||
@@ -189,4 +189,4 @@ | ||
.on('error', (error) => { | ||
this.emit('error', error); | ||
}) | ||
this.emit('error', error); | ||
}) | ||
.on('end', end); | ||
@@ -193,0 +193,0 @@ }; |
{ | ||
"name": "onezip", | ||
"version": "6.0.2", | ||
"version": "6.1.0", | ||
"description": "pack and extract .zip archives with emitter", | ||
@@ -30,3 +30,3 @@ "type": "commonjs", | ||
"yargs-parser": "^21.1.1", | ||
"yauzl": "^2.6.0", | ||
"yauzl": "^3.1.3", | ||
"yazl": "^2.4.1" | ||
@@ -37,4 +37,5 @@ }, | ||
"@iocmd/wait": "^2.1.0", | ||
"@putout/eslint-flat": "^2.0.0", | ||
"c8": "^9.1.0", | ||
"eslint": "^9.0.0-alpha.2", | ||
"eslint-plugin-n": "^16.6.2", | ||
"eslint-plugin-putout": "^22.3.1", | ||
@@ -44,3 +45,2 @@ "madrun": "^10.0.1", | ||
"nodemon": "^3.0.3", | ||
"nyc": "^15.0.0", | ||
"putout": "^35.0.1", | ||
@@ -47,0 +47,0 @@ "rimraf": "^5.0.5", |
@@ -35,3 +35,3 @@ # OneZip [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] | ||
`onezip` could be used localy. It will emit event on every packed/extracted file. | ||
`onezip` could be used locally. It will emit event on every packed/extracted file. | ||
Good for making progress bars. | ||
@@ -55,3 +55,3 @@ | ||
const onezip = require('onezip'); | ||
const path = require('path'); | ||
const path = require('node:path'); | ||
const cwd = process.cwd(); | ||
@@ -92,3 +92,3 @@ const name = 'pipe.tar.gz'; | ||
const onezip = require('onezip'); | ||
const path = require('path'); | ||
const path = require('node:path'); | ||
const cwd = process.cwd(); | ||
@@ -95,0 +95,0 @@ const name = 'pipe.zip'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
21425
367
0
+ Addedyauzl@3.2.0(transitive)
- Removedfd-slicer@1.1.0(transitive)
- Removedyauzl@2.10.0(transitive)
Updatedyauzl@^3.1.3