@webassemblyjs/wast-printer
Advanced tools
Comparing version 1.7.11 to 1.8.0
@@ -432,2 +432,8 @@ 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); } | ||
if (n.body.length > 0) { | ||
// func is empty since we ignore the default end instruction | ||
if (n.body.length === 1 && n.body[0].id === "end") { | ||
out += ")"; | ||
return out; | ||
} | ||
if (compact === false) { | ||
@@ -438,7 +444,9 @@ out += "\n"; | ||
n.body.forEach(function (i) { | ||
out += indent(depth); | ||
out += printInstruction(i, depth); | ||
if (i.id !== "end") { | ||
out += indent(depth); | ||
out += printInstruction(i, depth); | ||
if (compact === false) { | ||
out += "\n"; | ||
if (compact === false) { | ||
out += "\n"; | ||
} | ||
} | ||
@@ -445,0 +453,0 @@ }); |
@@ -443,2 +443,8 @@ "use strict"; | ||
if (n.body.length > 0) { | ||
// func is empty since we ignore the default end instruction | ||
if (n.body.length === 1 && n.body[0].id === "end") { | ||
out += ")"; | ||
return out; | ||
} | ||
if (compact === false) { | ||
@@ -449,7 +455,9 @@ out += "\n"; | ||
n.body.forEach(function (i) { | ||
out += indent(depth); | ||
out += printInstruction(i, depth); | ||
if (i.id !== "end") { | ||
out += indent(depth); | ||
out += printInstruction(i, depth); | ||
if (compact === false) { | ||
out += "\n"; | ||
if (compact === false) { | ||
out += "\n"; | ||
} | ||
} | ||
@@ -456,0 +464,0 @@ }); |
{ | ||
"name": "@webassemblyjs/wast-printer", | ||
"version": "1.7.11", | ||
"version": "1.8.0", | ||
"description": "WebAssembly text format printer", | ||
@@ -21,8 +21,8 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@webassemblyjs/ast": "1.7.11", | ||
"@webassemblyjs/wast-parser": "1.7.11", | ||
"@webassemblyjs/ast": "1.8.0", | ||
"@webassemblyjs/wast-parser": "1.8.0", | ||
"@xtuc/long": "4.2.1" | ||
}, | ||
"devDependencies": { | ||
"@webassemblyjs/helper-test-framework": "1.7.11" | ||
"@webassemblyjs/helper-test-framework": "1.8.0" | ||
}, | ||
@@ -36,3 +36,3 @@ "repository": { | ||
}, | ||
"gitHead": "4291990bfc4648bc6676091a955d12dc3c7e5909" | ||
"gitHead": "8b2d1afa793ea81f20ec63416134c201e39694eb" | ||
} |
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
41464
1492
+ Added@webassemblyjs/ast@1.8.0(transitive)
+ Added@webassemblyjs/floating-point-hex-parser@1.8.0(transitive)
+ Added@webassemblyjs/helper-api-error@1.8.0(transitive)
+ Added@webassemblyjs/helper-code-frame@1.8.0(transitive)
+ Added@webassemblyjs/helper-fsm@1.8.0(transitive)
+ Added@webassemblyjs/helper-module-context@1.8.0(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.8.0(transitive)
+ Added@webassemblyjs/wast-parser@1.8.0(transitive)
- Removed@webassemblyjs/ast@1.7.11(transitive)
- Removed@webassemblyjs/floating-point-hex-parser@1.7.11(transitive)
- Removed@webassemblyjs/helper-api-error@1.7.11(transitive)
- Removed@webassemblyjs/helper-code-frame@1.7.11(transitive)
- Removed@webassemblyjs/helper-fsm@1.7.11(transitive)
- Removed@webassemblyjs/helper-module-context@1.7.11(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.7.11(transitive)
- Removed@webassemblyjs/wast-parser@1.7.11(transitive)
Updated@webassemblyjs/ast@1.8.0