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

jsh

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsh - npm Package Compare versions

Comparing version 0.1.39 to 0.1.40

4

lib/util/substitute-aliases.js

@@ -6,4 +6,6 @@ module.exports = function (context) {

for (var i in aliases) {
j = 0, start = 0, found = false;
j = 0, start = 0, found = false, inFirst = false;
while (cmd[j]) {
if (!inFirst && /\w/.test(cmd[j + start])) inFirst = true;
if (inFirst && /\s/.test(cmd[j + start])) break;
if ((cmd[j - 1] === undefined || cmd[j - 1] === ' ' || cmd[j - 1] === ';') && cmd[j + start] === i[start]) {

@@ -10,0 +12,0 @@ start++;

{
"name": "jsh",
"version": "0.1.39",
"version": "0.1.40",
"description": "The JavaScript shell interpreter.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -121,2 +121,3 @@ var vm = require('vm'),

expect(substituteAliases(' ll;')).to.equal(' ls -l;');
expect(substituteAliases('tmux ls')).to.equal('tmux ls');
});

@@ -123,0 +124,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