Socket
Socket
Sign inDemoInstall

@webassemblyjs/ast

Package Overview
Dependencies
Maintainers
1
Versions
86
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.9 to 1.1.2-y.10

47

lib/traverse.js

@@ -165,22 +165,35 @@ "use strict";

case "TypeInstruction":
{
var _path6 = createPath(n, parentPath);
cb(n.type, _path6);
if (n.id != null) {
walk(n.id, cb, _path6);
}
break;
}
case "IfInstruction":
{
var _path6 = createPath(n, parentPath); // $FlowIgnore
var _path7 = createPath(n, parentPath); // $FlowIgnore
cb(n.type, _path6); // $FlowIgnore
cb(n.type, _path7); // $FlowIgnore
n.test.forEach(function (x) {
return walk(x, cb, _path6);
return walk(x, cb, _path7);
}); // $FlowIgnore
n.consequent.forEach(function (x) {
return walk(x, cb, _path6);
return walk(x, cb, _path7);
}); // $FlowIgnore
n.alternate.forEach(function (x) {
return walk(x, cb, _path6);
return walk(x, cb, _path7);
}); // $FlowIgnore
walk(n.testLabel, cb, _path6);
walk(n.testLabel, cb, _path7);
break;

@@ -191,10 +204,10 @@ }

{
var _path7 = createPath(n, parentPath); // $FlowIgnore
var _path8 = createPath(n, parentPath); // $FlowIgnore
cb(n.type, _path7); // $FlowIgnore
cb(n.type, _path8); // $FlowIgnore
if (_typeof(n.args) === "object") {
n.args.forEach(function (x) {
return walk(x, cb, _path7);
return walk(x, cb, _path8);
});

@@ -209,10 +222,10 @@ }

{
var _path8 = createPath(n, parentPath); // $FlowIgnore
var _path9 = createPath(n, parentPath); // $FlowIgnore
cb(n.type, _path8);
cb(n.type, _path9);
if (n.label != null) {
// $FlowIgnore
walk(n.label, cb, _path8);
walk(n.label, cb, _path9);
} // $FlowIgnore

@@ -222,3 +235,3 @@

n.instr.forEach(function (x) {
return walk(x, cb, _path8);
return walk(x, cb, _path9);
});

@@ -230,11 +243,11 @@ break;

{
var _path9 = createPath(n, parentPath);
var _path10 = createPath(n, parentPath);
cb(n.type, _path9);
cb(n.type, _path10);
n.body.forEach(function (x) {
return walk(x, cb, _path9);
return walk(x, cb, _path10);
});
if (n.name != null) {
walk(n.name, cb, _path9);
walk(n.name, cb, _path10);
}

@@ -241,0 +254,0 @@

{
"name": "@webassemblyjs/ast",
"version": "1.1.2-y.9",
"version": "1.1.2-y.10",
"description": "AST utils for webassemblyjs",

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

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

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

@@ -147,2 +147,13 @@ // @flow

case "TypeInstruction": {
const path = createPath(n, parentPath);
cb(n.type, path);
if (n.id != null) {
walk(n.id, cb, path);
}
break;
}
case "IfInstruction": {

@@ -149,0 +160,0 @@ const path = createPath(n, parentPath);

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