@miniflare/runner-vm
Advanced tools
Comparing version 2.0.0-rc.4 to 2.0.0-rc.5
@@ -33,3 +33,3 @@ /// <reference types="node" /> | ||
private runAsModule; | ||
run(globalScope: Context, blueprint: ScriptBlueprint, modulesRules?: ProcessedModuleRule[], additionalModules?: AdditionalModules): Promise<ScriptRunnerResult>; | ||
run(globalScope: Context, blueprint: ScriptBlueprint, modulesRules?: ProcessedModuleRule[], additionalModules?: AdditionalModules, proxyPrimitiveInstanceOf?: boolean): Promise<ScriptRunnerResult>; | ||
} | ||
@@ -36,0 +36,0 @@ |
@@ -258,3 +258,3 @@ var __create = Object.create; | ||
} | ||
async run(globalScope, blueprint, modulesRules, additionalModules) { | ||
async run(globalScope, blueprint, modulesRules, additionalModules, proxyPrimitiveInstanceOf = false) { | ||
if (modulesRules && !("SourceTextModule" in import_vm2.default)) { | ||
@@ -264,3 +264,5 @@ throw new VMScriptRunnerError("ERR_MODULE_DISABLED", "Modules support requires the --experimental-vm-modules flag"); | ||
const linker = modulesRules && new ModuleLinker(modulesRules, additionalModules ?? {}); | ||
Object.assign(globalScope, makeProxiedGlobals(this.blockCodeGeneration)); | ||
if (proxyPrimitiveInstanceOf) { | ||
Object.assign(globalScope, makeProxiedGlobals(this.blockCodeGeneration)); | ||
} | ||
let context = this.context; | ||
@@ -267,0 +269,0 @@ if (context) { |
{ | ||
"name": "@miniflare/runner-vm", | ||
"version": "2.0.0-rc.4", | ||
"version": "2.0.0-rc.5", | ||
"description": "VM script runner module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -38,7 +38,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@miniflare/shared": "2.0.0-rc.4" | ||
"@miniflare/shared": "2.0.0-rc.5" | ||
}, | ||
"devDependencies": { | ||
"@miniflare/shared-test": "2.0.0-rc.4" | ||
"@miniflare/shared-test": "2.0.0-rc.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
21005
325
+ Added@miniflare/shared@2.0.0-rc.5(transitive)
- Removed@miniflare/shared@2.0.0-rc.4(transitive)
Updated@miniflare/shared@2.0.0-rc.5