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

wasmparser

Package Overview
Dependencies
Maintainers
2
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 3.1.3 to 3.2.0

7

CHANGELOG.md

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

# [3.2.0](https://github.com/wasdk/wasmparser/compare/v3.1.3...v3.2.0) (2020-10-13)
### Features
* support some extended name subsections ([d3efc60](https://github.com/wasdk/wasmparser/commit/d3efc60a93326c09502d8bbace5d2d6231df03e3))
## [3.1.3](https://github.com/wasdk/wasmparser/compare/v3.1.2...v3.1.3) (2020-10-12)

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

39

dist/cjs/WasmDis.d.ts

@@ -26,15 +26,2 @@ import { BinaryReader } from "./WasmParser.js";

}
export declare class DevToolsNameResolver extends DefaultNameResolver {
private readonly _functionNames;
private readonly _localNames;
private readonly _memoryNames;
private readonly _tableNames;
private readonly _globalNames;
constructor(functionNames: string[], localNames: string[][], memoryNames: string[], tableNames: string[], globalNames: string[]);
getTableName(index: number, isRef: boolean): string;
getMemoryName(index: number, isRef: boolean): string;
getGlobalName(index: number, isRef: boolean): string;
getFunctionName(index: number, isImport: boolean, isRef: boolean): string;
getVariableName(funcIndex: number, index: number, isRef: boolean): string;
}
export declare class NumericNameResolver implements INameResolver {

@@ -118,2 +105,17 @@ getTypeName(index: number, isRef: boolean): string;

}
declare class NameSectionNameResolver extends DefaultNameResolver {
protected readonly _functionNames: string[];
protected readonly _localNames: string[][];
protected readonly _typeNames: string[];
protected readonly _tableNames: string[];
protected readonly _memoryNames: string[];
protected readonly _globalNames: string[];
constructor(functionNames: string[], localNames: string[][], typeNames: string[], tableNames: string[], memoryNames: string[], globalNames: string[]);
getTypeName(index: number, isRef: boolean): string;
getTableName(index: number, isRef: boolean): string;
getMemoryName(index: number, isRef: boolean): string;
getGlobalName(index: number, isRef: boolean): string;
getFunctionName(index: number, isImport: boolean, isRef: boolean): string;
getVariableName(funcIndex: number, index: number, isRef: boolean): string;
}
export declare class NameSectionReader {

@@ -125,4 +127,7 @@ private _done;

private _functionLocalNames;
private _typeNames;
private _tableNames;
private _memoryNames;
private _globalNames;
private _hasNames;
constructor();
read(reader: BinaryReader): boolean;

@@ -132,2 +137,6 @@ hasValidNames(): boolean;

}
export declare class DevToolsNameResolver extends NameSectionNameResolver {
constructor(functionNames: string[], localNames: string[][], typeNames: string[], tableNames: string[], memoryNames: string[], globalNames: string[]);
getFunctionName(index: number, isImport: boolean, isRef: boolean): string;
}
export declare class DevToolsNameGenerator {

@@ -142,2 +151,3 @@ private _done;

private _memoryNames;
private _typeNames;
private _tableNames;

@@ -155,1 +165,2 @@ private _globalNames;

}
export {};

@@ -500,3 +500,7 @@ export declare const enum SectionCode {

Function = 1,
Local = 2
Local = 2,
Type = 4,
Table = 5,
Memory = 6,
Global = 7
}

@@ -621,2 +625,14 @@ export declare const enum BinaryReaderState {

}
export interface ITypeNameEntry extends INameEntry {
names: INaming[];
}
export interface ITableNameEntry extends INameEntry {
names: INaming[];
}
export interface IMemoryNameEntry extends INameEntry {
names: INaming[];
}
export interface IGlobalNameEntry extends INameEntry {
names: INaming[];
}
export interface ILinkingEntry {

@@ -623,0 +639,0 @@ type: LinkingType;

@@ -26,15 +26,2 @@ import { BinaryReader } from "./WasmParser.js";

}
export declare class DevToolsNameResolver extends DefaultNameResolver {
private readonly _functionNames;
private readonly _localNames;
private readonly _memoryNames;
private readonly _tableNames;
private readonly _globalNames;
constructor(functionNames: string[], localNames: string[][], memoryNames: string[], tableNames: string[], globalNames: string[]);
getTableName(index: number, isRef: boolean): string;
getMemoryName(index: number, isRef: boolean): string;
getGlobalName(index: number, isRef: boolean): string;
getFunctionName(index: number, isImport: boolean, isRef: boolean): string;
getVariableName(funcIndex: number, index: number, isRef: boolean): string;
}
export declare class NumericNameResolver implements INameResolver {

@@ -118,2 +105,17 @@ getTypeName(index: number, isRef: boolean): string;

}
declare class NameSectionNameResolver extends DefaultNameResolver {
protected readonly _functionNames: string[];
protected readonly _localNames: string[][];
protected readonly _typeNames: string[];
protected readonly _tableNames: string[];
protected readonly _memoryNames: string[];
protected readonly _globalNames: string[];
constructor(functionNames: string[], localNames: string[][], typeNames: string[], tableNames: string[], memoryNames: string[], globalNames: string[]);
getTypeName(index: number, isRef: boolean): string;
getTableName(index: number, isRef: boolean): string;
getMemoryName(index: number, isRef: boolean): string;
getGlobalName(index: number, isRef: boolean): string;
getFunctionName(index: number, isImport: boolean, isRef: boolean): string;
getVariableName(funcIndex: number, index: number, isRef: boolean): string;
}
export declare class NameSectionReader {

@@ -125,4 +127,7 @@ private _done;

private _functionLocalNames;
private _typeNames;
private _tableNames;
private _memoryNames;
private _globalNames;
private _hasNames;
constructor();
read(reader: BinaryReader): boolean;

@@ -132,2 +137,6 @@ hasValidNames(): boolean;

}
export declare class DevToolsNameResolver extends NameSectionNameResolver {
constructor(functionNames: string[], localNames: string[][], typeNames: string[], tableNames: string[], memoryNames: string[], globalNames: string[]);
getFunctionName(index: number, isImport: boolean, isRef: boolean): string;
}
export declare class DevToolsNameGenerator {

@@ -142,2 +151,3 @@ private _done;

private _memoryNames;
private _typeNames;
private _tableNames;

@@ -155,1 +165,2 @@ private _globalNames;

}
export {};

@@ -500,3 +500,7 @@ export declare const enum SectionCode {

Function = 1,
Local = 2
Local = 2,
Type = 4,
Table = 5,
Memory = 6,
Global = 7
}

@@ -621,2 +625,14 @@ export declare const enum BinaryReaderState {

}
export interface ITypeNameEntry extends INameEntry {
names: INaming[];
}
export interface ITableNameEntry extends INameEntry {
names: INaming[];
}
export interface IMemoryNameEntry extends INameEntry {
names: INaming[];
}
export interface IGlobalNameEntry extends INameEntry {
names: INaming[];
}
export interface ILinkingEntry {

@@ -623,0 +639,0 @@ type: LinkingType;

{
"name": "wasmparser",
"version": "3.1.3",
"version": "3.2.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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc