@webassemblyjs/ast
Advanced tools
Comparing version 1.9.1 to 1.10.0
@@ -6,2 +6,3 @@ export * from "./nodes"; | ||
export * from "./utils"; | ||
export { cloneNode } from "./clone"; | ||
export { cloneNode } from "./clone"; | ||
export { moduleContextFromModuleAST } from "./transform/ast-module-to-module-context"; |
@@ -1,2 +0,2 @@ | ||
import { parse32F, parse64F, parse32I, parse64I, parseU32, isNanLiteral, isInfLiteral } from "@webassemblyjs/wast-parser"; | ||
import { parse32F, parse64F, parse32I, parse64I, parseU32, isNanLiteral, isInfLiteral } from "@webassemblyjs/helper-numbers"; | ||
import { longNumberLiteral, floatLiteral, numberLiteral, instr } from "./nodes"; | ||
@@ -3,0 +3,0 @@ export function numberLiteralFromRaw(rawValue) { |
@@ -8,3 +8,3 @@ 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); } | ||
import { isBlock, isFunc, isIdentifier, numberLiteralFromRaw, traverse } from "../../index"; | ||
import { moduleContextFromModuleAST } from "@webassemblyjs/helper-module-context"; // FIXME(sven): do the same with all block instructions, must be more generic here | ||
import { moduleContextFromModuleAST } from "../ast-module-to-module-context"; // FIXME(sven): do the same with all block instructions, must be more generic here | ||
@@ -11,0 +11,0 @@ function newUnexpectedFunction(i) { |
@@ -17,3 +17,4 @@ "use strict"; | ||
signatures: true, | ||
cloneNode: true | ||
cloneNode: true, | ||
moduleContextFromModuleAST: true | ||
}; | ||
@@ -86,2 +87,8 @@ Object.defineProperty(exports, "numberLiteralFromRaw", { | ||
}); | ||
Object.defineProperty(exports, "moduleContextFromModuleAST", { | ||
enumerable: true, | ||
get: function get() { | ||
return _astModuleToModuleContext.moduleContextFromModuleAST; | ||
} | ||
}); | ||
@@ -120,2 +127,4 @@ var _nodes = require("./nodes"); | ||
var _clone = require("./clone"); | ||
var _clone = require("./clone"); | ||
var _astModuleToModuleContext = require("./transform/ast-module-to-module-context"); |
@@ -15,3 +15,3 @@ "use strict"; | ||
var _wastParser = require("@webassemblyjs/wast-parser"); | ||
var _helperNumbers = require("@webassemblyjs/helper-numbers"); | ||
@@ -34,3 +34,3 @@ var _nodes = require("./nodes"); | ||
{ | ||
return (0, _nodes.numberLiteral)((0, _wastParser.parse32I)(rawValue), String(original)); | ||
return (0, _nodes.numberLiteral)((0, _helperNumbers.parse32I)(rawValue), String(original)); | ||
} | ||
@@ -40,3 +40,3 @@ | ||
{ | ||
return (0, _nodes.numberLiteral)((0, _wastParser.parseU32)(rawValue), String(original)); | ||
return (0, _nodes.numberLiteral)((0, _helperNumbers.parseU32)(rawValue), String(original)); | ||
} | ||
@@ -46,3 +46,3 @@ | ||
{ | ||
return (0, _nodes.longNumberLiteral)((0, _wastParser.parse64I)(rawValue), String(original)); | ||
return (0, _nodes.longNumberLiteral)((0, _helperNumbers.parse64I)(rawValue), String(original)); | ||
} | ||
@@ -52,3 +52,3 @@ | ||
{ | ||
return (0, _nodes.floatLiteral)((0, _wastParser.parse32F)(rawValue), (0, _wastParser.isNanLiteral)(rawValue), (0, _wastParser.isInfLiteral)(rawValue), String(original)); | ||
return (0, _nodes.floatLiteral)((0, _helperNumbers.parse32F)(rawValue), (0, _helperNumbers.isNanLiteral)(rawValue), (0, _helperNumbers.isInfLiteral)(rawValue), String(original)); | ||
} | ||
@@ -59,3 +59,3 @@ // f64 | ||
{ | ||
return (0, _nodes.floatLiteral)((0, _wastParser.parse64F)(rawValue), (0, _wastParser.isNanLiteral)(rawValue), (0, _wastParser.isInfLiteral)(rawValue), String(original)); | ||
return (0, _nodes.floatLiteral)((0, _helperNumbers.parse64F)(rawValue), (0, _helperNumbers.isNanLiteral)(rawValue), (0, _helperNumbers.isInfLiteral)(rawValue), String(original)); | ||
} | ||
@@ -62,0 +62,0 @@ } |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _helperModuleContext = require("@webassemblyjs/helper-module-context"); | ||
var _astModuleToModuleContext = require("../ast-module-to-module-context"); | ||
@@ -41,3 +41,3 @@ 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); } | ||
}); | ||
var moduleContext = (0, _helperModuleContext.moduleContextFromModuleAST)(module); // Transform the actual instruction in function bodies | ||
var moduleContext = (0, _astModuleToModuleContext.moduleContextFromModuleAST)(module); // Transform the actual instruction in function bodies | ||
@@ -44,0 +44,0 @@ (0, _index.traverse)(ast, { |
{ | ||
"name": "@webassemblyjs/ast", | ||
"version": "1.9.1", | ||
"version": "1.10.0", | ||
"description": "AST utils for webassemblyjs", | ||
@@ -15,5 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@webassemblyjs/helper-module-context": "1.9.1", | ||
"@webassemblyjs/helper-wasm-bytecode": "1.9.1", | ||
"@webassemblyjs/wast-parser": "1.9.1" | ||
"@webassemblyjs/helper-numbers": "1.10.0", | ||
"@webassemblyjs/helper-wasm-bytecode": "1.10.0" | ||
}, | ||
@@ -28,3 +27,3 @@ "repository": { | ||
"devDependencies": { | ||
"@webassemblyjs/helper-test-framework": "1.9.1", | ||
"@webassemblyjs/helper-test-framework": "1.10.0", | ||
"array.prototype.flatmap": "^1.2.1", | ||
@@ -34,3 +33,3 @@ "dump-exports": "^0.1.0", | ||
}, | ||
"gitHead": "697a5f63048049e9ecb3205d789c1e80eaadf478" | ||
"gitHead": "d00b899ece0242275e2475e75232ae18ddd03aeb" | ||
} |
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
200022
2
36
6073
+ Added@webassemblyjs/helper-numbers@1.10.0(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.10.0(transitive)
- Removed@webassemblyjs/wast-parser@1.9.1
- Removed@webassemblyjs/floating-point-hex-parser@1.9.1(transitive)
- Removed@webassemblyjs/helper-api-error@1.9.1(transitive)
- Removed@webassemblyjs/helper-code-frame@1.9.1(transitive)
- Removed@webassemblyjs/helper-fsm@1.9.1(transitive)
- Removed@webassemblyjs/helper-module-context@1.9.1(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.9.1(transitive)
- Removed@webassemblyjs/wast-parser@1.9.1(transitive)
- Removed@webassemblyjs/wast-printer@1.9.1(transitive)
- Removed@xtuc/long@4.2.2(transitive)