@scayle/storefront-nuxt 7.55.0 → 7.55.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.
- package/CHANGELOG.md +18 -0
- package/dist/module.json +1 -1
- package/dist/runtime/api/cacheAuth.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.55.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @scayle/storefront-core@7.39.1
|
|
9
|
+
|
|
10
|
+
## 7.55.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Skip basic auth when `auth.username` or `auth.password` is nullish
|
|
15
|
+
|
|
3
16
|
## 7.55.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -105,6 +118,11 @@
|
|
|
105
118
|
### Minor Changes
|
|
106
119
|
|
|
107
120
|
- Support `Response` returns in RPC methods
|
|
121
|
+
|
|
122
|
+
BREAKING: As part of this change, the return type of `ParamRpcHandler` and `NoParamRpcHandler` has been changed to also allow `Response`. This should have no impact on calling RPCs because the return will automatically be normalized. However, if you also importing the functions explicitly typed as `ParamRpcHandler` or `NoParamRpcHandler` and calling them directly, you may have to updated your code to handle the more expansive return type.
|
|
123
|
+
|
|
124
|
+
There is an `unwrap` function exported by this package (>=7.55.0) that can be used to normalize the type.
|
|
125
|
+
|
|
108
126
|
- Handle 401 from CO and delete session
|
|
109
127
|
|
|
110
128
|
### Patch Changes
|
package/dist/module.json
CHANGED
|
@@ -9,7 +9,7 @@ import { useRuntimeConfig } from "#imports";
|
|
|
9
9
|
export const eventHandlerWithCacheAuth = (handler) => defineEventHandler(async (event) => {
|
|
10
10
|
const config = useRuntimeConfig();
|
|
11
11
|
const auth = config.storefront.cache?.auth;
|
|
12
|
-
if (!auth) {
|
|
12
|
+
if (!auth || !auth.username || !auth.password) {
|
|
13
13
|
return await handler(event);
|
|
14
14
|
}
|
|
15
15
|
return await eventHandlerWithBasicAuth(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.55.
|
|
4
|
+
"version": "7.55.2",
|
|
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.9.3",
|
|
64
64
|
"@scayle/h3-session": "0.3.5",
|
|
65
|
-
"@scayle/storefront-core": "7.39.
|
|
65
|
+
"@scayle/storefront-core": "7.39.1",
|
|
66
66
|
"@scayle/unstorage-compression-driver": "0.1.1",
|
|
67
67
|
"@vueuse/core": "10.7.2",
|
|
68
68
|
"consola": "3.2.3",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@nuxt/test-utils": "3.11.0",
|
|
86
86
|
"@scayle/eslint-config-storefront": "3.2.6",
|
|
87
87
|
"@scayle/prettier-config-storefront": "2.0.2",
|
|
88
|
-
"@types/node": "20.11.
|
|
88
|
+
"@types/node": "20.11.17",
|
|
89
89
|
"eslint": "8.56.0",
|
|
90
90
|
"eslint-formatter-gitlab": "5.1.0",
|
|
91
91
|
"node-mocks-http": "1.14.1",
|