Socket
Socket
Sign inDemoInstall

7zip-min

Package Overview
Dependencies
1
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.3 to 1.4.4

6

CHANGELOG.md
# Changelog
## v1.4.4
- fix error with 'list' command if file contains " = " in the name
- bump dependencies
- add test to check filename with " = " for list command
## v1.4.2

@@ -4,0 +10,0 @@

5

index.js

@@ -115,4 +115,5 @@ 'use strict';

for (let line of lines) {
const data = line.split(' = ');
if (data.length !== 2) continue;
// Split by first " = " occurrence. This will also add an empty 3rd elm to the array. Just ignore it
const data = line.split(/ = (.*)/s);
if (data.length !== 3) continue;
const name = data[0].trim();

@@ -119,0 +120,0 @@ const val = data[1].trim();

4

package.json
{
"name": "7zip-min",
"version": "1.4.3",
"version": "1.4.4",
"description": "Standalone cross-platform zip/unzip with 7za",

@@ -40,3 +40,3 @@ "main": "index.js",

"ava": "^4.0.1",
"fs-extra": "^10.0.0",
"fs-extra": "^11.1.0",
"fsify": "^5.0.0",

@@ -43,0 +43,0 @@ "glob": "^8.0.1",

@@ -31,3 +31,3 @@ 'use strict';

type: fsify.FILE,
name: 'testDir_dir1_file1.txt',
name: 'Some = File = Name.txt',
contents: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vel odio nunc.',

@@ -72,2 +72,5 @@ },

t.is(content.length, 6);
content.forEach(el => {
t.true(Boolean(el.name));
});
});

@@ -74,0 +77,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc