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.8 to 1.3.0

test/index.js

19

lib/create.js

@@ -30,3 +30,8 @@ "use strict";

for (var i = 0, len = moduleSections.length; i < len; i++) {
var section = moduleSections[i];
var section = moduleSections[i]; // Ignore custom section since they can actually occur everywhere
if (section.section === "custom") {
continue;
}
var sectionId = _helperWasmBytecode.default.sections[section.section];

@@ -41,2 +46,4 @@

}
return lastSection;
}

@@ -48,7 +55,7 @@

var start, end;
/**
* It's the first section
*/
if (lastSection == null) {
/**
* It's the first section
*/
if (lastSection == null || lastSection.section === "custom") {
start = 8

@@ -58,3 +65,3 @@ /* wasm header size */

end = start;
debug("create empty section=%s start=%d end=%d", section, start, end);
debug("create empty section=%s first", section);
} else {

@@ -61,0 +68,0 @@ start = lastSection.startOffset + lastSection.size.value + 1;

{
"name": "@webassemblyjs/helper-wasm-section",
"version": "1.2.8",
"version": "1.3.0",
"description": "",

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

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

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

const section = moduleSections[i];
// Ignore custom section since they can actually occur everywhere
if (section.section === "custom") {
continue;
}
const sectionId = constants.sections[section.section];

@@ -36,2 +42,4 @@

}
return lastSection;
}

@@ -49,10 +57,10 @@

if (lastSection == null) {
/**
* It's the first section
*/
/**
* It's the first section
*/
if (lastSection == null || lastSection.section === "custom") {
start = 8 /* wasm header size */;
end = start;
debug("create empty section=%s start=%d end=%d", section, start, end);
debug("create empty section=%s first", section);
} else {

@@ -59,0 +67,0 @@ start = lastSection.startOffset + lastSection.size.value + 1;

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