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.2.0 to 1.2.1

4

lib/create.js

@@ -20,2 +20,4 @@ "use strict";

var debug = require("debug")("wasm");
function findLastSection(ast, forSection) {

@@ -54,5 +56,7 @@ var targetSectionId = _helperWasmBytecode.default.sections[forSection]; // $FlowIgnore: metadata can not be empty

end = start;
debug("create empty section=%s start=%d end=%d", section, start, end);
} else {
start = lastSection.startOffset + lastSection.size + 1;
end = start;
debug("create empty section=%s after=%s start=%d end=%d", section, lastSection.section, start, end);
}

@@ -59,0 +63,0 @@

12

package.json
{
"name": "@webassemblyjs/helper-wasm-section",
"version": "1.2.0",
"version": "1.2.1",
"description": "",

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

"dependencies": {
"@webassemblyjs/ast": "1.2.0",
"@webassemblyjs/helper-buffer": "1.2.0",
"@webassemblyjs/helper-wasm-bytecode": "1.2.0",
"@webassemblyjs/wasm-gen": "1.2.0"
"@webassemblyjs/ast": "1.2.1",
"@webassemblyjs/helper-buffer": "1.2.1",
"@webassemblyjs/helper-wasm-bytecode": "1.2.1",
"@webassemblyjs/wasm-gen": "1.2.1"
},
"devDependencies": {
"@webassemblyjs/wasm-parser": "1.2.0"
"@webassemblyjs/wasm-parser": "1.2.1"
}
}

@@ -8,2 +8,3 @@ // @flow

const t = require("@webassemblyjs/ast");
const debug = require("debug")("wasm");

@@ -53,5 +54,15 @@ type Res = { uint8Buffer: Uint8Array, sectionMetadata: SectionMetadata };

end = start;
debug("create empty section=%s start=%d end=%d", section, start, end);
} else {
start = lastSection.startOffset + lastSection.size + 1;
end = start;
debug(
"create empty section=%s after=%s start=%d end=%d",
section,
lastSection.section,
start,
end
);
}

@@ -58,0 +69,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