Socket
Socket
Sign inDemoInstall

@webassemblyjs/wast-printer

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webassemblyjs/wast-printer - npm Package Compare versions

Comparing version 1.7.11 to 1.8.0

16

esm/index.js

@@ -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"
}
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