Socket
Socket
Sign inDemoInstall

@webassemblyjs/helper-module-context

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webassemblyjs/helper-module-context - npm Package Compare versions

Comparing version 1.5.4 to 1.5.5

16

lib/index.js

@@ -24,3 +24,7 @@ "use strict";

var moduleContext = new ModuleContext();
assert(m.type === "Module");
if (!(m.type === "Module")) {
throw new Error('m.type === "Module"' + " error: " + (undefined || "unknown"));
}
m.fields.forEach(function (field) {

@@ -185,3 +189,6 @@ switch (field.type) {

value: function getFunctionOffsetByIdentifier(name) {
assert(typeof name === "string");
if (!(typeof name === "string")) {
throw new Error('typeof name === "string"' + " error: " + (undefined || "unknown"));
}
return this.funcsOffsetByIdentifier[name];

@@ -251,3 +258,6 @@ }

value: function getGlobalOffsetByIdentifier(name) {
assert(typeof name === "string");
if (!(typeof name === "string")) {
throw new Error('typeof name === "string"' + " error: " + (undefined || "unknown"));
}
return this.globalsOffsetByIdentifier[name];

@@ -254,0 +264,0 @@ }

2

package.json
{
"name": "@webassemblyjs/helper-module-context",
"version": "1.5.4",
"version": "1.5.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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