@bundleup/react 0.0.3 → 0.0.5
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.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,14 +2,14 @@ import { AuthenticateWithPopupOptions } from '@bundleup/core/client';
|
|
|
2
2
|
|
|
3
3
|
declare function useBundleup(options?: AuthenticateWithPopupOptions): {
|
|
4
4
|
connect: (token: string) => Promise<{
|
|
5
|
-
success: boolean;
|
|
6
|
-
data: Record<string, any>;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
5
|
success: boolean;
|
|
10
6
|
error: Error;
|
|
11
7
|
data?: undefined;
|
|
12
|
-
} |
|
|
8
|
+
} | {
|
|
9
|
+
success: boolean;
|
|
10
|
+
data: Record<string, any>;
|
|
11
|
+
error?: undefined;
|
|
12
|
+
}>;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { useBundleup };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { AuthenticateWithPopupOptions } from '@bundleup/core/client';
|
|
|
2
2
|
|
|
3
3
|
declare function useBundleup(options?: AuthenticateWithPopupOptions): {
|
|
4
4
|
connect: (token: string) => Promise<{
|
|
5
|
-
success: boolean;
|
|
6
|
-
data: Record<string, any>;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
5
|
success: boolean;
|
|
10
6
|
error: Error;
|
|
11
7
|
data?: undefined;
|
|
12
|
-
} |
|
|
8
|
+
} | {
|
|
9
|
+
success: boolean;
|
|
10
|
+
data: Record<string, any>;
|
|
11
|
+
error?: undefined;
|
|
12
|
+
}>;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { useBundleup };
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ function useBundleup(options = {}) {
|
|
|
35
35
|
async (token) => {
|
|
36
36
|
if (!token) {
|
|
37
37
|
log("No token provided, skipping BundleUp authentication.");
|
|
38
|
-
return;
|
|
38
|
+
return { success: false, error: new Error("No token provided") };
|
|
39
39
|
}
|
|
40
40
|
try {
|
|
41
41
|
log("Starting BundleUp authentication with token:", token);
|
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ function useBundleup(options = {}) {
|
|
|
13
13
|
async (token) => {
|
|
14
14
|
if (!token) {
|
|
15
15
|
log("No token provided, skipping BundleUp authentication.");
|
|
16
|
-
return;
|
|
16
|
+
return { success: false, error: new Error("No token provided") };
|
|
17
17
|
}
|
|
18
18
|
try {
|
|
19
19
|
log("Starting BundleUp authentication with token:", token);
|