Socket
Socket
Sign inDemoInstall

shell-quote

Package Overview
Dependencies
0
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.1 to 1.7.2

3

CHANGELOG.md

@@ -7,2 +7,5 @@ # acorn-node change log

## 1.7.2
* Fix a regression introduced in 1.6.3. This reverts the Windows path quoting fix. ([144e1c2](https://github.com/substack/node-shell-quote/commit/144e1c20cd57549a414c827fb3032e60b7b8721c))
## 1.7.1

@@ -9,0 +12,0 @@ * Fix `$` being removed when not part of an environment variable name. ([@Adman](https://github.com/Admin) in [#32](https://github.com/substack/node-shell-quote/pull/32))

6

index.js

@@ -13,7 +13,3 @@ exports.quote = function (xs) {

else {
s = String(s).replace(/([A-z]:)?([#!"$&'()*,:;<=>?@\[\\\]^`{|}])/g, '$1\\$2');
// unescape paths in windows
s = s.replace(/\\\\/g, '\\')
return s
return String(s).replace(/([A-z]:)?([#!"$&'()*,:;<=>?@\[\\\]^`{|}])/g, '$1\\$2');
}

@@ -20,0 +16,0 @@ }).join(' ');

{
"name": "shell-quote",
"description": "quote and parse shell commands",
"version": "1.7.1",
"version": "1.7.2",
"author": {

@@ -6,0 +6,0 @@ "name": "James Halliday",

@@ -23,2 +23,3 @@ var test = require('tape');

t.equal(quote([ 'a', 1, null, undefined ]), 'a 1 null undefined');
t.equal(quote([ 'a\\x' ]), 'a\\\\x');
t.end();

@@ -36,3 +37,3 @@ });

test('quote windows paths', function (t) {
test('quote windows paths', { skip: 'breaking change, disabled until 2.x' }, function (t) {
var path = 'C:\\projects\\node-shell-quote\\index.js'

@@ -39,0 +40,0 @@

Sorry, the diff of this file is not supported yet

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