New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vm2

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vm2 - npm Package Compare versions

Comparing version 3.8.2 to 3.8.3

17

index.d.ts

@@ -23,3 +23,3 @@ import {EventEmitter} from 'events';

/* An additional lookup function in case a module wasn't found in one of the traditional node lookup paths. */
resolve?: (moduleName: String, parentDirname: String) => String;
resolve?: (moduleName: string, parentDirname: string) => string;
}

@@ -49,2 +49,11 @@

timeout?: number;
/**
* If set to `false` any calls to eval or function constructors (`Function`, `GeneratorFunction`, etc) will throw an
* `EvalError` (default: `true`).
*/
eval?: boolean;
/**
* - If set to `false` any attempt to compile a WebAssembly module will throw a `WebAssembly.CompileError` (default: `true`).
*/
wasm?: boolean;
}

@@ -88,4 +97,4 @@

*
* @param {String} script Javascript code.
* @param {String} [filename] File name (used in stack traces only).
* @param {string} script Javascript code.
* @param {string} [filename] File name (used in stack traces only).
* @param {Object} [options] VM options.

@@ -98,3 +107,3 @@ */

*
* @param {String} [filename] File name (used in stack traces only).
* @param {string} [filename] File name (used in stack traces only).
* @param {Object} [options] VM options.

@@ -101,0 +110,0 @@ */

@@ -139,3 +139,3 @@ /* global host */

if (key === '__lookupSetter__') return fakeLookupSetter(receiver);
if (key === Symbol.toStringTag && toStringTag) return toStringTag;
if (key === host.Symbol.toStringTag && toStringTag) return toStringTag;

@@ -443,3 +443,3 @@ try {

if (key === '__lookupSetter__') return fakeLookupSetter(receiver, true);
if (key === Symbol.toStringTag && toStringTag) return toStringTag;
if (key === host.Symbol.toStringTag && toStringTag) return toStringTag;

@@ -446,0 +446,0 @@ try {

@@ -141,3 +141,4 @@ /* eslint-disable global-require, no-use-before-define */

WeakSet,
Promise
Promise,
Symbol
};

@@ -298,3 +299,4 @@

WeakSet,
Promise
Promise,
Symbol
};

@@ -301,0 +303,0 @@

@@ -16,3 +16,3 @@ {

],
"version": "3.8.2",
"version": "3.8.3",
"main": "index.js",

@@ -23,3 +23,3 @@ "repository": "github:patriksimek/vm2",

"devDependencies": {
"eslint": "^5.16.0",
"eslint": "^6.1.0",
"eslint-config-integromat": "^1.5.0",

@@ -26,0 +26,0 @@ "mocha": "^5.2.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