@junobuild/core-peer 0.1.1 → 0.1.2

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.
@@ -10,6 +10,7 @@ export * from './services/storage.services';
10
10
  export type * from './types/auth.types';
11
11
  export type * from './types/doc.types';
12
12
  export type * from './types/env.types';
13
+ export * from './types/errors.types';
13
14
  export { ListOrder, ListPaginate, ListParams, ListResults } from './types/list.types';
14
15
  export type * from './types/satellite.types';
15
16
  export type * from './types/storage.types';
@@ -3,9 +3,10 @@ import type { Provider, SignInOptions } from '../types/auth.types';
3
3
  export declare const initAuth: (provider?: Provider) => Promise<void>;
4
4
  /**
5
5
  * Signs in a user with the specified options.
6
+ *
6
7
  * @param {SignInOptions} [options] - The options for signing in.
7
8
  * @returns {Promise<void>} A promise that resolves when the sign-in process is complete and the authenticated user is initialized.
8
- * @throws Will throw an error if the sign-in process fails.
9
+ * @throws {SignInError} If the sign-in process fails or no authentication client is available.
9
10
  */
10
11
  export declare const signIn: (options?: SignInOptions) => Promise<void>;
11
12
  /**
@@ -0,0 +1,6 @@
1
+ export declare class SignInError extends Error {
2
+ }
3
+ export declare class InitError extends Error {
4
+ }
5
+ export declare class ListError extends Error {
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/core-peer",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "JavaScript core client for Juno minus DFINITY agent-js dependencies",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",