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.0-0 to 1.7.1-0

4

esm/index.js

@@ -5,3 +5,5 @@ import { decode } from "@webassemblyjs/wasm-parser";

import { shrinkPaddedLEB128 } from "@webassemblyjs/wasm-opt";
import constants from "@webassemblyjs/helper-wasm-bytecode";
var constants = require("@webassemblyjs/helper-wasm-bytecode");
import { applyOperations } from "./apply";

@@ -8,0 +10,0 @@

@@ -19,7 +19,5 @@ "use strict";

var _helperWasmBytecode = _interopRequireDefault(require("@webassemblyjs/helper-wasm-bytecode"));
var _apply = require("./apply");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var constants = require("@webassemblyjs/helper-wasm-bytecode");

@@ -37,9 +35,7 @@ function hashNode(node) {

nodes.sort(function (a, b) {
var sectionA = _helperWasmBytecode.default.getSectionForNode(a);
var sectionA = constants.getSectionForNode(a);
var sectionB = constants.getSectionForNode(b);
var aId = constants.sections[sectionA];
var bId = constants.sections[sectionB];
var sectionB = _helperWasmBytecode.default.getSectionForNode(b);
var aId = _helperWasmBytecode.default.sections[sectionA];
var bId = _helperWasmBytecode.default.sections[sectionB];
if (typeof aId !== "number" || typeof bId !== "number") {

@@ -46,0 +42,0 @@ throw new Error("Section id not found");

{
"name": "@webassemblyjs/wasm-edit",
"version": "1.7.0-0",
"version": "1.7.1-0",
"description": "",

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

"dependencies": {
"@webassemblyjs/ast": "1.7.0-0",
"@webassemblyjs/helper-buffer": "1.7.0-0",
"@webassemblyjs/helper-wasm-bytecode": "1.7.0-0",
"@webassemblyjs/helper-wasm-section": "1.7.0-0",
"@webassemblyjs/wasm-gen": "1.7.0-0",
"@webassemblyjs/wasm-opt": "1.7.0-0",
"@webassemblyjs/wasm-parser": "1.7.0-0",
"@webassemblyjs/wast-printer": "1.7.0-0",
"@webassemblyjs/ast": "1.7.1-0",
"@webassemblyjs/helper-buffer": "1.7.1-0",
"@webassemblyjs/helper-wasm-bytecode": "1.7.1-0",
"@webassemblyjs/helper-wasm-section": "1.7.1-0",
"@webassemblyjs/wasm-gen": "1.7.1-0",
"@webassemblyjs/wasm-opt": "1.7.1-0",
"@webassemblyjs/wasm-parser": "1.7.1-0",
"@webassemblyjs/wast-printer": "1.7.1-0",
"debug": "^3.1.0"
},
"devDependencies": {
"@webassemblyjs/helper-test-framework": "1.7.0-0"
"@webassemblyjs/helper-test-framework": "1.7.1-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