Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cross-zip

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-zip - npm Package Compare versions

Comparing version 3.1.0 to 4.0.0

5

index.js

@@ -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 = {

6

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc