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

@webassemblyjs/validation

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webassemblyjs/validation - npm Package Compare versions

Comparing version 1.9.1 to 1.10.0

2

esm/index.js

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