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 1.0.0 to 2.0.0

CHANGELOG.md

4

dist/cjs/WasmDis.d.ts

@@ -74,3 +74,3 @@ import { BinaryReader } from './WasmParser.js';

private _addOffsets;
private _nextLineToAddOffset;
private _skipTypes;
private _done;

@@ -88,2 +88,4 @@ private _currentPosition;

set addOffsets(value: boolean);
get skipTypes(): boolean;
set skipTypes(skipTypes: boolean);
get labelMode(): LabelMode;

@@ -90,0 +92,0 @@ set labelMode(value: LabelMode);

@@ -336,2 +336,3 @@ "use strict";

function WasmDisassembler() {
this._skipTypes = true;
this._lines = [];

@@ -377,2 +378,14 @@ this._offsets = [];

});
Object.defineProperty(WasmDisassembler.prototype, "skipTypes", {
get: function () {
return this._skipTypes;
},
set: function (skipTypes) {
if (this._currentPosition)
throw new Error('Cannot switch skipTypes during processing.');
this._skipTypes = skipTypes;
},
enumerable: true,
configurable: true
});
Object.defineProperty(WasmDisassembler.prototype, "labelMode", {

@@ -551,4 +564,3 @@ get: function () {

case 19 /* return_call_indirect */:
var typeName = this._nameResolver.getTypeName(operator.typeIndex, true);
this.appendBuffer(" (type " + typeName + ")");
this.printFuncType(operator.typeIndex);
break;

@@ -995,7 +1007,9 @@ case 32 /* local_get */:

this_1._types.push(funcType);
typeName = this_1._nameResolver.getTypeName(typeIndex, false);
this_1.appendBuffer(" (type " + typeName + " (func");
this_1.printFuncType(typeIndex);
this_1.appendBuffer('))');
this_1.newLine();
if (!this_1._skipTypes) {
typeName = this_1._nameResolver.getTypeName(typeIndex, false);
this_1.appendBuffer(" (type " + typeName + " (func");
this_1.printFuncType(typeIndex);
this_1.appendBuffer('))');
this_1.newLine();
}
break;

@@ -1013,9 +1027,7 @@ case 22 /* START_SECTION_ENTRY */:

body = reader.result;
this_1.newLine();
this_1.appendBuffer(' ');
this_1.appendBuffer(' ');
this_1.printString(body.data);
this_1.newLine();
break;
case 38 /* END_DATA_SECTION_ENTRY */:
this_1.appendBuffer(' )');
this_1.appendBuffer(')');
this_1.newLine();

@@ -1022,0 +1034,0 @@ break;

@@ -74,3 +74,3 @@ import { BinaryReader } from './WasmParser.js';

private _addOffsets;
private _nextLineToAddOffset;
private _skipTypes;
private _done;

@@ -88,2 +88,4 @@ private _currentPosition;

set addOffsets(value: boolean);
get skipTypes(): boolean;
set skipTypes(skipTypes: boolean);
get labelMode(): LabelMode;

@@ -90,0 +92,0 @@ set labelMode(value: LabelMode);

@@ -309,2 +309,3 @@ /* Copyright 2016 Mozilla Foundation

constructor() {
this._skipTypes = true;
this._lines = [];

@@ -346,2 +347,10 @@ this._offsets = [];

}
get skipTypes() {
return this._skipTypes;
}
set skipTypes(skipTypes) {
if (this._currentPosition)
throw new Error('Cannot switch skipTypes during processing.');
this._skipTypes = skipTypes;
}
get labelMode() {

@@ -508,4 +517,3 @@ return this._labelMode;

case 19 /* return_call_indirect */:
var typeName = this._nameResolver.getTypeName(operator.typeIndex, true);
this.appendBuffer(` (type ${typeName})`);
this.printFuncType(operator.typeIndex);
break;

@@ -949,7 +957,9 @@ case 32 /* local_get */:

this._types.push(funcType);
var typeName = this._nameResolver.getTypeName(typeIndex, false);
this.appendBuffer(` (type ${typeName} (func`);
this.printFuncType(typeIndex);
this.appendBuffer('))');
this.newLine();
if (!this._skipTypes) {
var typeName = this._nameResolver.getTypeName(typeIndex, false);
this.appendBuffer(` (type ${typeName} (func`);
this.printFuncType(typeIndex);
this.appendBuffer('))');
this.newLine();
}
break;

@@ -967,9 +977,7 @@ case 22 /* START_SECTION_ENTRY */:

var body = reader.result;
this.newLine();
this.appendBuffer(' ');
this.appendBuffer(' ');
this.printString(body.data);
this.newLine();
break;
case 38 /* END_DATA_SECTION_ENTRY */:
this.appendBuffer(' )');
this.appendBuffer(')');
this.newLine();

@@ -976,0 +984,0 @@ break;

{
"name": "wasmparser",
"version": "1.0.0",
"version": "2.0.0",
"description": "Binary WebAssembly file parser.",

@@ -32,2 +32,4 @@ "main": "dist/cjs/index.js",

"@commitlint/config-conventional": "^8.3.4",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/jest": "^24.9.1",

@@ -54,3 +56,13 @@ "concurrently": "^5.2.0",

]
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
]
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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