@webassemblyjs/ast
Advanced tools
Comparing version 1.1.2-y.4 to 1.1.2-y.5
@@ -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 @@ |
@@ -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 @@ } |
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60816
14
2110
+ Added@webassemblyjs/helper-leb128@1.1.2-y.5(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.1.2-y.5(transitive)
+ Added@webassemblyjs/wasm-parser@1.1.2-y.5(transitive)
+ Added@webassemblyjs/wast-parser@1.1.2-y.5(transitive)
+ Addedwebassemblyjs@1.1.2-y.5(transitive)
- Removed@webassemblyjs/helper-leb128@1.1.2-y.4(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.1.2-y.4(transitive)
- Removed@webassemblyjs/wasm-parser@1.1.2-y.4(transitive)
- Removed@webassemblyjs/wast-parser@1.1.2-y.4(transitive)
- Removedwebassemblyjs@1.1.2-y.4(transitive)
Updatedwebassemblyjs@1.1.2-y.5