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

@thi.ng/wasm-api

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/wasm-api - npm Package Compare versions

Comparing version 1.4.12 to 1.4.13

zig/zig-cache/h/122cde1a061c7a71be08724d5a17d136.txt

3

api.d.ts

@@ -1,5 +0,6 @@

import type { Fn, IDeref, ILength } from "@thi.ng/api";
import type { EVENT_ALL, Fn, IDeref, ILength } from "@thi.ng/api";
import type { WasmBridge } from "./bridge.js";
export declare const EVENT_MEMORY_CHANGED = "memory-changed";
export declare const EVENT_PANIC = "panic";
export type BridgeEventType = typeof EVENT_MEMORY_CHANGED | typeof EVENT_PANIC | typeof EVENT_ALL;
export type BigIntArray = bigint[] | BigInt64Array | BigUint64Array;

@@ -6,0 +7,0 @@ export type ReadonlyWasmString = IDeref<string> & ILength & {

/// <reference types="node" />
import type { Event, INotify, IObjectOf, Listener, NumericArray } from "@thi.ng/api";
import type { ILogger } from "@thi.ng/logger";
import { type BigIntArray, type CoreAPI, type IWasmAPI, type IWasmMemoryAccess, type MemorySlice, type WasmExports } from "./api.js";
import { type BigIntArray, type BridgeEventType, type CoreAPI, type IWasmAPI, type IWasmMemoryAccess, type MemorySlice, type WasmExports } from "./api.js";
export declare const Panic: {

@@ -41,3 +41,3 @@ new (msg?: string | undefined): {

*/
export declare class WasmBridge<T extends WasmExports = WasmExports> implements IWasmMemoryAccess, INotify {
export declare class WasmBridge<T extends WasmExports = WasmExports> implements IWasmMemoryAccess, INotify<BridgeEventType> {
logger: ILogger;

@@ -181,8 +181,8 @@ readonly id = "wasmapi";

/** {@inheritDoc @thi.ng/api#INotify.addListener} */
addListener(id: string, fn: Listener, scope?: any): boolean;
addListener(id: BridgeEventType, fn: Listener<BridgeEventType>, scope?: any): boolean;
/** {@inheritDoc @thi.ng/api#INotify.removeListener} */
removeListener(id: string, fn: Listener, scope?: any): boolean;
removeListener(id: BridgeEventType, fn: Listener<BridgeEventType>, scope?: any): boolean;
/** {@inheritDoc @thi.ng/api#INotify.notify} */
notify(event: Event): boolean;
notify(event: Event<BridgeEventType>): boolean;
}
//# sourceMappingURL=bridge.d.ts.map

@@ -391,5 +391,7 @@ import { __decorate } from "tslib";

// @ts-ignore: mixin
// prettier-ignore
addListener(id, fn, scope) { }
/** {@inheritDoc @thi.ng/api#INotify.removeListener} */
// @ts-ignore: mixin
// prettier-ignore
removeListener(id, fn, scope) { }

@@ -396,0 +398,0 @@ /** {@inheritDoc @thi.ng/api#INotify.notify} */

# Change Log
- **Last updated**: 2023-07-14T11:37:51Z
- **Last updated**: 2023-08-04T10:58:19Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,9 @@

### [1.4.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api@1.4.13) (2023-08-04)
#### ♻️ Refactoring
- update INotify impl ([07e884f](https://github.com/thi-ng/umbrella/commit/07e884f))
- update INotify impls ([cbdc527](https://github.com/thi-ng/umbrella/commit/cbdc527))
### [1.4.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api@1.4.12) (2023-07-14)

@@ -14,0 +21,0 @@

{
"name": "@thi.ng/wasm-api",
"version": "1.4.12",
"version": "1.4.13",
"description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects",

@@ -38,17 +38,17 @@ "type": "module",

"dependencies": {
"@thi.ng/api": "^8.8.2",
"@thi.ng/arrays": "^2.5.14",
"@thi.ng/checks": "^3.3.14",
"@thi.ng/errors": "^2.2.17",
"@thi.ng/hex": "^2.3.11",
"@thi.ng/idgen": "^2.1.34",
"@thi.ng/logger": "^1.4.15"
"@thi.ng/api": "^8.9.0",
"@thi.ng/arrays": "^2.5.15",
"@thi.ng/checks": "^3.4.0",
"@thi.ng/errors": "^2.3.0",
"@thi.ng/hex": "^2.3.12",
"@thi.ng/idgen": "^2.2.0",
"@thi.ng/logger": "^1.4.16"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.35.3",
"@thi.ng/testament": "^0.3.17",
"@microsoft/api-extractor": "^7.36.3",
"@thi.ng/testament": "^0.3.18",
"rimraf": "^5.0.1",
"tools": "^0.0.1",
"typedoc": "^0.24.8",
"typescript": "^5.1.3"
"typescript": "^5.1.6"
},

@@ -119,3 +119,3 @@ "keywords": [

},
"gitHead": "88cfe77770f3b07c788301dccefcb9547cd4aff6\n"
"gitHead": "9fa3f7f8169efa30e3c71b43c82f77393581c3b5\n"
}

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