@thi.ng/wasm-api 1.4.42 → 1.4.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/bridge.d.ts +0 -3
- package/bridge.js +0 -3
- package/package.json +9 -9
- package/pointer.d.ts +6 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/bridge.d.ts
CHANGED
|
@@ -178,11 +178,8 @@ export declare class WasmBridge<T extends WasmExports = WasmExports> implements
|
|
|
178
178
|
getString(addr: number, len?: number): string;
|
|
179
179
|
setString(str: string, addr: number, maxBytes: number, terminate?: boolean): number;
|
|
180
180
|
getElementById(addr: number, len?: number): HTMLElement;
|
|
181
|
-
/** {@inheritDoc @thi.ng/api#INotify.addListener} */
|
|
182
181
|
addListener(id: BridgeEventType, fn: Listener<BridgeEventType>, scope?: any): boolean;
|
|
183
|
-
/** {@inheritDoc @thi.ng/api#INotify.removeListener} */
|
|
184
182
|
removeListener(id: BridgeEventType, fn: Listener<BridgeEventType>, scope?: any): boolean;
|
|
185
|
-
/** {@inheritDoc @thi.ng/api#INotify.notify} */
|
|
186
183
|
notify(event: Event<BridgeEventType>): boolean;
|
|
187
184
|
}
|
|
188
185
|
//# sourceMappingURL=bridge.d.ts.map
|
package/bridge.js
CHANGED
|
@@ -421,17 +421,14 @@ let WasmBridge = class {
|
|
|
421
421
|
assert(!!el, `missing DOM element #${id}`);
|
|
422
422
|
return el;
|
|
423
423
|
}
|
|
424
|
-
/** {@inheritDoc @thi.ng/api#INotify.addListener} */
|
|
425
424
|
// @ts-ignore: mixin
|
|
426
425
|
// prettier-ignore
|
|
427
426
|
addListener(id, fn, scope) {
|
|
428
427
|
}
|
|
429
|
-
/** {@inheritDoc @thi.ng/api#INotify.removeListener} */
|
|
430
428
|
// @ts-ignore: mixin
|
|
431
429
|
// prettier-ignore
|
|
432
430
|
removeListener(id, fn, scope) {
|
|
433
431
|
}
|
|
434
|
-
/** {@inheritDoc @thi.ng/api#INotify.notify} */
|
|
435
432
|
// @ts-ignore: mixin
|
|
436
433
|
notify(event) {
|
|
437
434
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/wasm-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.44",
|
|
4
4
|
"description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"test:build-zig": "zig build-lib -O ReleaseSmall -target wasm32-freestanding -dynamic --strip --pkg-begin wasmapi zig/lib.zig --pkg-end test/custom.zig && wasm-dis -o custom.wast custom.wasm && cp custom.wasm test"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.9.
|
|
40
|
-
"@thi.ng/arrays": "^2.7.
|
|
41
|
-
"@thi.ng/checks": "^3.4.
|
|
42
|
-
"@thi.ng/errors": "^2.4.
|
|
43
|
-
"@thi.ng/hex": "^2.3.
|
|
44
|
-
"@thi.ng/idgen": "^2.2.
|
|
45
|
-
"@thi.ng/logger": "^2.1.
|
|
39
|
+
"@thi.ng/api": "^8.9.18",
|
|
40
|
+
"@thi.ng/arrays": "^2.7.15",
|
|
41
|
+
"@thi.ng/checks": "^3.4.18",
|
|
42
|
+
"@thi.ng/errors": "^2.4.11",
|
|
43
|
+
"@thi.ng/hex": "^2.3.30",
|
|
44
|
+
"@thi.ng/idgen": "^2.2.21",
|
|
45
|
+
"@thi.ng/logger": "^2.1.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@microsoft/api-extractor": "^7.39.0",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"status": "alpha",
|
|
116
116
|
"year": 2022
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "7426e2ae6fca5482c6eaf649872296fc89955374\n"
|
|
119
119
|
}
|
package/pointer.d.ts
CHANGED
|
@@ -21,14 +21,15 @@ export declare class Pointer<T> implements IDeref<T> {
|
|
|
21
21
|
deref(): T;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Generic pointer facility for
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
24
|
+
* Generic pointer facility for
|
|
25
|
+
* [`WASM64`](https://docs.thi.ng/umbrella/wasm-api-bindgen/variables/WASM64.html)
|
|
26
|
+
* target, which on {@link Pointer64.deref()} calls wrapper function (provided
|
|
27
|
+
* as ctor arg) to realize the pointer's target value. The pointer's target
|
|
28
|
+
* address can be accessed via {@link Pointer.addr} (read/write).
|
|
28
29
|
*
|
|
29
30
|
* @remarks
|
|
30
31
|
* The pointer always behaves like `volatile`, i.e. memoization of target values
|
|
31
|
-
* is
|
|
32
|
+
* is purposefully avoided and the wrapper function is executed anew _each_ time
|
|
32
33
|
* the pointer is deref'd.
|
|
33
34
|
*/
|
|
34
35
|
export declare class Pointer64<T> implements IDeref<T> {
|