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

isolated-vm

Package Overview
Dependencies
Maintainers
0
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isolated-vm - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

8

inspector-example.js

@@ -14,3 +14,7 @@ 'use strict';

let context = await isolate.createContext({ inspector: true });
let script = await isolate.compileScript('for(;;)debugger;', { filename: 'example.js' });
const inspector = isolate.createInspectorSession();
inspector.dispatchProtocolMessage('{"id":1,"method":"Debugger.enable"}');
await context.eval('/* break on script start */debugger;');
inspector.dispose();
let script = await isolate.compileScript('console.log("hello world")', { filename: 'example.js' });
await script.run(context);

@@ -35,2 +39,3 @@ }()).catch(console.error);

ws.on('message', function(message) {
console.log('<', message.toString())
try {

@@ -46,2 +51,3 @@ channel.dispatchProtocolMessage(String(message));

function send(message) {
console.log('>', message.toString())
try {

@@ -48,0 +54,0 @@ ws.send(message);

4

package.json
{
"name": "isolated-vm",
"version": "5.0.0",
"version": "5.0.1",
"description": "Access to multiple isolates",

@@ -13,4 +13,2 @@ "main": "isolated-vm.js",

"rebuild": "node-gyp rebuild --release -j max",
"prebuild": "prebuild",
"upload": "prebuild --upload ${GITHUB_TOKEN}",
"lint": "find src -name '*.cc' | xargs -n1 clang-tidy",

@@ -17,0 +15,0 @@ "test": "node test.js"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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