Comparing version 0.0.1 to 0.0.2
@@ -0,1 +1,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
@@ -23,3 +24,5 @@ var scan; | ||
var field, words; | ||
if (line == null) line = ""; | ||
if (line == null) { | ||
line = ""; | ||
} | ||
words = []; | ||
@@ -30,3 +33,5 @@ field = ""; | ||
raw = match[0], word = match[1], sq = match[2], dq = match[3], escape = match[4], garbage = match[5], seperator = match[6]; | ||
if (garbage != null) throw new Error("Unmatched quote"); | ||
if (garbage != null) { | ||
throw new Error("Unmatched quote"); | ||
} | ||
field += word || (sq || dq || escape).replace(/\\(?=.)/, ""); | ||
@@ -38,3 +43,5 @@ if (seperator != null) { | ||
}); | ||
if (field) words.push(field); | ||
if (field) { | ||
words.push(field); | ||
} | ||
return words; | ||
@@ -41,0 +48,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"description": "Manipulate strings according to the word parsing rules of the UNIX Bourne shell.", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/jimmycuadra/shellwords", | ||
@@ -16,10 +16,7 @@ "repository": { | ||
}, | ||
"engines": { | ||
"node": ">= 0.4" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"jasmine-node": "~1.0.12", | ||
"nodewatch": "~0.0.4" | ||
"jasmine-node": "~1.0.26", | ||
"nodewatch": "~0.1.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
6798
44
1