🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

shell-quote

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shell-quote - npm Package Compare versions

Comparing version

to
1.8.2

22

package.json
{
"name": "shell-quote",
"description": "quote and parse shell commands",
"version": "1.8.1",
"version": "1.8.2",
"author": {

@@ -15,12 +15,13 @@ "name": "James Halliday",

"devDependencies": {
"@ljharb/eslint-config": "^21.0.1",
"aud": "^2.0.2",
"auto-changelog": "^2.4.0",
"@ljharb/eslint-config": "^21.1.1",
"auto-changelog": "^2.5.0",
"encoding": "^0.1.13",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"jackspeak": "=2.1.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.6.3"
"tape": "^5.9.0"
},

@@ -49,3 +50,3 @@ "homepage": "https://github.com/ljharb/shell-quote",

"test": "npm run tests-only",
"posttest": "aud --production",
"posttest": "npx npm@'>=10.2' audit --production",
"version": "auto-changelog && git add CHANGELOG.md",

@@ -65,5 +66,10 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""

"ignore": [
".github/workflows"
".github/workflows",
"example",
"CHANGELOG.md"
]
},
"engines": {
"node": ">= 0.4"
}
}

@@ -5,2 +5,5 @@ 'use strict';

return xs.map(function (s) {
if (s === '') {
return '\'\'';
}
if (s && typeof s === 'object') {

@@ -7,0 +10,0 @@ return s.op.replace(/(.)/g, '\\$1');

@@ -41,3 +41,5 @@ 'use strict';

t.deepEqual(parse('-x "" -y'), ['-x', '', '-y'], 'empty string is preserved');
t.end();
});

@@ -51,1 +51,7 @@ 'use strict';

});
test('empty strings', function (t) {
t.equal(quote(['-x', '', 'y']), '-x \'\' y');
t.end();
});