Socket
Socket
Sign inDemoInstall

shx

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shx - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

46

CHANGELOG.md

@@ -5,6 +5,50 @@ # Change Log

[Full Changelog](https://github.com/shelljs/shx/compare/v0.3.1...HEAD)
[Full Changelog](https://github.com/shelljs/shx/compare/v0.3.3...HEAD)
**Closed issues:**
- New release with ShellJS v0.8.4 [\#185](https://github.com/shelljs/shx/issues/185)
**Merged pull requests:**
- chore: add back node v6 support [\#196](https://github.com/shelljs/shx/pull/196) ([nfischer](https://github.com/nfischer))
- chore: update dependencies [\#195](https://github.com/shelljs/shx/pull/195) ([nfischer](https://github.com/nfischer))
- chore: switch to GitHub Actions [\#194](https://github.com/shelljs/shx/pull/194) ([nfischer](https://github.com/nfischer))
- refactor: rename "blacklist" -\> "blocklist" [\#193](https://github.com/shelljs/shx/pull/193) ([nfischer](https://github.com/nfischer))
- chore: change supported node versions [\#186](https://github.com/shelljs/shx/pull/186) ([nfischer](https://github.com/nfischer))
## [v0.3.3](https://github.com/shelljs/shx/tree/v0.3.3) (2020-10-26)
[Full Changelog](https://github.com/shelljs/shx/compare/v0.3.2...v0.3.3)
**Closed issues:**
- Npm package should always have a main module [\#180](https://github.com/shelljs/shx/issues/180)
- shx stop working after a new library is added within package.json file [\#176](https://github.com/shelljs/shx/issues/176)
- suggestion - expose commands directly \(`ls` instead of `shx ls`\) [\#174](https://github.com/shelljs/shx/issues/174)
- Can I replace bash prompt with shx ? If so, how ? [\#171](https://github.com/shelljs/shx/issues/171)
- sed can't replace files in a different directory [\#165](https://github.com/shelljs/shx/issues/165)
- Issues running NPM script on Windows 10 [\#164](https://github.com/shelljs/shx/issues/164)
- rm -rf random fails on windows [\#160](https://github.com/shelljs/shx/issues/160)
- sed: option not recognized: n [\#147](https://github.com/shelljs/shx/issues/147)
- Remove es6-object-assign dependency [\#146](https://github.com/shelljs/shx/issues/146)
**Merged pull requests:**
- Update shelljs to avoid circular dependency warnings on Node 14 [\#184](https://github.com/shelljs/shx/pull/184) ([Pomax](https://github.com/Pomax))
- Upgrade minimist to avoid security vulnerability [\#179](https://github.com/shelljs/shx/pull/179) ([mondeja](https://github.com/mondeja))
- docs\(sed\): document sed syntax, quoting, and escaping slash [\#170](https://github.com/shelljs/shx/pull/170) ([nfischer](https://github.com/nfischer))
- chore\(deps\): update deps [\#161](https://github.com/shelljs/shx/pull/161) ([nfischer](https://github.com/nfischer))
- chore\(node\): drop node v4 and v5 \(\#917\) [\#157](https://github.com/shelljs/shx/pull/157) ([nfischer](https://github.com/nfischer))
- chore: script to bump supported node versions [\#156](https://github.com/shelljs/shx/pull/156) ([nfischer](https://github.com/nfischer))
- chore\(ci\): switch to node language for travis [\#155](https://github.com/shelljs/shx/pull/155) ([nfischer](https://github.com/nfischer))
- chore\(npm\): remove lockfile [\#154](https://github.com/shelljs/shx/pull/154) ([nfischer](https://github.com/nfischer))
- chore: update dev dependency [\#153](https://github.com/shelljs/shx/pull/153) ([nfischer](https://github.com/nfischer))
- chore: remove es6-object-assign dependency [\#152](https://github.com/shelljs/shx/pull/152) ([nfischer](https://github.com/nfischer))
- chore\(ci\): fix codecov [\#150](https://github.com/shelljs/shx/pull/150) ([nfischer](https://github.com/nfischer))
## [v0.3.2](https://github.com/shelljs/shx/tree/v0.3.2) (2018-07-11)
[Full Changelog](https://github.com/shelljs/shx/compare/v0.3.1...v0.3.2)
**Closed issues:**
- Mocha and babel compiler warnings [\#144](https://github.com/shelljs/shx/issues/144)

@@ -11,0 +55,0 @@ - Add "true" and "false" commands [\#105](https://github.com/shelljs/shx/issues/105)

6

lib/config.js

@@ -6,3 +6,3 @@ 'use strict';

});
exports.shouldReadStdin = exports.SHELLJS_PIPE_INFO = exports.CONFIG_FILE = exports.OPTION_BLACKLIST = exports.CMD_BLACKLIST = exports.EXIT_CODES = undefined;
exports.shouldReadStdin = exports.SHELLJS_PIPE_INFO = exports.CONFIG_FILE = exports.OPTION_BLOCKLIST = exports.CMD_BLOCKLIST = exports.EXIT_CODES = undefined;

@@ -21,5 +21,5 @@ var _minimist = require('minimist');

var CMD_BLACKLIST = exports.CMD_BLACKLIST = ['cd', 'pushd', 'popd', 'dirs', 'set', 'exit', 'exec', 'ShellString'];
var CMD_BLOCKLIST = exports.CMD_BLOCKLIST = ['cd', 'pushd', 'popd', 'dirs', 'set', 'exit', 'exec', 'ShellString'];
var OPTION_BLACKLIST = exports.OPTION_BLACKLIST = ['globOptions', // we don't have good control over globbing in the shell
var OPTION_BLOCKLIST = exports.OPTION_BLOCKLIST = ['globOptions', // we don't have good control over globbing in the shell
'execPath', // we don't currently support exec

@@ -26,0 +26,0 @@ 'bufLength', // we don't use buffers in shx

@@ -21,3 +21,3 @@ 'use strict';

}).filter(function (key) {
return _config.OPTION_BLACKLIST.indexOf(key) === -1;
return _config.OPTION_BLOCKLIST.indexOf(key) === -1;
}).concat(locallyDefinedOptions).map(function (key) {

@@ -32,3 +32,3 @@ return ' * --' + key;

}).filter(function (cmd) {
return _config.CMD_BLACKLIST.indexOf(cmd) === -1;
return _config.CMD_BLOCKLIST.indexOf(cmd) === -1;
}).map(function (cmd) {

@@ -35,0 +35,0 @@ return ' * ' + cmd;

@@ -115,3 +115,3 @@ 'use strict';

return _config.EXIT_CODES.SHX_ERROR;
} else if (_config.CMD_BLACKLIST.indexOf(fnName) > -1) {
} else if (_config.CMD_BLOCKLIST.indexOf(fnName) > -1) {
console.error('Warning: shx ' + fnName + ' is not supported');

@@ -118,0 +118,0 @@ console.error('Please run `shx help` for a list of commands.');

{
"name": "shx",
"version": "0.3.3",
"version": "0.3.4",
"description": "Portable Shell Commands for Node",

@@ -67,5 +67,5 @@ "bin": {

"rimraf": "^2.5.2",
"shelljs-changelog": "^0.2.0",
"shelljs-plugin-open": "^0.2.0",
"shelljs-release": "^0.3.0",
"shelljs-changelog": "^0.2.6",
"shelljs-plugin-open": "^0.2.1",
"shelljs-release": "^0.5.1",
"should": "^13.2.3",

@@ -76,3 +76,3 @@ "watch": "^1.0.2"

"minimist": "^1.2.3",
"shelljs": "^0.8.4"
"shelljs": "^0.8.5"
},

@@ -79,0 +79,0 @@ "engines": {

# Shx
[![Travis](https://img.shields.io/travis/shelljs/shx/master.svg?style=flat-square&label=unix)](https://travis-ci.org/shelljs/shx)
[![AppVeyor](https://img.shields.io/appveyor/ci/shelljs/shx/master.svg?style=flat-square&label=windows)](https://ci.appveyor.com/project/shelljs/shx/branch/master)
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fshelljs%2Fshx%2Fbadge%3Fref%3Dmaster&style=flat-square)](https://actions-badge.atrox.dev/shelljs/shx/goto?ref=master)
[![Codecov](https://img.shields.io/codecov/c/github/shelljs/shx/master.svg?style=flat-square&label=coverage)](https://codecov.io/gh/shelljs/shx)

@@ -6,0 +5,0 @@ [![npm version](https://img.shields.io/npm/v/shx.svg?style=flat-square)](https://www.npmjs.com/package/shx)

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