Socket
Socket
Sign inDemoInstall

@webassemblyjs/ast

Package Overview
Dependencies
12
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.0-0 to 1.7.1-0

3

esm/utils.js

@@ -5,4 +5,5 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

import { traverse } from "./traverse";
import constants from "@webassemblyjs/helper-wasm-bytecode";
var constants = require("@webassemblyjs/helper-wasm-bytecode");
var debug = require("debug")("webassemblyjs:ast:utils");

@@ -9,0 +10,0 @@

@@ -21,8 +21,6 @@ "use strict";

var _helperWasmBytecode = _interopRequireDefault(require("@webassemblyjs/helper-wasm-bytecode"));
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var constants = require("@webassemblyjs/helper-wasm-bytecode");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
var debug = require("debug")("webassemblyjs:ast:utils");

@@ -66,4 +64,4 @@

m.metadata.sections.sort(function (a, b) {
var aId = _helperWasmBytecode.default.sections[a.section];
var bId = _helperWasmBytecode.default.sections[b.section];
var aId = constants.sections[a.section];
var bId = constants.sections[b.section];

@@ -151,5 +149,4 @@ if (typeof aId !== "number" || typeof bId !== "number") {

var node = _ref2.node;
var section = constants.getSectionForNode(node);
var section = _helperWasmBytecode.default.getSectionForNode(node);
if (section === sectionName && _typeof(node.loc) === "object") {

@@ -156,0 +153,0 @@ shiftLoc(node, delta);

{
"name": "@webassemblyjs/ast",
"version": "1.7.0-0",
"version": "1.7.1-0",
"description": "AST utils for webassemblyjs",

@@ -15,5 +15,5 @@ "keywords": [

"dependencies": {
"@webassemblyjs/helper-module-context": "1.7.0-0",
"@webassemblyjs/helper-wasm-bytecode": "1.7.0-0",
"@webassemblyjs/wast-parser": "1.7.0-0",
"@webassemblyjs/helper-module-context": "1.7.1-0",
"@webassemblyjs/helper-wasm-bytecode": "1.7.1-0",
"@webassemblyjs/wast-parser": "1.7.1-0",
"debug": "^3.1.0",

@@ -30,3 +30,3 @@ "mamacro": "^0.0.3"

"devDependencies": {
"@webassemblyjs/helper-test-framework": "1.7.0-0",
"@webassemblyjs/helper-test-framework": "1.7.1-0",
"array.prototype.flatmap": "^1.2.1",

@@ -33,0 +33,0 @@ "dump-exports": "^0.1.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc