Comparing version 0.1.36 to 0.1.38
@@ -20,3 +20,6 @@ var waitfor = require('./waitfor'), | ||
var ret = vm.runInContext(realCmd, this.context); | ||
if (typeof ret !== 'undefined' && !silent) console.log(inspect(ret)); | ||
if (typeof ret !== 'undefined' && !silent) { | ||
console.log(inspect(ret)); | ||
this.context._ = ret; | ||
} | ||
}, | ||
@@ -67,2 +70,3 @@ execScript: function (path) { | ||
context = vm.createContext(context); | ||
context.global = context; | ||
@@ -69,0 +73,0 @@ (function loadBuiltInCmds (commands, ctx) { |
{ | ||
"name": "jsh", | ||
"version": "0.1.36", | ||
"version": "0.1.38", | ||
"description": "The JavaScript shell interpreter.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,2 +52,4 @@ # jsh - The JavaScript Shell | ||
When the shell is run interactively, the last returned value is stored in the _ variable, just like in the Node REPL. | ||
## Coming soon (in no particular order) | ||
@@ -54,0 +56,0 @@ |
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
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
140840
2629
65