Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shescape

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shescape - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

4

CHANGELOG.md

@@ -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",

5

src/main.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc