@thi.ng/wasm-api 2.4.23 → 2.4.25

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 214 standalone projects, maintained as part
10
+ > This is one of 215 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
12
12
  > and anti-framework.
13
13
  >
@@ -467,7 +467,7 @@ Browser ESM import:
467
467
 
468
468
  [JSDelivr documentation](https://www.jsdelivr.com/)
469
469
 
470
- Package sizes (brotli'd, pre-treeshake): ESM: 3.13 KB
470
+ Package sizes (brotli'd, pre-treeshake): ESM: 3.15 KB
471
471
 
472
472
  ## Dependencies
473
473
 
package/bridge.js CHANGED
@@ -72,6 +72,7 @@ let WasmBridge = class {
72
72
  };
73
73
  this._buildModuleGraph(modules);
74
74
  }
75
+ logger;
75
76
  id = "wasmapi";
76
77
  i8;
77
78
  u8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/wasm-api",
3
- "version": "2.4.23",
3
+ "version": "2.4.25",
4
4
  "description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,17 +43,17 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.12.18",
47
- "@thi.ng/arrays": "^2.14.14",
48
- "@thi.ng/checks": "^3.8.8",
49
- "@thi.ng/errors": "^2.6.7",
50
- "@thi.ng/hex": "^2.4.10",
51
- "@thi.ng/idgen": "^2.2.92",
52
- "@thi.ng/logger": "^3.3.1"
46
+ "@thi.ng/api": "^8.12.20",
47
+ "@thi.ng/arrays": "^2.14.16",
48
+ "@thi.ng/checks": "^3.9.0",
49
+ "@thi.ng/errors": "^2.6.9",
50
+ "@thi.ng/hex": "^2.4.12",
51
+ "@thi.ng/idgen": "^2.2.94",
52
+ "@thi.ng/logger": "^3.3.3"
53
53
  },
54
54
  "devDependencies": {
55
- "esbuild": "^0.27.2",
56
- "typedoc": "^0.28.16",
55
+ "esbuild": "^0.28.0",
56
+ "typedoc": "^0.28.18",
57
57
  "typescript": "^5.9.3"
58
58
  },
59
59
  "keywords": [
@@ -127,5 +127,5 @@
127
127
  "tag": "wasm",
128
128
  "year": 2022
129
129
  },
130
- "gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
130
+ "gitHead": "92be63f24030506f09d6d156804da2798c381dc4"
131
131
  }
package/pointer.js CHANGED
@@ -4,6 +4,9 @@ class Pointer {
4
4
  this.base = base;
5
5
  this.fn = fn;
6
6
  }
7
+ mem;
8
+ base;
9
+ fn;
7
10
  get addr() {
8
11
  this.mem.ensureMemory();
9
12
  return this.mem.u32[this.base >>> 2];
@@ -26,6 +29,9 @@ class Pointer64 {
26
29
  this.base = base;
27
30
  this.fn = fn;
28
31
  }
32
+ mem;
33
+ base;
34
+ fn;
29
35
  get addr() {
30
36
  this.mem.ensureMemory();
31
37
  return this.mem.u64[Number(this.base >> BigInt(3))];
package/string.js CHANGED
@@ -8,6 +8,10 @@ class WasmStringSlice {
8
8
  this.terminated = terminated;
9
9
  this.maxLen = this.length;
10
10
  }
11
+ mem;
12
+ base;
13
+ isConst;
14
+ terminated;
11
15
  maxLen;
12
16
  /**
13
17
  * Returns string start address (deref'd pointer).
@@ -108,6 +112,9 @@ class WasmStringPtr {
108
112
  this.base = base;
109
113
  this.isConst = isConst;
110
114
  }
115
+ mem;
116
+ base;
117
+ isConst;
111
118
  /**
112
119
  * Returns string start address (deref'd pointer).
113
120
  */