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.31 to 0.1.32

5

lib/jshrc-template.js

@@ -7,2 +7,7 @@ prompt = function () {

});
LS_COLORS = 'no=0:fi=0:di=1;34:ln=1;36:pi=40;33:so=1;35:do=1;35:bd=40;33;1:cd=40;33;1:or=40;31;1:ex=1;32:*.tar=1;31:*.tgz=1;31:*.arj=1;31:*.taz=1;31:*.lzh=1;31:*.zip=1;31:*.rar=1;31:*.z=1;31:*.Z=1;31:*.gz=1;31:*.bz2=1;31:*.tbz2=1;31:*.deb=1;31:*.pdf=1;31:*.jpg=1;35:*.jpeg=1;35:*.gif=1;35:*.bmp=1;35:*.pbm=1;35:*.pgm=1;35:*.ppm=1;35:*.pnm=1;35:*.tga=1;35:*.xbm=1;35:*.xpm=1;35:*.tif=1;35:*.tiff=1;35:*.png=1;35:*.mpg=1;35:*.mpeg=1;35:*.mov=1;35:*.avi=1;35:*.wmv=1;35:*.ogg=1;35:*.mp3=1;35:*.mpc=1;35:*.wav=1;35:*.au=1;35:*.swp=1;30:*.pl=36:*.c=36:*.cc=36:*.h=36:*.core=1;33;41:*.gpg=1;33:'
HISTSIZE = 5000
alias ll='ls -l'
alias la='ls -a'

8

lib/readline.js

@@ -1,2 +0,1 @@

var kHistorySize = Infinity;
var kBufSize = 10 * 1024;

@@ -40,2 +39,3 @@

this.shell = shell;
this.kHistorySize = shell.vm.context.HISTSIZE || 5000;

@@ -195,7 +195,9 @@ completer = completer || function() { return []; };

var hist;
if (this.history.length === 0 || this.history[0] !== this.line) {
this.history.unshift(this.line);
fs.appendFileSync(this.histPath, this.line + '\n');
// Only store so many
if (this.history.length > kHistorySize) this.history.pop();
if (this.history.length > this.kHistorySize) this.history.pop();
hist = this.history.slice(0, this.kHistorySize).reverse().join('\n') + '\n';
fs.writeFileSync(this.histPath, hist);
}

@@ -202,0 +204,0 @@

{
"name": "jsh",
"version": "0.1.31",
"version": "0.1.32",
"description": "The JavaScript shell interpreter.",

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

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