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

@miniflare/runner-vm

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miniflare/runner-vm - npm Package Compare versions

Comparing version 2.0.0-rc.4 to 2.0.0-rc.5

2

dist/src/index.d.ts

@@ -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

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