Comparing version 0.4.0 to 0.4.1
@@ -12,2 +12,6 @@ # Changelog | ||
## [0.4.1] - 2020-12-09 | ||
- Support non-string values as arguments. | ||
## [0.4.0] - 2020-12-08 | ||
@@ -14,0 +18,0 @@ |
{ | ||
"name": "shescape", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "simple shell escape library", | ||
@@ -9,3 +9,6 @@ "homepage": "https://ericcornelissen.github.io/shescape/", | ||
"scripts": { | ||
"clean": "rm -rf .corpus .coverage .nyc_output crash-*", | ||
"format": "prettier --write ./**/*.{js,md,yml}", | ||
"fuzz": "jsfuzz ./test/index.fuzz.js ./.corpus", | ||
"fuzz:coverage": "nyc report --reporter=html --report-dir=.coverage", | ||
"lint": "prettier --check ./**/*.{js,md,yml}", | ||
@@ -37,3 +40,5 @@ "_postinstall": "is-ci || husky install", | ||
"is-ci": "^2.0.0", | ||
"jsfuzz": "^1.0.14", | ||
"mocha": "^8.2.0", | ||
"nyc": "^15.1.0", | ||
"pinst": "^2.1.1", | ||
@@ -40,0 +45,0 @@ "prettier": "^2.1.2", |
@@ -6,7 +6,8 @@ const { win32 } = require("./constants.js"); | ||
function escapeShellArgByPlatform(arg, platform) { | ||
const argAsString = arg.toString(); | ||
switch (platform) { | ||
case win32: | ||
return win.escapeShellArg(arg); | ||
return win.escapeShellArg(argAsString); | ||
default: | ||
return unix.escapeShellArg(arg); | ||
return unix.escapeShellArg(argAsString); | ||
} | ||
@@ -13,0 +14,0 @@ } |
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
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
23062
59
8