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

vm2

Package Overview
Dependencies
Maintainers
1
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.4.4 to 3.4.5

6

lib/main.js

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

if (object === null) return object;
if (object.isVMFrozen) return object;

@@ -51,2 +52,3 @@ Object.defineProperty(object, 'isVMFrozen', {

if (object === null) return object;
if (object.isVMProtected || object.isVMFrozen) return object;

@@ -205,2 +207,4 @@ Object.defineProperty(object, 'isVMProtected', {

for (let name in this.options.sandbox) {
if (this.options.sandbox.isVMFrozen) _freeze(this.options.sandbox[name]);
else if (this.options.sandbox.isVMProtected) _protect(this.options.sandbox[name]);
this._internal.Contextify.globalValue(this.options.sandbox[name], name);

@@ -357,2 +361,4 @@ }

for (let name in this.options.sandbox) {
if (this.options.sandbox.isVMFrozen) _freeze(this.options.sandbox[name]);
else if (this.options.sandbox.isVMProtected) _protect(this.options.sandbox[name]);
this._internal.Contextify.globalValue(this.options.sandbox[name], name);

@@ -359,0 +365,0 @@ }

2

package.json

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

],
"version": "3.4.4",
"version": "3.4.5",
"main": "index.js",

@@ -19,0 +19,0 @@ "repository": {

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