@hapify/vm
Advanced tools
Sorry, the diff of this file is not supported yet
+7
-0
@@ -6,2 +6,9 @@ # Changelog | ||
| ## @hapify/vm [1.4.1](https://github.com/hapify/hapify/compare/@hapify/vm@1.4.0...@hapify/vm@1.4.1) (2023-03-02) | ||
| ### Bug Fixes | ||
| * increase generator timeout limit ([#58](https://github.com/hapify/hapify/issues/58)) ([b56a9ae](https://github.com/hapify/hapify/commit/b56a9ae9ac8accf962e3ffb4e553ac0a932ccb0c)) | ||
| # @hapify/vm [1.4.0](https://github.com/hapify/hapify/compare/@hapify/vm@1.3.0...@hapify/vm@1.4.0) (2021-04-21) | ||
@@ -8,0 +15,0 @@ |
+1
-1
| { | ||
| "name": "@hapify/vm", | ||
| "version": "1.4.0", | ||
| "version": "1.4.1", | ||
| "description": "Sandbox for JavaScript code", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
+3
-3
@@ -25,7 +25,7 @@ # Hapify VM | ||
| const options = { | ||
| timeout: 200, // Maximum script execution time. Default to 1000ms. | ||
| allowAnyOutput: true, // Allow the input script to return any data type. Default to false. | ||
| eval: true // Allow function constructors (Function, GeneratorFunction, etc) | ||
| timeout: 200, // Maximum script execution time. Default to 5000ms. | ||
| allowAnyOutput: true, // Allow the input script to return any data type. Default to false. | ||
| eval: true, // Allow function constructors (Function, GeneratorFunction, etc) | ||
| }; | ||
| const result = new HapifyVM(options).run(script, { a: 1, b: 2 }); // result = 3 | ||
| ``` |
Sorry, the diff of this file is not supported yet
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
20102
1.97%