Comparing version 1.5.1 to 1.5.2
@@ -12,4 +12,10 @@ # Changelog | ||
## [1.5.1] - 2022-02-19 | ||
## [1.5.2] - 2022-02-23 | ||
- Add escaping of brace expansion for non-Zsh shells when interpolation is | ||
enabled. ([#178]) | ||
- Explicitly import `process`. ([#173]) | ||
## [1.5.1] - 2022-02-20 | ||
- Fix default shell for Windows when `%COMSPEC%` is missing. | ||
@@ -113,3 +119,5 @@ - Fix escaping of `~` for certain input strings with `escape` and `escapeAll` | ||
[#173]: https://github.com/ericcornelissen/shescape/pull/173 | ||
[#178]: https://github.com/ericcornelissen/shescape/pull/178 | ||
[keep a changelog]: https://keepachangelog.com/en/1.0.0/ | ||
[semantic versioning]: https://semver.org/spec/v2.0.0.html |
@@ -11,3 +11,3 @@ /** | ||
* @module shescape | ||
* @version 1.5.1 | ||
* @version 1.5.2 | ||
* @license MPL-2.0 | ||
@@ -18,2 +18,3 @@ * @author Eric Cornelissen <ericornelissen@gmail.com> | ||
import os from "os"; | ||
import process from "process"; | ||
@@ -20,0 +21,0 @@ import * as main from "./src/main.js"; |
{ | ||
"name": "shescape", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "simple shell escape library", | ||
@@ -18,3 +18,3 @@ "homepage": "https://ericcornelissen.github.io/shescape/", | ||
"clean": "node script/clean.js", | ||
"coverage": "c8 --reports-dir=reports/coverage --reporter=lcov --reporter=text npm test", | ||
"coverage": "c8 --reports-dir=_reports/coverage --reporter=lcov --reporter=text npm test", | ||
"format": "npm run _prettier -- --write", | ||
@@ -24,5 +24,4 @@ "prefuzz": "npm run transpile && node script/prefuzz.js", | ||
"lint": "npm run _prettier -- --check", | ||
"_postinstall": "is-ci || husky install script/hooks", | ||
"prepublishOnly": "pinst --disable && npm run transpile", | ||
"postpublish": "pinst --enable", | ||
"prepare": "is-ci || husky install script/hooks", | ||
"prepublishOnly": "npm run transpile", | ||
"test": "npm run test:unit", | ||
@@ -64,6 +63,5 @@ "test:mutation": "stryker run stryker.config.json", | ||
"jsfuzz": "1.0.15", | ||
"mocha": "9.2.0", | ||
"pinst": "2.1.6", | ||
"mocha": "9.2.1", | ||
"prettier": "2.5.1", | ||
"rollup": "2.67.3", | ||
"rollup": "2.68.0", | ||
"sinon": "13.0.1" | ||
@@ -70,0 +68,0 @@ }, |
@@ -41,6 +41,5 @@ /** | ||
} else { | ||
result = result.replace( | ||
/(?<=\=(?:.*?:)?)(~)(?=\:|\=|\-|\+|\/|0|\s|$)/g, | ||
"\\$1" | ||
); | ||
result = result | ||
.replace(/\{(?=(.*?(?:\,|\.).*?)\})/g, "\\{") | ||
.replace(/(?<=\=(?:.*?:)?)(~)(?=\:|\=|\-|\+|\/|0|\s|$)/g, "\\$1"); | ||
} | ||
@@ -47,0 +46,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
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
63675
12
939
6