Socket
Socket
Sign inDemoInstall

wasmparser

Package Overview
Dependencies
2
Maintainers
3
Versions
99
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.5.0 to 5.6.0

7

CHANGELOG.md

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

# [5.6.0](https://github.com/wasdk/wasmparser/compare/v5.5.0...v5.6.0) (2023-05-19)
### Features
* sync op and type codes for GC proposal ([#133](https://github.com/wasdk/wasmparser/issues/133)) ([ce821b5](https://github.com/wasdk/wasmparser/commit/ce821b50834ace574403ed78e00c8341c65254a3))
# [5.5.0](https://github.com/wasdk/wasmparser/compare/v5.4.0...v5.5.0) (2023-05-12)

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

125

dist/cjs/WasmParser.d.ts

@@ -15,2 +15,3 @@ export declare const enum SectionCode {

Data = 11,
DataCount = 12,
Tag = 13

@@ -551,2 +552,3 @@ }

struct_new_default = 64264,
array_fill = 64271,
array_new_with_rtt = 64273,

@@ -558,8 +560,11 @@ array_new_default_with_rtt = 64274,

array_set = 64278,
array_len = 64279,
array_len_ = 64279,
array_len = 64281,
array_copy = 64280,
array_init = 64281,
array_init_static = 64282,
array_new_fixed = 64282,
array_new = 64283,
array_new_default = 64284,
array_new_data = 64285,
array_init_from_data = 64286,
array_new_elem = 64287,
i31_new = 64288,

@@ -572,21 +577,36 @@ i31_get_s = 64289,

ref_test = 64320,
ref_test_static = 64324,
ref_cast = 64321,
ref_cast_static = 64325,
br_on_cast = 64322,
br_on_cast_static = 64326,
br_on_cast_fail = 64323,
br_on_cast_static_fail = 64327,
ref_is_func = 64336,
ref_is_data = 64337,
ref_is_i31 = 64338,
ref_as_func = 64344,
ref_as_data = 64345,
ref_as_i31 = 64346,
br_on_func = 64352,
br_on_data = 64353,
br_on_i31 = 64354,
br_on_non_func = 64355,
br_on_non_data = 64356,
br_on_non_i31 = 64357
br_on_cast_ = 64322,
br_on_cast_fail_ = 64323,
ref_test_ = 64324,
ref_cast_ = 64325,
br_on_cast__ = 64326,
br_on_cast_fail__ = 64327,
ref_test_null = 64328,
ref_cast_null = 64329,
br_on_cast_null_ = 64330,
br_on_cast_fail_null_ = 64331,
ref_cast_nop = 64332,
br_on_cast = 64334,
br_on_cast_fail = 64335,
ref_is_func_ = 64336,
ref_is_data_ = 64337,
ref_is_i31_ = 64338,
ref_is_array_ = 64339,
array_init_data = 64340,
array_init_elem = 64341,
ref_as_func_ = 64344,
ref_as_data_ = 64345,
ref_as_i31_ = 64346,
ref_as_array_ = 64347,
br_on_func_ = 64352,
br_on_data_ = 64353,
br_on_i31_ = 64354,
br_on_non_func_ = 64355,
br_on_non_data_ = 64356,
br_on_non_i31_ = 64357,
br_on_array_ = 64358,
br_on_non_array_ = 64359,
extern_internalize = 64368,
extern_externalize = 64369
}

@@ -614,24 +634,40 @@ export declare const OperatorCodeNames: string[];

eqref = -19,
optref = -20,
ref_null = -20,
ref = -21,
i31ref = -22,
rtt_d = -23,
rtt = -24,
dataref = -25,
nullexternref = -23,
nullfuncref = -24,
structref = -25,
arrayref = -26,
nullref = -27,
func = -32,
struct = -33,
array = -34,
func_subtype = -35,
struct_subtype = -36,
array_subtype = -37,
subtype = -48,
rec_group = -49,
subtype_final = -50,
empty_block_type = -64
}
export declare class FieldDef {
ty: Type;
mutable: boolean;
}
export declare class FuncDef {
params: Type[];
results: Type[];
}
export declare class Type {
kind: TypeKind;
index: number;
depth: number;
constructor(kind: TypeKind, index?: number, depth?: number);
code: number;
constructor(code: number);
get isIndex(): boolean;
get kind(): TypeKind;
get index(): number;
static funcref: Type;
static externref: Type;
}
export declare class RefType extends Type {
ref_index: number;
constructor(kind: TypeKind, ref_index: number);
get isNullable(): boolean;
}
export declare const enum RelocType {

@@ -654,2 +690,3 @@ FunctionIndex_LEB = 0,

Local = 2,
Label = 3,
Type = 4,

@@ -659,2 +696,4 @@ Table = 5,

Global = 7,
Elem = 8,
Data = 9,
Field = 10,

@@ -707,3 +746,6 @@ Tag = 11

OFFSET_EXPRESSION_OPERATOR = 45,
END_OFFSET_EXPRESSION_BODY = 46
END_OFFSET_EXPRESSION_BODY = 46,
BEGIN_REC_GROUP = 47,
END_REC_GROUP = 48,
DATA_COUNT_SECTION_ENTRY = 49
}

@@ -849,3 +891,4 @@ export declare const enum DataMode {

mutability?: boolean;
supertype?: number;
supertypes?: number[];
final?: boolean;
}

@@ -887,2 +930,3 @@ export interface ISectionInformation {

literal?: number | Int64 | Uint8Array;
len?: number;
lines: Uint8Array;

@@ -899,3 +943,3 @@ lineIndex: number;

}
export type BinaryReaderResult = IImportEntry | IExportEntry | IFunctionEntry | ITypeEntry | IModuleHeader | IOperatorInformation | IMemoryType | ITableType | IGlobalVariable | INameEntry | IElementSegment | IElementSegmentBody | IDataSegment | IDataSegmentBody | ISectionInformation | IFunctionInformation | ISectionInformation | IFunctionInformation | IRelocHeader | IRelocEntry | ILinkingEntry | ISourceMappingURL | IModuleNameEntry | IStartEntry | Uint8Array;
export type BinaryReaderResult = IImportEntry | IExportEntry | IFunctionEntry | ITypeEntry | IModuleHeader | IOperatorInformation | IMemoryType | ITableType | IGlobalVariable | INameEntry | IElementSegment | IElementSegmentBody | IDataSegment | IDataSegmentBody | ISectionInformation | IFunctionInformation | ISectionInformation | IFunctionInformation | IRelocHeader | IRelocEntry | ILinkingEntry | ISourceMappingURL | IModuleNameEntry | IStartEntry | Uint8Array | number;
export declare class BinaryReader {

@@ -915,2 +959,3 @@ private _data;

private _segmentEntriesLeft;
private _recGroupTypesLeft;
get data(): Uint8Array;

@@ -934,5 +979,3 @@ get position(): number;

private readHeapType;
private readTypeInternal;
private readType;
private readBlockType;
private readStringBytes;

@@ -944,7 +987,6 @@ private readBytes;

private readFuncType;
private readFuncSubtype;
private readBaseType;
private readSubtype;
private readStructType;
private readStructSubtype;
private readArrayType;
private readArraySubtype;
private readResizableLimits;

@@ -955,3 +997,5 @@ private readTableType;

private readTagType;
private readTypeEntryCommon;
private readTypeEntry;
private readRecGroupEntry;
private readImportEntry;

@@ -967,2 +1011,3 @@ private readExportEntry;

private readDataEntry;
private readDataCountEntry;
private readDataEntryBody;

@@ -969,0 +1014,0 @@ private readInitExpressionBody;

@@ -15,2 +15,3 @@ export declare const enum SectionCode {

Data = 11,
DataCount = 12,
Tag = 13

@@ -551,2 +552,3 @@ }

struct_new_default = 64264,
array_fill = 64271,
array_new_with_rtt = 64273,

@@ -558,8 +560,11 @@ array_new_default_with_rtt = 64274,

array_set = 64278,
array_len = 64279,
array_len_ = 64279,
array_len = 64281,
array_copy = 64280,
array_init = 64281,
array_init_static = 64282,
array_new_fixed = 64282,
array_new = 64283,
array_new_default = 64284,
array_new_data = 64285,
array_init_from_data = 64286,
array_new_elem = 64287,
i31_new = 64288,

@@ -572,21 +577,36 @@ i31_get_s = 64289,

ref_test = 64320,
ref_test_static = 64324,
ref_cast = 64321,
ref_cast_static = 64325,
br_on_cast = 64322,
br_on_cast_static = 64326,
br_on_cast_fail = 64323,
br_on_cast_static_fail = 64327,
ref_is_func = 64336,
ref_is_data = 64337,
ref_is_i31 = 64338,
ref_as_func = 64344,
ref_as_data = 64345,
ref_as_i31 = 64346,
br_on_func = 64352,
br_on_data = 64353,
br_on_i31 = 64354,
br_on_non_func = 64355,
br_on_non_data = 64356,
br_on_non_i31 = 64357
br_on_cast_ = 64322,
br_on_cast_fail_ = 64323,
ref_test_ = 64324,
ref_cast_ = 64325,
br_on_cast__ = 64326,
br_on_cast_fail__ = 64327,
ref_test_null = 64328,
ref_cast_null = 64329,
br_on_cast_null_ = 64330,
br_on_cast_fail_null_ = 64331,
ref_cast_nop = 64332,
br_on_cast = 64334,
br_on_cast_fail = 64335,
ref_is_func_ = 64336,
ref_is_data_ = 64337,
ref_is_i31_ = 64338,
ref_is_array_ = 64339,
array_init_data = 64340,
array_init_elem = 64341,
ref_as_func_ = 64344,
ref_as_data_ = 64345,
ref_as_i31_ = 64346,
ref_as_array_ = 64347,
br_on_func_ = 64352,
br_on_data_ = 64353,
br_on_i31_ = 64354,
br_on_non_func_ = 64355,
br_on_non_data_ = 64356,
br_on_non_i31_ = 64357,
br_on_array_ = 64358,
br_on_non_array_ = 64359,
extern_internalize = 64368,
extern_externalize = 64369
}

@@ -614,24 +634,40 @@ export declare const OperatorCodeNames: string[];

eqref = -19,
optref = -20,
ref_null = -20,
ref = -21,
i31ref = -22,
rtt_d = -23,
rtt = -24,
dataref = -25,
nullexternref = -23,
nullfuncref = -24,
structref = -25,
arrayref = -26,
nullref = -27,
func = -32,
struct = -33,
array = -34,
func_subtype = -35,
struct_subtype = -36,
array_subtype = -37,
subtype = -48,
rec_group = -49,
subtype_final = -50,
empty_block_type = -64
}
export declare class FieldDef {
ty: Type;
mutable: boolean;
}
export declare class FuncDef {
params: Type[];
results: Type[];
}
export declare class Type {
kind: TypeKind;
index: number;
depth: number;
constructor(kind: TypeKind, index?: number, depth?: number);
code: number;
constructor(code: number);
get isIndex(): boolean;
get kind(): TypeKind;
get index(): number;
static funcref: Type;
static externref: Type;
}
export declare class RefType extends Type {
ref_index: number;
constructor(kind: TypeKind, ref_index: number);
get isNullable(): boolean;
}
export declare const enum RelocType {

@@ -654,2 +690,3 @@ FunctionIndex_LEB = 0,

Local = 2,
Label = 3,
Type = 4,

@@ -659,2 +696,4 @@ Table = 5,

Global = 7,
Elem = 8,
Data = 9,
Field = 10,

@@ -707,3 +746,6 @@ Tag = 11

OFFSET_EXPRESSION_OPERATOR = 45,
END_OFFSET_EXPRESSION_BODY = 46
END_OFFSET_EXPRESSION_BODY = 46,
BEGIN_REC_GROUP = 47,
END_REC_GROUP = 48,
DATA_COUNT_SECTION_ENTRY = 49
}

@@ -849,3 +891,4 @@ export declare const enum DataMode {

mutability?: boolean;
supertype?: number;
supertypes?: number[];
final?: boolean;
}

@@ -887,2 +930,3 @@ export interface ISectionInformation {

literal?: number | Int64 | Uint8Array;
len?: number;
lines: Uint8Array;

@@ -899,3 +943,3 @@ lineIndex: number;

}
export type BinaryReaderResult = IImportEntry | IExportEntry | IFunctionEntry | ITypeEntry | IModuleHeader | IOperatorInformation | IMemoryType | ITableType | IGlobalVariable | INameEntry | IElementSegment | IElementSegmentBody | IDataSegment | IDataSegmentBody | ISectionInformation | IFunctionInformation | ISectionInformation | IFunctionInformation | IRelocHeader | IRelocEntry | ILinkingEntry | ISourceMappingURL | IModuleNameEntry | IStartEntry | Uint8Array;
export type BinaryReaderResult = IImportEntry | IExportEntry | IFunctionEntry | ITypeEntry | IModuleHeader | IOperatorInformation | IMemoryType | ITableType | IGlobalVariable | INameEntry | IElementSegment | IElementSegmentBody | IDataSegment | IDataSegmentBody | ISectionInformation | IFunctionInformation | ISectionInformation | IFunctionInformation | IRelocHeader | IRelocEntry | ILinkingEntry | ISourceMappingURL | IModuleNameEntry | IStartEntry | Uint8Array | number;
export declare class BinaryReader {

@@ -915,2 +959,3 @@ private _data;

private _segmentEntriesLeft;
private _recGroupTypesLeft;
get data(): Uint8Array;

@@ -934,5 +979,3 @@ get position(): number;

private readHeapType;
private readTypeInternal;
private readType;
private readBlockType;
private readStringBytes;

@@ -944,7 +987,6 @@ private readBytes;

private readFuncType;
private readFuncSubtype;
private readBaseType;
private readSubtype;
private readStructType;
private readStructSubtype;
private readArrayType;
private readArraySubtype;
private readResizableLimits;

@@ -955,3 +997,5 @@ private readTableType;

private readTagType;
private readTypeEntryCommon;
private readTypeEntry;
private readRecGroupEntry;
private readImportEntry;

@@ -967,2 +1011,3 @@ private readExportEntry;

private readDataEntry;
private readDataCountEntry;
private readDataEntryBody;

@@ -969,0 +1014,0 @@ private readInitExpressionBody;

{
"name": "wasmparser",
"version": "5.5.0",
"version": "5.6.0",
"description": "Binary WebAssembly file parser.",

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

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 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc