Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-retrieve-globals

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-retrieve-globals - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "node-retrieve-globals",
"version": "2.0.0",
"version": "2.0.1",
"description": "Execute a string of JavaScript using Node.js and return the global variable values and functions.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -20,4 +20,4 @@ # node-retrieve-globals

```js
// const { ModuleScript } = require("node-retrieve-globals");
import { ModuleScript } from "node-retrieve-globals";
// const { RetrieveGlobals } = require("node-retrieve-globals");
import { RetrieveGlobals } from "node-retrieve-globals";
```

@@ -33,3 +33,3 @@

let vm = new ModuleScript(code);
let vm = new RetrieveGlobals(code);

@@ -51,3 +51,3 @@ vm.getGlobalContextSync();

let vm = new ModuleScript(code);
let vm = new RetrieveGlobals(code);

@@ -54,0 +54,0 @@ vm.getGlobalContextSync({ myData: "hello" });

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