@scayle/storefront-nuxt 7.60.1 → 7.61.0
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/CHANGELOG.md +12 -0
- package/dist/module.json +1 -1
- package/dist/runtime/api/rpcHandler.mjs +2 -2
- package/dist/runtime/composables/core/useIDP.d.ts +3 -1
- package/dist/runtime/composables/core/useIDP.mjs +1 -0
- package/dist/runtime/composables/core/useSession.d.ts +5 -0
- package/dist/runtime/composables/core/useSession.mjs +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.61.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Expose the `loginWithIDP` function from the `useSession` composable.
|
|
8
|
+
- Add error logging to RPC handler
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
- @scayle/storefront-core@7.44.0
|
|
14
|
+
|
|
3
15
|
## 7.60.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/module.json
CHANGED
|
@@ -11,7 +11,7 @@ export default defineEventHandler(async (event) => {
|
|
|
11
11
|
try {
|
|
12
12
|
return await handler(method, body?.payload, event.context.$rpcContext);
|
|
13
13
|
} catch (e) {
|
|
14
|
-
|
|
15
|
-
return createError(
|
|
14
|
+
event.context.$rpcContext.log.space("sfc").error(`RPC Handler failed: ${method}`, e);
|
|
15
|
+
return createError(resolveError(e));
|
|
16
16
|
}
|
|
17
17
|
});
|
|
@@ -6,7 +6,9 @@ export declare const useIDP: () => Promise<{
|
|
|
6
6
|
fetch: () => Promise<void>;
|
|
7
7
|
error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
|
|
8
8
|
status: import("vue").Ref<import("../core/useRpc").Status>;
|
|
9
|
-
handleIDPLoginCallback: (params:
|
|
9
|
+
handleIDPLoginCallback: (params: {
|
|
10
|
+
code: string;
|
|
11
|
+
}) => Promise<{
|
|
10
12
|
message: string;
|
|
11
13
|
}>;
|
|
12
14
|
}>;
|
|
@@ -14,4 +14,9 @@ export declare function useSession(): {
|
|
|
14
14
|
success: boolean;
|
|
15
15
|
}>;
|
|
16
16
|
resetPasswordByHash: (params: import("utility-types").Optional<import("@scayle/storefront-core").UpdatePasswordByHashRequest, "shop_id">) => Promise<void | undefined>;
|
|
17
|
+
loginWithIDP: (params: {
|
|
18
|
+
code: string;
|
|
19
|
+
}) => Promise<{
|
|
20
|
+
message: string;
|
|
21
|
+
}>;
|
|
17
22
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.61.0",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@nuxt/kit": "3.10.2",
|
|
64
64
|
"@scayle/h3-session": "0.3.5",
|
|
65
|
-
"@scayle/storefront-core": "7.
|
|
65
|
+
"@scayle/storefront-core": "7.44.0",
|
|
66
66
|
"@scayle/unstorage-compression-driver": "0.1.2",
|
|
67
67
|
"@vueuse/core": "10.9.0",
|
|
68
68
|
"consola": "3.2.3",
|