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.7.9 to 1.7.10

webassemblyjs-wasm-edit-1.7.10.tgz

30

esm/index.js

@@ -19,2 +19,27 @@ import { decode } from "@webassemblyjs/wasm-parser";

function sortBySectionOrder(nodes) {
var originalOrder = new Map();
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = nodes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _node = _step.value;
originalOrder.set(_node, originalOrder.size);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator.return != null) {
_iterator.return();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
nodes.sort(function (a, b) {

@@ -30,2 +55,7 @@ var sectionA = getSectionForNode(a);

if (aId === bId) {
// $FlowIgnore originalOrder is filled for all nodes
return originalOrder.get(a) - originalOrder.get(b);
}
return aId - bId;

@@ -32,0 +62,0 @@ });

@@ -35,2 +35,27 @@ "use strict";

function sortBySectionOrder(nodes) {
var originalOrder = new Map();
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = nodes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _node = _step.value;
originalOrder.set(_node, originalOrder.size);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator.return != null) {
_iterator.return();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
nodes.sort(function (a, b) {

@@ -46,2 +71,7 @@ var sectionA = (0, _helperWasmBytecode.getSectionForNode)(a);

if (aId === bId) {
// $FlowIgnore originalOrder is filled for all nodes
return originalOrder.get(a) - originalOrder.get(b);
}
return aId - bId;

@@ -48,0 +78,0 @@ });

22

package.json
{
"name": "@webassemblyjs/wasm-edit",
"version": "1.7.9",
"version": "1.7.10",
"description": "",

@@ -20,15 +20,15 @@ "main": "lib/index.js",

"dependencies": {
"@webassemblyjs/ast": "1.7.9",
"@webassemblyjs/helper-buffer": "1.7.9",
"@webassemblyjs/helper-wasm-bytecode": "1.7.9",
"@webassemblyjs/helper-wasm-section": "1.7.9",
"@webassemblyjs/wasm-gen": "1.7.9",
"@webassemblyjs/wasm-opt": "1.7.9",
"@webassemblyjs/wasm-parser": "1.7.9",
"@webassemblyjs/wast-printer": "1.7.9"
"@webassemblyjs/ast": "1.7.10",
"@webassemblyjs/helper-buffer": "1.7.10",
"@webassemblyjs/helper-wasm-bytecode": "1.7.10",
"@webassemblyjs/helper-wasm-section": "1.7.10",
"@webassemblyjs/wasm-gen": "1.7.10",
"@webassemblyjs/wasm-opt": "1.7.10",
"@webassemblyjs/wasm-parser": "1.7.10",
"@webassemblyjs/wast-printer": "1.7.10"
},
"devDependencies": {
"@webassemblyjs/helper-test-framework": "1.7.9"
"@webassemblyjs/helper-test-framework": "1.7.10"
},
"gitHead": "6c5bd6e21d734967e12bb7b7aaa38c80697b3b68"
"gitHead": "f558c6c047187f24a2200ab04104f173de226794"
}
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