@webassemblyjs/validation
Advanced tools
Comparing version 1.9.1 to 1.10.0
@@ -8,3 +8,3 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
import duplicatedExports from "./duplicated-exports"; | ||
import { moduleContextFromModuleAST } from "@webassemblyjs/helper-module-context"; | ||
import { moduleContextFromModuleAST } from "@webassemblyjs/ast"; | ||
export default function validateAST(ast) { | ||
@@ -11,0 +11,0 @@ var errors = getValidationErrors(ast); |
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
import { traverse, isInstruction, isSignature, isNumberLiteral } from "@webassemblyjs/ast"; | ||
import { moduleContextFromModuleAST } from "@webassemblyjs/helper-module-context"; | ||
import { moduleContextFromModuleAST } from "@webassemblyjs/ast"; | ||
import getType from "./type-checker/get-type.js"; | ||
@@ -6,0 +6,0 @@ import { ANY, POLYMORPHIC } from "./type-checker/types.js"; |
@@ -38,3 +38,3 @@ "use strict"; | ||
var _helperModuleContext = require("@webassemblyjs/helper-module-context"); | ||
var _ast = require("@webassemblyjs/ast"); | ||
@@ -73,3 +73,3 @@ var _typeInference = require("./type-inference"); | ||
modules.forEach(function (m) { | ||
var moduleContext = (0, _helperModuleContext.moduleContextFromModuleAST)(m); // $FlowIgnore | ||
var moduleContext = (0, _ast.moduleContextFromModuleAST)(m); // $FlowIgnore | ||
@@ -76,0 +76,0 @@ errors.push.apply(errors, _toConsumableArray((0, _imports.default)(ast, moduleContext))); |
@@ -10,4 +10,2 @@ "use strict"; | ||
var _helperModuleContext = require("@webassemblyjs/helper-module-context"); | ||
var _getType = _interopRequireDefault(require("./type-checker/get-type.js")); | ||
@@ -253,3 +251,3 @@ | ||
var moduleContext = (0, _helperModuleContext.moduleContextFromModuleAST)(ast.body[0]); | ||
var moduleContext = (0, _ast.moduleContextFromModuleAST)(ast.body[0]); | ||
var typeChecker = createTypeChecker(); // Simulate stack types throughout all function bodies | ||
@@ -256,0 +254,0 @@ |
{ | ||
"name": "@webassemblyjs/validation", | ||
"version": "1.9.1", | ||
"version": "1.10.0", | ||
"description": "Module AST validations", | ||
@@ -20,12 +20,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@webassemblyjs/ast": "1.9.1", | ||
"@webassemblyjs/helper-module-context": "1.9.1" | ||
"@webassemblyjs/ast": "1.10.0" | ||
}, | ||
"devDependencies": { | ||
"@webassemblyjs/helper-test-framework": "1.9.1", | ||
"@webassemblyjs/wasm-parser": "1.9.1", | ||
"@webassemblyjs/wast-parser": "1.9.1", | ||
"@webassemblyjs/helper-test-framework": "1.10.0", | ||
"@webassemblyjs/wasm-parser": "1.10.0", | ||
"@webassemblyjs/wast-parser": "1.10.0", | ||
"wabt": "1.0.0-nightly.20180421" | ||
}, | ||
"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
1
63505
2037
+ Added@webassemblyjs/ast@1.10.0(transitive)
+ Added@webassemblyjs/helper-numbers@1.10.0(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.10.0(transitive)
- Removed@webassemblyjs/ast@1.9.1(transitive)
- 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)
Updated@webassemblyjs/ast@1.10.0