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.6.3 to 3.6.4

9

CHANGELOG.md

@@ -0,1 +1,10 @@

v3.6.4 (2018-10-17)
-------------------
[fix] Added new to vmwerror when trying to load coffeescipt but can't (dotconnor)
[fix] Add arguments to process.nextTick proxy (Patrick Engström)
v3.6.3 (2018-08-06)
-------------------
[fix] Security fixes
v3.6.2 (2018-07-05)

@@ -2,0 +11,0 @@ -------------------

4

index.d.ts

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

import {EventEmitter} from 'events';
/**

@@ -66,3 +68,3 @@ * Require options for a VM

*/
export class NodeVM {
export class NodeVM extends EventEmitter {
constructor(options?: NodeVMOptions);

@@ -69,0 +71,0 @@ /** Runs the code */

@@ -22,3 +22,3 @@ const fs = require('fs');

} catch (ex) {
throw VMError('Coffee-Script compiler is not installed.');
throw new VMError('Coffee-Script compiler is not installed.');
}

@@ -25,0 +25,0 @@

@@ -350,3 +350,3 @@ const {Script} = host.require('vm');

features: Contextify.readonly(host.process.features),
nextTick(callback) {
nextTick(callback, ...args) {
if (typeof callback !== 'function') {

@@ -357,3 +357,5 @@ throw new Error('Callback must be a function.');

try {
return host.process.nextTick(Decontextify.value(callback));
return host.process.nextTick(Decontextify.value(function() {
callback.apply(null, args)
}));
} catch (e) {

@@ -360,0 +362,0 @@ throw Contextify.value(e);

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

],
"version": "3.6.3",
"version": "3.6.4",
"main": "index.js",

@@ -19,0 +19,0 @@ "repository": "github:patriksimek/vm2",

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