Comparing version 3.1.0 to 4.0.0
@@ -13,3 +13,2 @@ /*! cross-zip. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
var path = require('path') | ||
var rimraf = require('rimraf') | ||
@@ -51,3 +50,3 @@ function zip (inPath, outPath, cb) { | ||
if (process.platform === 'win32') { | ||
rimraf(outPath, doZip2) | ||
fs.rmdir(outPath, { recursive: true, maxRetries: 3 }, doZip2) | ||
} else { | ||
@@ -78,3 +77,3 @@ doZip2() | ||
} | ||
rimraf.sync(outPath) | ||
fs.rmdirSync(outPath, { recursive: true, maxRetries: 3 }) | ||
} | ||
@@ -81,0 +80,0 @@ var opts = { |
{ | ||
"name": "cross-zip", | ||
"description": "Cross-platform .zip file creation", | ||
"version": "3.1.0", | ||
"version": "4.0.0", | ||
"author": { | ||
@@ -37,4 +37,4 @@ "name": "Feross Aboukhadijeh", | ||
}, | ||
"dependencies": { | ||
"rimraf": "^3.0.0" | ||
"engines": { | ||
"node": ">=12.10" | ||
}, | ||
@@ -41,0 +41,0 @@ "funding": [ |
var fs = require('fs') | ||
var path = require('path') | ||
var rimraf = require('rimraf') | ||
var test = require('tape') | ||
@@ -15,3 +14,3 @@ var zip = require('../') | ||
var tmpFilePath = path.join(tmpPath, 'file.txt') | ||
rimraf.sync(tmpFilePath) | ||
fs.rmdirSync(tmpFilePath, { recursive: true }) | ||
zip.unzipSync(fileZipPath, tmpPath) | ||
@@ -30,3 +29,3 @@ | ||
var tmpFilePath = path.join(tmpPath, 'file.txt') | ||
rimraf(tmpFilePath, function (err) { | ||
fs.rmdir(tmpFilePath, { recursive: true }, function (err) { | ||
t.error(err) | ||
@@ -53,3 +52,3 @@ | ||
var tmpFilePath = path.join(tmpPath, 'file.txt') | ||
rimraf(tmpFilePath, function (err) { | ||
fs.rmdir(tmpFilePath, { recursive: true }, function (err) { | ||
t.error(err) | ||
@@ -56,0 +55,0 @@ |
var fs = require('fs') | ||
var path = require('path') | ||
var rimraf = require('rimraf') | ||
var test = require('tape') | ||
@@ -17,3 +16,3 @@ var zip = require('../') | ||
var tmpFilePath = path.join(tmpPath, 'file.txt') | ||
rimraf.sync(tmpFilePath) | ||
fs.rmdirSync(tmpFilePath, { recursive: true }) | ||
zip.unzipSync(tmpFileZipPath, tmpPath) | ||
@@ -36,3 +35,3 @@ | ||
var tmpFilePath = path.join(tmpPath, 'file.txt') | ||
rimraf(tmpFilePath, function (err) { | ||
fs.rmdir(tmpFilePath, { recursive: true }, function (err) { | ||
t.error(err) | ||
@@ -39,0 +38,0 @@ |
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
11386
0
217
- Removedrimraf@^3.0.0
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedwrappy@1.0.2(transitive)