@thi.ng/wasm-api 1.6.3 → 1.6.5
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 +6 -4
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
<!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/wasm-api)
|
|
6
6
|

|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 198 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -415,9 +415,11 @@ Package sizes (brotli'd, pre-treeshake): ESM: 2.69 KB
|
|
|
415
415
|
- [@thi.ng/idgen](https://github.com/thi-ng/umbrella/tree/develop/packages/idgen)
|
|
416
416
|
- [@thi.ng/logger](https://github.com/thi-ng/umbrella/tree/develop/packages/logger)
|
|
417
417
|
|
|
418
|
+
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
419
|
+
|
|
418
420
|
## Usage examples
|
|
419
421
|
|
|
420
|
-
|
|
422
|
+
Four projects in this repo's
|
|
421
423
|
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
|
|
422
424
|
directory are using this package:
|
|
423
425
|
|
|
@@ -436,7 +438,7 @@ directory are using this package:
|
|
|
436
438
|
|
|
437
439
|
```ts
|
|
438
440
|
import { WasmBridge, WasmExports } from "@thi.ng/wasm-api";
|
|
439
|
-
import { readFileSync }
|
|
441
|
+
import { readFileSync } "node:fs";
|
|
440
442
|
|
|
441
443
|
// WASM exports from our dummy module (below)
|
|
442
444
|
interface App extends WasmExports {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/wasm-api",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@thi.ng/api": "^8.11.
|
|
41
|
-
"@thi.ng/arrays": "^2.9.
|
|
42
|
-
"@thi.ng/checks": "^3.6.
|
|
43
|
-
"@thi.ng/errors": "^2.5.
|
|
44
|
-
"@thi.ng/hex": "^2.3.
|
|
45
|
-
"@thi.ng/idgen": "^2.2.
|
|
46
|
-
"@thi.ng/logger": "^3.0.
|
|
40
|
+
"@thi.ng/api": "^8.11.7",
|
|
41
|
+
"@thi.ng/arrays": "^2.9.12",
|
|
42
|
+
"@thi.ng/checks": "^3.6.9",
|
|
43
|
+
"@thi.ng/errors": "^2.5.13",
|
|
44
|
+
"@thi.ng/hex": "^2.3.51",
|
|
45
|
+
"@thi.ng/idgen": "^2.2.47",
|
|
46
|
+
"@thi.ng/logger": "^3.0.17"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@microsoft/api-extractor": "^7.47.0",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"status": "alpha",
|
|
116
116
|
"year": 2022
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "324d6b7dbf31558329e9fb6452e29b2f7db9c61a\n"
|
|
119
119
|
}
|