Socket
Socket
Sign inDemoInstall

@webassemblyjs/wast-parser

Package Overview
Dependencies
9
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.10.1 to 1.11.0

23

esm/grammar.js

@@ -204,2 +204,7 @@ 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); }

eatToken();
if (token.type === tokens.keyword && token.value === 'shared') {
limits.shared = true;
eatToken();
}
}

@@ -1023,10 +1028,16 @@ }

object = _name2;
eatToken();
var name_parts = [];
if (token.type !== tokens.name) {
throw new TypeError("Unknown token: " + token.type + ", name expected");
}
do {
eatToken(); // Eat the dot
_name2 = token.value;
eatToken();
if (token.type !== tokens.name) {
throw new TypeError("Unknown token: " + token.type + ", name expected");
}
name_parts.push(token.value);
eatToken(); // Eat the name
} while (token.type === tokens.dot);
_name2 = name_parts.join('.');
}

@@ -1033,0 +1044,0 @@

@@ -74,2 +74,3 @@ import { FSM, makeTransition } from "@webassemblyjs/helper-fsm";

memory: "memory",
shared: "shared",
table: "table",

@@ -379,17 +380,21 @@ global: "global",

eatCharacter();
_value3 = "";
var nameStartColumn = column;
while (char === ".") {
eatCharacter(); // Eat the dot
while (LETTERS.test(char)) {
_value3 += char;
eatCharacter();
_value3 = "";
var nameStartColumn = column;
while (LETTERS.test(char)) {
_value3 += char;
eatCharacter();
}
pushDotToken(".", {
startColumn: dotStartColumn
});
pushNameToken(_value3, {
startColumn: nameStartColumn
});
}
pushDotToken(".", {
startColumn: dotStartColumn
});
pushNameToken(_value3, {
startColumn: nameStartColumn
});
continue;

@@ -396,0 +401,0 @@ }

@@ -217,2 +217,7 @@ "use strict";

eatToken();
if (token.type === _tokenizer.tokens.keyword && token.value === 'shared') {
limits.shared = true;
eatToken();
}
}

@@ -1036,10 +1041,16 @@ }

object = _name2;
eatToken();
var name_parts = [];
if (token.type !== _tokenizer.tokens.name) {
throw new TypeError("Unknown token: " + token.type + ", name expected");
}
do {
eatToken(); // Eat the dot
_name2 = token.value;
eatToken();
if (token.type !== _tokenizer.tokens.name) {
throw new TypeError("Unknown token: " + token.type + ", name expected");
}
name_parts.push(token.value);
eatToken(); // Eat the name
} while (token.type === _tokenizer.tokens.dot);
_name2 = name_parts.join('.');
}

@@ -1046,0 +1057,0 @@

@@ -83,2 +83,3 @@ "use strict";

memory: "memory",
shared: "shared",
table: "table",

@@ -390,17 +391,21 @@ global: "global",

eatCharacter();
_value3 = "";
var nameStartColumn = column;
while (char === ".") {
eatCharacter(); // Eat the dot
while (LETTERS.test(char)) {
_value3 += char;
eatCharacter();
_value3 = "";
var nameStartColumn = column;
while (LETTERS.test(char)) {
_value3 += char;
eatCharacter();
}
pushDotToken(".", {
startColumn: dotStartColumn
});
pushNameToken(_value3, {
startColumn: nameStartColumn
});
}
pushDotToken(".", {
startColumn: dotStartColumn
});
pushNameToken(_value3, {
startColumn: nameStartColumn
});
continue;

@@ -407,0 +412,0 @@ }

{
"name": "@webassemblyjs/wast-parser",
"version": "1.10.1",
"version": "1.11.0",
"description": "WebAssembly text format parser",

@@ -21,11 +21,11 @@ "keywords": [

"dependencies": {
"@webassemblyjs/ast": "1.10.1",
"@webassemblyjs/floating-point-hex-parser": "1.10.1",
"@webassemblyjs/helper-api-error": "1.10.1",
"@webassemblyjs/helper-code-frame": "1.10.1",
"@webassemblyjs/helper-fsm": "1.10.1",
"@webassemblyjs/ast": "1.11.0",
"@webassemblyjs/floating-point-hex-parser": "1.11.0",
"@webassemblyjs/helper-api-error": "1.11.0",
"@webassemblyjs/helper-code-frame": "1.11.0",
"@webassemblyjs/helper-fsm": "1.11.0",
"@xtuc/long": "4.2.2"
},
"devDependencies": {
"@webassemblyjs/helper-test-framework": "1.10.1",
"@webassemblyjs/helper-test-framework": "1.11.0",
"mamacro": "^0.0.7"

@@ -40,3 +40,3 @@ },

},
"gitHead": "f723f2cdd9bfccb5e199962dd8c5c09bdb0faca4"
"gitHead": "2646d3b7d79bba66c4a5930c52ae99a30a9767db"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc