@tinycloud/web-sdk 3.12.0-beta.7 → 3.12.0-beta.8
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/dist/delegations-issued.cjs +1 -1
- package/dist/delegations-issued.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/modules/tcw.d.ts +5 -2
- package/package.json +4 -4
package/dist/modules/tcw.d.ts
CHANGED
|
@@ -184,7 +184,7 @@ export interface ShareReceiveResult<T = unknown> {
|
|
|
184
184
|
delegation: Delegation;
|
|
185
185
|
path: string;
|
|
186
186
|
spaceId: string;
|
|
187
|
-
/**
|
|
187
|
+
/** Identity-checked registry destination where the verified parent was activated. */
|
|
188
188
|
host: string;
|
|
189
189
|
}
|
|
190
190
|
export declare class TinyCloudWeb {
|
|
@@ -269,6 +269,8 @@ export declare class TinyCloudWeb {
|
|
|
269
269
|
* @internal
|
|
270
270
|
*/
|
|
271
271
|
private ensureNode;
|
|
272
|
+
/** Bind a wrapper call to its entry-time authority before initialization can yield. */
|
|
273
|
+
private dispatchCurrentNode;
|
|
272
274
|
/**
|
|
273
275
|
* Get the TinyCloudNode instance synchronously.
|
|
274
276
|
* Throws if called before WASM initialization completes.
|
|
@@ -391,6 +393,7 @@ export declare class TinyCloudWeb {
|
|
|
391
393
|
* resolves `"unknown"` when the node has no hosting answer.
|
|
392
394
|
* Rejects with `Error("Space hosting was cancelled by sign-out.")` if sign-out
|
|
393
395
|
* happens during the hosting run. Call from a user gesture so the approval popup can open.
|
|
396
|
+
* Also rejects if the initiating session is replaced before hosting finishes.
|
|
394
397
|
*/
|
|
395
398
|
ensureSpaceHosted(): Promise<SpaceHosting>;
|
|
396
399
|
clearPersistedSession(address?: string): Promise<void>;
|
|
@@ -571,7 +574,7 @@ export declare class TinyCloudWeb {
|
|
|
571
574
|
checkPermission(path: string, action: string): Promise<Result<boolean, DelegationError>>;
|
|
572
575
|
/**
|
|
573
576
|
* Receive and retrieve data from a native TinyCloud bearer delegation.
|
|
574
|
-
* Static method — no
|
|
577
|
+
* Static method — no sign-in required. Verifies the parent with browser WASM and routes through the owner's registry.
|
|
575
578
|
*/
|
|
576
579
|
static receiveShare<T = unknown>(link: string, key?: string, options?: {
|
|
577
580
|
readonly binary?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/web-sdk",
|
|
3
|
-
"version": "3.12.0-beta.
|
|
3
|
+
"version": "3.12.0-beta.8",
|
|
4
4
|
"description": "A set of tools and utilities to help you build your app with TinyCloud.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"@multiformats/multiaddr": "^13.0.1",
|
|
68
68
|
"@multiformats/multiaddr-to-uri": "^12.0.0",
|
|
69
69
|
"@noble/curves": "^1.9.7",
|
|
70
|
-
"@tinycloud/node-sdk": "3.12.0-beta.
|
|
71
|
-
"@tinycloud/replica": "0.4.5-beta.
|
|
72
|
-
"@tinycloud/sdk-core": "3.12.0-beta.
|
|
70
|
+
"@tinycloud/node-sdk": "3.12.0-beta.8",
|
|
71
|
+
"@tinycloud/replica": "0.4.5-beta.3",
|
|
72
|
+
"@tinycloud/sdk-core": "3.12.0-beta.8",
|
|
73
73
|
"@tinycloud/share-envelope": "1.5.0",
|
|
74
74
|
"@tinycloud/share-sdk": "1.4.4",
|
|
75
75
|
"@tinycloud/web-sdk-wasm": "1.7.7",
|