Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webassemblyjs/ast

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webassemblyjs/ast - npm Package Compare versions

Comparing version 1.1.2-y.4 to 1.1.2-y.5

lib/clone.js

8

lib/index.js

@@ -69,2 +69,8 @@ "use strict";

});
Object.defineProperty(exports, "cloneNode", {
enumerable: true,
get: function () {
return _clone.cloneNode;
}
});

@@ -77,2 +83,4 @@ var _traverse = require("./traverse");

var _clone = require("./clone");
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); }

@@ -79,0 +87,0 @@

16

lib/traverse.js

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

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 removeNodeInBody(node, fromNode) {

@@ -43,3 +45,8 @@ switch (fromNode.type) {

function replaceWith(newNode) {
// Remove all the keys first
// $FlowIgnore
Object.keys(node).forEach(function (k) {
return delete node[k];
}); // $FlowIgnore
Object.assign(node, newNode);

@@ -189,5 +196,8 @@ }

n.args.forEach(function (x) {
return walk(x, cb, _path7);
});
if (_typeof(n.args) === "object") {
n.args.forEach(function (x) {
return walk(x, cb, _path7);
});
}
break;

@@ -194,0 +204,0 @@ }

6

package.json
{
"name": "@webassemblyjs/ast",
"version": "1.1.2-y.4",
"version": "1.1.2-y.5",
"description": "AST utils for webassemblyjs",

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

"dependencies": {
"@webassemblyjs/wast-parser": "1.1.2-y.4",
"@webassemblyjs/wast-parser": "1.1.2-y.5",
"webassembly-floating-point-hex-parser": "0.1.2",
"webassemblyjs": "1.1.2-y.4"
"webassemblyjs": "1.1.2-y.5"
},

@@ -19,0 +19,0 @@ "repository": {

@@ -570,1 +570,2 @@ // @flow

export { getSectionMetadata } from "./utils";
export { cloneNode } from "./clone";

@@ -37,3 +37,7 @@ // @flow

function replaceWith(newNode: Node) {
// Remove all the keys first
// $FlowIgnore
Object.keys(node).forEach(k => delete node[k]);
// $FlowIgnore
Object.assign(node, newNode);

@@ -168,3 +172,5 @@ }

// $FlowIgnore
n.args.forEach(x => walk(x, cb, path));
if (typeof n.args === "object") {
n.args.forEach(x => walk(x, cb, path));
}

@@ -171,0 +177,0 @@ break;

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