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
1
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 0.1.3 to 0.1.4

inspector-example.js

2

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

@@ -5,0 +5,0 @@ "main": "isolated-vm.js",

@@ -64,2 +64,10 @@ isolated-vm -- Access to multiple isolates in nodejs

* `lineOffset` *[number]* - Optional line offset of this script
* `produceCachedData` *[boolean]* - Produce V8 cache data. Similar to the
[VM.Script](https://nodejs.org/api/vm.html) option of the same name. If this is true then the
returned script object will have `cachedData` set to an ExternalCopy handle. Note that this
differs from the VM.Script option slightly in that `cachedDataProduced` is never set.
* `cachedData` *[ExternalCopy[ArrayBuffer]]* - This will consume cached compilation data from a
previous call to this function. Please don't use `produceCachedData` and `cachedData` options at
the same time. `cachedDataRejected` will be set to `true` if the supplied data was rejected by
V8.

@@ -66,0 +74,0 @@ * **return** A [`Script`](#class-script-transferable) object.

@@ -30,2 +30,3 @@ #!/usr/bin/env node

process.stderr.write(`${test}: `);
proc.on('exit', function(code) {

@@ -35,3 +36,3 @@ if (stdout !== 'pass\n' || stderr !== '') {

console.error(
`${test}: *fail*\n`+
`*fail*\n`+
`code: ${code}\n`+

@@ -43,5 +44,5 @@ `stderr: ${stderr}\n`+

ret = 1;
console.error(`${test}: fail (${code})`);
console.error(`fail (${code})`);
} else {
console.log(`${test}: pass`);
console.log(`pass`);
}

@@ -48,0 +49,0 @@ cb();

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

let global = context.globalReference();
global.set('global', global.derefInto());
global.setSync('global', global.derefInto());
let script = isolate.compileScriptSync(`

@@ -10,0 +10,0 @@ global.data = new Uint8Array(1024);

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

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

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

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