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

@webassemblyjs/wasm-edit

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/wasm-edit - npm Package Compare versions

Comparing version 1.1.2-y.6 to 1.1.2-y.7

test/insert-node.js

2

lib/apply.js

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

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