@junobuild/core 0.0.18 → 0.0.20

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.
@@ -16,6 +16,6 @@ export declare const deleteAsset: ({ collection, storageFile, satellite }: {
16
16
  satellite: Satellite;
17
17
  }) => Promise<void>;
18
18
  export declare const deleteAssets: ({ collection, satellite }: {
19
- collection?: string | undefined;
19
+ collection: string;
20
20
  satellite: Satellite;
21
21
  }) => Promise<void>;
@@ -2,7 +2,7 @@ import type { User } from './types/auth.types';
2
2
  import type { Environment } from './types/env.types';
3
3
  import type { Unsubscribe } from './types/subscription.types';
4
4
  export * from './providers/auth.providers';
5
- export { signIn, signOut } from './services/auth.services';
5
+ export { signIn, signOut, unsafeIdentity } from './services/auth.services';
6
6
  export * from './services/doc.services';
7
7
  export * from './services/storage.services';
8
8
  export * from './types/auth.types';
@@ -4,3 +4,8 @@ export declare const initAuth: (provider?: Provider) => Promise<void>;
4
4
  export declare const signIn: (options?: SignInOptions) => Promise<void>;
5
5
  export declare const signOut: () => Promise<void>;
6
6
  export declare const getIdentity: () => Identity | undefined;
7
+ /**
8
+ * Return what can be the identity of a sign-in user or an anonymous identity.
9
+ * Useful to load an identity in web workers.
10
+ */
11
+ export declare const unsafeIdentity: () => Promise<Identity>;
@@ -20,6 +20,6 @@ export declare const deleteAsset: ({ storageFile, collection, satellite }: {
20
20
  satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
21
21
  }) => Promise<void>;
22
22
  export declare const deleteAssets: ({ collection, satellite }: {
23
- collection?: string | undefined;
23
+ collection: string;
24
24
  satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
25
25
  }) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/core",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "JavaScript core client for Juno",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -39,9 +39,9 @@
39
39
  ],
40
40
  "homepage": "https://juno.build",
41
41
  "dependencies": {
42
- "@dfinity/agent": "^0.15.4",
43
- "@dfinity/auth-client": "^0.15.4",
44
- "@dfinity/identity": "^0.15.4",
45
- "@dfinity/principal": "^0.15.4"
42
+ "@dfinity/agent": "^0.15.6",
43
+ "@dfinity/auth-client": "^0.15.6",
44
+ "@dfinity/identity": "^0.15.6",
45
+ "@dfinity/principal": "^0.15.6"
46
46
  }
47
47
  }
@@ -1,2 +0,0 @@
1
- import{v as a,w as b}from"./chunk-U4E5MZWA.js";export{b as encodePath,a as request};
2
- //# sourceMappingURL=canisterStatus-PLJHSEG5.js.map