@webassemblyjs/helper-wasm-section
Advanced tools
Comparing version 1.3.3 to 1.4.0
@@ -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" | ||
} | ||
} |
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
10152
234
+ Added@webassemblyjs/ast@1.4.0(transitive)
+ Added@webassemblyjs/floating-point-hex-parser@1.4.0(transitive)
+ Added@webassemblyjs/helper-buffer@1.4.0(transitive)
+ Added@webassemblyjs/helper-code-frame@1.4.0(transitive)
+ Added@webassemblyjs/helper-fsm@1.4.0(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.4.0(transitive)
+ Added@webassemblyjs/leb128@1.4.0(transitive)
+ Added@webassemblyjs/validation@1.4.0(transitive)
+ Added@webassemblyjs/wasm-gen@1.4.0(transitive)
+ Added@webassemblyjs/wasm-parser@1.4.0(transitive)
+ Added@webassemblyjs/wast-parser@1.4.0(transitive)
+ Added@webassemblyjs/wast-printer@1.4.0(transitive)
+ Addedwebassemblyjs@1.4.0(transitive)
- Removed@webassemblyjs/ast@1.3.3(transitive)
- Removed@webassemblyjs/floating-point-hex-parser@1.3.3(transitive)
- Removed@webassemblyjs/helper-buffer@1.3.3(transitive)
- Removed@webassemblyjs/helper-code-frame@1.3.3(transitive)
- Removed@webassemblyjs/helper-fsm@1.3.3(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.3.3(transitive)
- Removed@webassemblyjs/leb128@1.3.3(transitive)
- Removed@webassemblyjs/validation@1.3.3(transitive)
- Removed@webassemblyjs/wasm-gen@1.3.3(transitive)
- Removed@webassemblyjs/wasm-parser@1.3.3(transitive)
- Removed@webassemblyjs/wast-parser@1.3.3(transitive)
- Removed@webassemblyjs/wast-printer@1.3.3(transitive)
- Removedwebassemblyjs@1.3.3(transitive)
Updated@webassemblyjs/ast@1.4.0