Comparing version 0.4.1 to 1.0.0
@@ -12,2 +12,8 @@ # Changelog | ||
## [1.0.0] - 2020-12-10 | ||
- (!) Remove ability to call `shescape()` directly. | ||
- (!) Automatically convert input to array in `quoteAll()`. | ||
- Fix numbering in documentation's "Install" section. | ||
## [0.4.1] - 2020-12-09 | ||
@@ -14,0 +20,0 @@ |
10
index.js
@@ -5,10 +5,2 @@ const os = require("os"); | ||
module.exports = function (arg) { | ||
console.warn( | ||
"calling shescape() directly is deprecated since v0.3.1 and will be removed in v1.0.0" | ||
); | ||
const platform = os.platform(); | ||
return main.escapeShellArgByPlatform(arg, platform); | ||
}; | ||
module.exports.escape = function (arg) { | ||
@@ -25,3 +17,3 @@ const platform = os.platform(); | ||
module.exports.quoteAll = function (args) { | ||
if (!Array.isArray(args)) return args; | ||
if (!Array.isArray(args)) args = [args]; | ||
@@ -28,0 +20,0 @@ const platform = os.platform(); |
{ | ||
"name": "shescape", | ||
"version": "0.4.1", | ||
"version": "1.0.0", | ||
"description": "simple shell escape library", | ||
@@ -5,0 +5,0 @@ "homepage": "https://ericcornelissen.github.io/shescape/", |
@@ -8,5 +8,6 @@ # Security Policy | ||
| Version | Supported | | ||
| ------- | ------------------ | | ||
| < 1.0.0 | :white_check_mark: | | ||
| Version | Supported | Until | | ||
| ------- | ------------------ | ---------------- | | ||
| 1.x.x | :white_check_mark: | _current_ | | ||
| < 1.0.0 | :white_check_mark: | 01 February 2021 | | ||
@@ -13,0 +14,0 @@ ## Reporting a Vulnerability |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
23126
1
52