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

eshost

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eshost - npm Package Compare versions

Comparing version 6.6.0 to 6.7.0

10

lib/agents/node.js

@@ -41,7 +41,7 @@ 'use strict';

var eshostContext = vm.createContext({
setTimeout,
require,
console,
print(...args) {
console.log(...args);
setTimeout: setTimeout,
require: require,
console: console,
print: function print() {
console.log.apply(console, arguments);
}

@@ -48,0 +48,0 @@ });

{
"name": "eshost",
"version": "6.6.0",
"version": "6.7.0",
"description": "Invoke ECMAScript scripts in any command line JS engine.",

@@ -5,0 +5,0 @@ "main": "lib/eshost.js",

@@ -1,3 +0,3 @@

function print(...args) {
console.log(...args);
function print() {
console.log.apply(console, arguments);
}

@@ -7,6 +7,6 @@ var vm = require('vm');

global: Function('return this')(),
gc() {
gc: function() {
return gc();
},
createRealm(options) {
createRealm: function createRealm(options) {
options = options || {};

@@ -36,3 +36,3 @@ options.globals = options.globals || {};

},
evalScript(code) {
evalScript: function evalScript(code) {
try {

@@ -50,10 +50,10 @@ if (this.context) {

},
getGlobal(name) {
getGlobal: function getGlobal(name) {
return this.global[name];
},
setGlobal(name, value) {
setGlobal: function setGlobal(name, value) {
this.global[name] = value;
},
destroy() { /* noop */ },
IsHTMLDDA() { return {}; },
destroy: function destroy() { /* noop */ },
IsHTMLDDA: function IsHTMLDDA() { return {}; },
source: $SOURCE

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