node-retrieve-globals
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"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" }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5801