@tinycloud/web-sdk 3.2.6-beta.1 → 3.2.6-beta.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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/modules/tcw.d.ts +13 -0
- package/package.json +3 -3
package/dist/modules/tcw.d.ts
CHANGED
|
@@ -157,6 +157,12 @@ export declare class TinyCloudWeb {
|
|
|
157
157
|
private walletSigner?;
|
|
158
158
|
private sessionStorage?;
|
|
159
159
|
private _sessionRestoreStatus;
|
|
160
|
+
/** Incremented by signOut; a sign-in that started before it does not complete. */
|
|
161
|
+
private signOutCount;
|
|
162
|
+
private signOutInFlight;
|
|
163
|
+
private persistedRestoreBlocked;
|
|
164
|
+
private signOutCleanupFailed;
|
|
165
|
+
private readonly pendingRestoreAddresses;
|
|
160
166
|
private _secrets;
|
|
161
167
|
private _credentialsService?;
|
|
162
168
|
private _shareReceiverService?;
|
|
@@ -285,11 +291,18 @@ export declare class TinyCloudWeb {
|
|
|
285
291
|
ensureOwnedSpaceHosted(name: string): Promise<string>;
|
|
286
292
|
private resolveRestoreAddress;
|
|
287
293
|
private loadPersistedSession;
|
|
294
|
+
private trackRestoreAddress;
|
|
295
|
+
private untrackRestoreAddress;
|
|
288
296
|
restoreSession(address?: string): Promise<SessionRestoreResult>;
|
|
289
297
|
clearPersistedSession(address?: string): Promise<void>;
|
|
290
298
|
private configuredManifestPermissions;
|
|
291
299
|
private restoredSessionCoversConfiguredManifest;
|
|
292
300
|
signIn: (options?: SignInOptions) => Promise<ClientSession>;
|
|
301
|
+
/**
|
|
302
|
+
* Sign out: end the session on this instance and clear the persisted
|
|
303
|
+
* session. Afterwards session accessors return `undefined` and service
|
|
304
|
+
* calls fail with "Not signed in" until the next sign-in or restore.
|
|
305
|
+
*/
|
|
293
306
|
signOut: () => Promise<void>;
|
|
294
307
|
session: () => ClientSession | undefined;
|
|
295
308
|
address: () => string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/web-sdk",
|
|
3
|
-
"version": "3.2.6-beta.
|
|
3
|
+
"version": "3.2.6-beta.3",
|
|
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",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@multiformats/multiaddr": "^13.0.1",
|
|
45
45
|
"@multiformats/multiaddr-to-uri": "^12.0.0",
|
|
46
|
-
"@tinycloud/node-sdk": "3.2.6-beta.
|
|
47
|
-
"@tinycloud/sdk-core": "3.2.6-beta.
|
|
46
|
+
"@tinycloud/node-sdk": "3.2.6-beta.3",
|
|
47
|
+
"@tinycloud/sdk-core": "3.2.6-beta.2",
|
|
48
48
|
"@tinycloud/share-envelope": "1.1.0",
|
|
49
49
|
"@tinycloud/share-sdk": "1.1.1",
|
|
50
50
|
"@tinycloud/web-sdk-wasm": "1.7.6",
|