@somewhatintelligent/kit 0.0.3-beta.1783732751.3b77dd8 → 0.0.3
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/package.json +3 -3
- package/src/react-start/mount.ts +14 -3
- package/src/version.gen.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@somewhatintelligent/kit",
|
|
3
|
-
"version": "0.0.3
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"src"
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
|
-
"typecheck": "tsc --noEmit",
|
|
30
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.workerlib.json",
|
|
31
31
|
"test": "vitest run"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@somewhatintelligent/auth": "^0.0.
|
|
34
|
+
"@somewhatintelligent/auth": "^0.0.3",
|
|
35
35
|
"ulidx": "^2.4.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
package/src/react-start/mount.ts
CHANGED
|
@@ -60,10 +60,21 @@ export function resolveBasepath(opts: {
|
|
|
60
60
|
return normalizeBasepath(opts.publicBase);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Reads bouncer's vmf mount announcement from the served document (client
|
|
65
|
+
* only; null on the server). `document` is reached through a structural
|
|
66
|
+
* globalThis lookup, not the DOM lib types — this module is compiled by
|
|
67
|
+
* WebWorker-lib consumers too (bouncer imports MOUNT_META_NAME), where the
|
|
68
|
+
* DOM globals don't exist even as types.
|
|
69
|
+
*/
|
|
64
70
|
export function readMountMeta(): string | null {
|
|
65
|
-
|
|
66
|
-
|
|
71
|
+
const doc = (
|
|
72
|
+
globalThis as {
|
|
73
|
+
document?: { querySelector(s: string): { getAttribute(n: string): string | null } | null };
|
|
74
|
+
}
|
|
75
|
+
).document;
|
|
76
|
+
if (!doc) return null;
|
|
77
|
+
return doc.querySelector(`meta[name="${MOUNT_META_NAME}"]`)?.getAttribute("content") ?? null;
|
|
67
78
|
}
|
|
68
79
|
|
|
69
80
|
/**
|
package/src/version.gen.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
// values are dev placeholders, identical to the runtime fallbacks.
|
|
3
3
|
export const PKG = {
|
|
4
4
|
name: "@somewhatintelligent/kit",
|
|
5
|
-
version: "0.0.3
|
|
6
|
-
commit: "
|
|
5
|
+
version: "0.0.3",
|
|
6
|
+
commit: "b15e8b4c0193105116538d475e4562626b84d298",
|
|
7
7
|
} as const;
|