@webassemblyjs/wasm-edit
Advanced tools
Comparing version 1.1.2-y.6 to 1.1.2-y.7
@@ -161,3 +161,2 @@ "use strict"; | ||
uint8Buffer = (0, _helperBuffer.overrideBytesInBuffer)(uint8Buffer, start, end, newByteArray); | ||
var deltaBytes = newByteArray.length; | ||
/** | ||
@@ -167,2 +166,3 @@ * Update section | ||
var deltaBytes = newByteArray.length; | ||
uint8Buffer = (0, _helperWasmSection.resizeSectionByteSize)(ast, uint8Buffer, sectionName, deltaBytes); | ||
@@ -169,0 +169,0 @@ uint8Buffer = (0, _helperWasmSection.resizeSectionVecSize)(ast, uint8Buffer, sectionName, deltaElements); |
@@ -22,3 +22,4 @@ "use strict"; | ||
var decoderOpts = { | ||
ignoreCodeSection: true, | ||
// FIXME(sven): detection based on the Instr doesn't work for add() | ||
// ignoreCodeSection: true, | ||
ignoreDataSection: true | ||
@@ -30,8 +31,2 @@ }; | ||
var nodesToUpdate = []; | ||
if (typeof visitors.Instr === "function") { | ||
decoderOpts.ignoreCodeSection = false; | ||
console.warn("Decoding the code section has been enabled."); | ||
} | ||
var ast = (0, _wasmParser.decode)(ab, decoderOpts); | ||
@@ -38,0 +33,0 @@ var uint8Buffer = new Uint8Array(ab); |
{ | ||
"name": "@webassemblyjs/wasm-edit", | ||
"version": "1.1.2-y.6", | ||
"version": "1.1.2-y.7", | ||
"description": "", | ||
@@ -19,9 +19,10 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@webassemblyjs/ast": "1.1.2-y.6", | ||
"@webassemblyjs/helper-buffer": "1.1.2-y.6", | ||
"@webassemblyjs/helper-wasm-bytecode": "1.1.2-y.6", | ||
"@webassemblyjs/helper-wasm-section": "1.1.2-y.6", | ||
"@webassemblyjs/wasm-gen": "1.1.2-y.6", | ||
"@webassemblyjs/wasm-parser": "1.1.2-y.6" | ||
"@webassemblyjs/ast": "1.1.2-y.7", | ||
"@webassemblyjs/helper-buffer": "1.1.2-y.7", | ||
"@webassemblyjs/helper-wasm-bytecode": "1.1.2-y.7", | ||
"@webassemblyjs/helper-wasm-section": "1.1.2-y.7", | ||
"@webassemblyjs/wasm-gen": "1.1.2-y.7", | ||
"@webassemblyjs/wasm-parser": "1.1.2-y.7", | ||
"@webassemblyjs/wast-printer": "1.1.2-y.7" | ||
} | ||
} |
@@ -211,7 +211,7 @@ // @flow | ||
const deltaBytes = newByteArray.length; | ||
/** | ||
* Update section | ||
*/ | ||
const deltaBytes = newByteArray.length; | ||
uint8Buffer = resizeSectionByteSize( | ||
@@ -218,0 +218,0 @@ ast, |
@@ -17,3 +17,4 @@ // @flow | ||
const decoderOpts = { | ||
ignoreCodeSection: true, | ||
// FIXME(sven): detection based on the Instr doesn't work for add() | ||
// ignoreCodeSection: true, | ||
ignoreDataSection: true | ||
@@ -26,8 +27,2 @@ }; | ||
if (typeof visitors.Instr === "function") { | ||
decoderOpts.ignoreCodeSection = false; | ||
console.warn("Decoding the code section has been enabled."); | ||
} | ||
const ast = decode(ab, decoderOpts); | ||
@@ -34,0 +29,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
31080
9
838
7
+ Added@webassemblyjs/ast@1.1.2-y.7(transitive)
+ Added@webassemblyjs/helper-buffer@1.1.2-y.7(transitive)
+ Added@webassemblyjs/helper-leb128@1.1.2-y.7(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.1.2-y.7(transitive)
+ Added@webassemblyjs/helper-wasm-section@1.1.2-y.7(transitive)
+ Added@webassemblyjs/wasm-gen@1.1.2-y.7(transitive)
+ Added@webassemblyjs/wasm-parser@1.1.2-y.7(transitive)
+ Added@webassemblyjs/wast-parser@1.1.2-y.7(transitive)
+ Added@webassemblyjs/wast-printer@1.1.2-y.7(transitive)
+ Addedwebassemblyjs@1.1.2-y.7(transitive)
- Removed@webassemblyjs/ast@1.1.2-y.6(transitive)
- Removed@webassemblyjs/helper-buffer@1.1.2-y.6(transitive)
- Removed@webassemblyjs/helper-leb128@1.1.2-y.6(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.1.2-y.6(transitive)
- Removed@webassemblyjs/helper-wasm-section@1.1.2-y.6(transitive)
- Removed@webassemblyjs/wasm-gen@1.1.2-y.6(transitive)
- Removed@webassemblyjs/wasm-parser@1.1.2-y.6(transitive)
- Removed@webassemblyjs/wast-parser@1.1.2-y.6(transitive)
- Removedwebassemblyjs@1.1.2-y.6(transitive)
Updated@webassemblyjs/ast@1.1.2-y.7