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

@webassemblyjs/helper-wasm-section

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webassemblyjs/helper-wasm-section - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

2

lib/create.js

@@ -115,3 +115,3 @@ "use strict";

if (encounteredSection === true) {
path.shift(deltaBytes);
t.shiftSection(ast, path.node, deltaBytes);
debug("shift section section=%s detla=%d", path.node.section, deltaBytes);

@@ -118,0 +118,0 @@ }

@@ -6,3 +6,2 @@ "use strict";

});
exports.getSectionForNode = getSectionForNode;
Object.defineProperty(exports, "resizeSectionByteSize", {

@@ -37,33 +36,2 @@ enumerable: true,

var _remove = require("./remove");
function getSectionForNode(n) {
switch (n.type) {
case "ModuleImport":
return "import";
case "CallInstruction":
case "CallIndirectInstruction":
case "Func":
case "Instr":
return "code";
case "ModuleExport":
return "export";
case "Start":
return "start";
case "TypeInstruction":
return "type";
case "IndexInFuncSection":
return "func";
case "Global":
return "global";
default:
throw new Error("Unsupported input in getSectionForNode: " + JSON.stringify(n.type));
}
}
var _remove = require("./remove");

@@ -40,3 +40,3 @@ "use strict";

if (encounteredSection === true) {
path.shift(delta);
(0, _ast.shiftSection)(ast, path.node, delta);
debug("shift section section=%s detla=%d", section, delta);

@@ -43,0 +43,0 @@ }

@@ -60,3 +60,3 @@ "use strict";

if (encounteredSection === true) {
path.shift(deltaBytes);
(0, _ast.shiftSection)(ast, path.node, deltaBytes);
debug("shift section section=%s detla=%d", path.node.section, deltaBytes);

@@ -63,0 +63,0 @@ }

{
"name": "@webassemblyjs/helper-wasm-section",
"version": "1.3.3",
"version": "1.4.0",
"description": "",

@@ -19,10 +19,10 @@ "main": "lib/index.js",

"dependencies": {
"@webassemblyjs/ast": "1.3.3",
"@webassemblyjs/helper-buffer": "1.3.3",
"@webassemblyjs/helper-wasm-bytecode": "1.3.3",
"@webassemblyjs/wasm-gen": "1.3.3"
"@webassemblyjs/ast": "1.4.0",
"@webassemblyjs/helper-buffer": "1.4.0",
"@webassemblyjs/helper-wasm-bytecode": "1.4.0",
"@webassemblyjs/wasm-gen": "1.4.0"
},
"devDependencies": {
"@webassemblyjs/wasm-parser": "1.3.3"
"@webassemblyjs/wasm-parser": "1.4.0"
}
}
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