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

@webassemblyjs/wast-printer

Package Overview
Dependencies
Maintainers
1
Versions
88
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.2.5 to 1.2.6

41

lib/index.js

@@ -85,3 +85,3 @@ "use strict";

});
n.functype.result.forEach(function (result) {
n.functype.results.forEach(function (result) {
out += space;

@@ -296,3 +296,3 @@ out += "(";

n.params.forEach(function (param) {
n.signature.params.forEach(function (param) {
out += space;

@@ -305,3 +305,3 @@ out += "(";

});
n.results.forEach(function (result) {
n.signature.results.forEach(function (result) {
out += space;

@@ -424,18 +424,29 @@ out += "(";

n.params.forEach(function (param) {
if (n.signature.type === "Signature") {
var signature = n.signature;
signature.params.forEach(function (param) {
out += space;
out += "(";
out += "param";
out += space;
out += printFuncParam(param);
out += ")";
});
signature.results.forEach(function (result) {
out += space;
out += "(";
out += "result";
out += space;
out += result;
out += ")";
});
} else {
var index = n.signature;
out += space;
out += "(";
out += "param";
out += "type";
out += space;
out += printFuncParam(param);
out += printIndex(index);
out += ")";
});
n.result.forEach(function (result) {
out += space;
out += "(";
out += "result";
out += space;
out += result;
out += ")";
});
}

@@ -442,0 +453,0 @@ if (n.body.length > 0) {

{
"name": "@webassemblyjs/wast-printer",
"version": "1.2.5",
"version": "1.2.6",
"description": "WebAssembly text format printer",

@@ -20,4 +20,4 @@ "main": "lib/index.js",

"dependencies": {
"@webassemblyjs/ast": "1.2.5",
"@webassemblyjs/wast-parser": "1.2.5",
"@webassemblyjs/ast": "1.2.6",
"@webassemblyjs/wast-parser": "1.2.6",
"long": "^3.2.0"

@@ -24,0 +24,0 @@ },

@@ -77,3 +77,3 @@ // @flow

n.functype.result.forEach(result => {
n.functype.results.forEach(result => {
out += space;

@@ -305,3 +305,3 @@ out += "(";

n.params.forEach(param => {
n.signature.params.forEach(param => {
out += space;

@@ -316,3 +316,3 @@ out += "(";

n.results.forEach(result => {
n.signature.results.forEach(result => {
out += space;

@@ -454,23 +454,36 @@ out += "(";

n.params.forEach(param => {
out += space;
out += "(";
out += "param";
out += space;
if (n.signature.type === "Signature") {
const signature = (n.signature: Signature);
signature.params.forEach(param => {
out += space;
out += "(";
out += "param";
out += space;
out += printFuncParam(param);
out += printFuncParam(param);
out += ")";
});
out += ")";
});
n.result.forEach(result => {
signature.results.forEach(result => {
out += space;
out += "(";
out += "result";
out += space;
out += result;
out += ")";
});
} else {
const index = (n.signature: Index);
out += space;
out += "(";
out += "result";
out += "type";
out += space;
out += result;
out += printIndex(index);
out += ")";
});
}

@@ -477,0 +490,0 @@ if (n.body.length > 0) {

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