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

wasmparser

Package Overview
Dependencies
Maintainers
3
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wasmparser - npm Package Compare versions

Comparing version 5.9.0 to 5.10.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [5.10.0](https://github.com/wasdk/wasmparser/compare/v5.9.0...v5.10.0) (2024-03-14)
### Features
* implement exnref type and try_table opcode. ([#141](https://github.com/wasdk/wasmparser/issues/141)) ([5aa20fd](https://github.com/wasdk/wasmparser/commit/5aa20fd4dc656bd060371e281ef2617ad5b4800b))
# [5.9.0](https://github.com/wasdk/wasmparser/compare/v5.8.0...v5.9.0) (2023-11-16)

@@ -2,0 +9,0 @@

2

dist/cjs/index.d.ts

@@ -1,2 +0,2 @@

export { SectionCode, OperatorCode, OperatorCodeNames, ExternalKind, Type, RelocType, LinkingType, NameType, BinaryReaderState, Int64, BinaryReader, bytesToString, IModuleHeader, IResizableLimits, ITableType, IMemoryType, IGlobalType, IGlobalVariable, IElementSegment, IElementSegmentBody, IDataSegment, IDataSegmentBody, ImportEntryType, IImportEntry, IExportEntry, INameEntry, INaming, IModuleNameEntry, IFunctionNameEntry, ILocalName, ILocalNameEntry, ILinkingEntry, IRelocHeader, IRelocEntry, ISourceMappingURL, IStartEntry, IFunctionEntry, ITypeEntry, ISectionInformation, ILocals, IFunctionInformation, IMemoryAddress, IOperatorInformation, IBinaryReaderData, } from "./WasmParser.js";
export { SectionCode, OperatorCode, OperatorCodeNames, ExternalKind, Type, CatchHandlerKind, CatchHandler, RelocType, LinkingType, NameType, BinaryReaderState, Int64, BinaryReader, bytesToString, IModuleHeader, IResizableLimits, ITableType, IMemoryType, IGlobalType, IGlobalVariable, IElementSegment, IElementSegmentBody, IDataSegment, IDataSegmentBody, ImportEntryType, IImportEntry, IExportEntry, INameEntry, INaming, IModuleNameEntry, IFunctionNameEntry, ILocalName, ILocalNameEntry, ILinkingEntry, IRelocHeader, IRelocEntry, ISourceMappingURL, IStartEntry, IFunctionEntry, ITypeEntry, ISectionInformation, ILocals, IFunctionInformation, IMemoryAddress, IOperatorInformation, IBinaryReaderData, } from "./WasmParser.js";
export { DefaultNameResolver, NumericNameResolver, WasmDisassembler, LabelMode, IDisassemblerResult, INameResolver, } from "./WasmDis.js";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LabelMode = exports.WasmDisassembler = exports.NumericNameResolver = exports.DefaultNameResolver = exports.bytesToString = exports.BinaryReader = exports.Int64 = exports.BinaryReaderState = exports.NameType = exports.LinkingType = exports.RelocType = exports.Type = exports.ExternalKind = exports.OperatorCodeNames = exports.OperatorCode = exports.SectionCode = void 0;
exports.LabelMode = exports.WasmDisassembler = exports.NumericNameResolver = exports.DefaultNameResolver = exports.bytesToString = exports.BinaryReader = exports.Int64 = exports.BinaryReaderState = exports.NameType = exports.LinkingType = exports.RelocType = exports.CatchHandler = exports.CatchHandlerKind = exports.Type = exports.ExternalKind = exports.OperatorCodeNames = exports.OperatorCode = exports.SectionCode = void 0;
// Just re-exporting everything.

@@ -11,2 +11,4 @@ var WasmParser_js_1 = require("./WasmParser.js");

Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return WasmParser_js_1.Type; } });
Object.defineProperty(exports, "CatchHandlerKind", { enumerable: true, get: function () { return WasmParser_js_1.CatchHandlerKind; } });
Object.defineProperty(exports, "CatchHandler", { enumerable: true, get: function () { return WasmParser_js_1.CatchHandler; } });
Object.defineProperty(exports, "RelocType", { enumerable: true, get: function () { return WasmParser_js_1.RelocType; } });

@@ -13,0 +15,0 @@ Object.defineProperty(exports, "LinkingType", { enumerable: true, get: function () { return WasmParser_js_1.LinkingType; } });

@@ -29,3 +29,3 @@ export declare const enum SectionCode {

rethrow = 9,
unwind = 10,
throw_ref = 10,
end = 11,

@@ -48,2 +48,3 @@ br = 12,

select_with_type = 28,
try_table = 31,
local_get = 32,

@@ -614,2 +615,3 @@ local_set = 33,

i16 = -9,
nullexnref = -12,
nullfuncref = -13,

@@ -625,2 +627,3 @@ nullref = -15,

arrayref = -22,
exnref = -23,
ref = -28,

@@ -652,2 +655,3 @@ ref_null = -29,

static externref: Type;
static exnref: Type;
}

@@ -659,2 +663,13 @@ export declare class RefType extends Type {

}
export declare enum CatchHandlerKind {
Catch = 0,
CatchRef = 1,
CatchAll = 2,
CatchAllRef = 3
}
export declare class CatchHandler {
kind: CatchHandlerKind;
depth: number;
tagIndex?: number;
}
export declare const enum RelocType {

@@ -901,2 +916,3 @@ FunctionIndex_LEB = 0,

brTable?: Array<number>;
tryTable?: Array<CatchHandler>;
relativeDepth?: number;

@@ -903,0 +919,0 @@ funcIndex?: number;

@@ -1,2 +0,2 @@

export { SectionCode, OperatorCode, OperatorCodeNames, ExternalKind, Type, RelocType, LinkingType, NameType, BinaryReaderState, Int64, BinaryReader, bytesToString, IModuleHeader, IResizableLimits, ITableType, IMemoryType, IGlobalType, IGlobalVariable, IElementSegment, IElementSegmentBody, IDataSegment, IDataSegmentBody, ImportEntryType, IImportEntry, IExportEntry, INameEntry, INaming, IModuleNameEntry, IFunctionNameEntry, ILocalName, ILocalNameEntry, ILinkingEntry, IRelocHeader, IRelocEntry, ISourceMappingURL, IStartEntry, IFunctionEntry, ITypeEntry, ISectionInformation, ILocals, IFunctionInformation, IMemoryAddress, IOperatorInformation, IBinaryReaderData, } from "./WasmParser.js";
export { SectionCode, OperatorCode, OperatorCodeNames, ExternalKind, Type, CatchHandlerKind, CatchHandler, RelocType, LinkingType, NameType, BinaryReaderState, Int64, BinaryReader, bytesToString, IModuleHeader, IResizableLimits, ITableType, IMemoryType, IGlobalType, IGlobalVariable, IElementSegment, IElementSegmentBody, IDataSegment, IDataSegmentBody, ImportEntryType, IImportEntry, IExportEntry, INameEntry, INaming, IModuleNameEntry, IFunctionNameEntry, ILocalName, ILocalNameEntry, ILinkingEntry, IRelocHeader, IRelocEntry, ISourceMappingURL, IStartEntry, IFunctionEntry, ITypeEntry, ISectionInformation, ILocals, IFunctionInformation, IMemoryAddress, IOperatorInformation, IBinaryReaderData, } from "./WasmParser.js";
export { DefaultNameResolver, NumericNameResolver, WasmDisassembler, LabelMode, IDisassemblerResult, INameResolver, } from "./WasmDis.js";
// Just re-exporting everything.
export { SectionCode, OperatorCode, OperatorCodeNames, ExternalKind, Type, RelocType, LinkingType, NameType, BinaryReaderState, Int64, BinaryReader, bytesToString, } from "./WasmParser.js";
export { SectionCode, OperatorCode, OperatorCodeNames, ExternalKind, Type, CatchHandlerKind, CatchHandler, RelocType, LinkingType, NameType, BinaryReaderState, Int64, BinaryReader, bytesToString, } from "./WasmParser.js";
export { DefaultNameResolver, NumericNameResolver, WasmDisassembler, LabelMode, } from "./WasmDis.js";
//# sourceMappingURL=index.js.map

@@ -29,3 +29,3 @@ export declare const enum SectionCode {

rethrow = 9,
unwind = 10,
throw_ref = 10,
end = 11,

@@ -48,2 +48,3 @@ br = 12,

select_with_type = 28,
try_table = 31,
local_get = 32,

@@ -614,2 +615,3 @@ local_set = 33,

i16 = -9,
nullexnref = -12,
nullfuncref = -13,

@@ -625,2 +627,3 @@ nullref = -15,

arrayref = -22,
exnref = -23,
ref = -28,

@@ -652,2 +655,3 @@ ref_null = -29,

static externref: Type;
static exnref: Type;
}

@@ -659,2 +663,13 @@ export declare class RefType extends Type {

}
export declare enum CatchHandlerKind {
Catch = 0,
CatchRef = 1,
CatchAll = 2,
CatchAllRef = 3
}
export declare class CatchHandler {
kind: CatchHandlerKind;
depth: number;
tagIndex?: number;
}
export declare const enum RelocType {

@@ -901,2 +916,3 @@ FunctionIndex_LEB = 0,

brTable?: Array<number>;
tryTable?: Array<CatchHandler>;
relativeDepth?: number;

@@ -903,0 +919,0 @@ funcIndex?: number;

{
"name": "wasmparser",
"version": "5.9.0",
"version": "5.10.0",
"description": "Binary WebAssembly file parser.",

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

@@ -8,2 +8,4 @@ // Just re-exporting everything.

Type,
CatchHandlerKind,
CatchHandler,
RelocType,

@@ -10,0 +12,0 @@ LinkingType,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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