@scayle/storefront-nuxt 7.54.0 → 7.55.1
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 +17 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/api/cacheAuth.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.55.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Skip basic auth when `auth.username` or `auth.password` is nullish
|
|
8
|
+
|
|
9
|
+
## 7.55.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Export `unwrap()` from `@scayle/storefront-core`
|
|
14
|
+
|
|
3
15
|
## 7.54.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -99,6 +111,11 @@
|
|
|
99
111
|
### Minor Changes
|
|
100
112
|
|
|
101
113
|
- Support `Response` returns in RPC methods
|
|
114
|
+
|
|
115
|
+
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.
|
|
116
|
+
|
|
117
|
+
There is an `unwrap` function exported by this package (>=7.55.0) that can be used to normalize the type.
|
|
118
|
+
|
|
102
119
|
- Handle 401 from CO and delete session
|
|
103
120
|
|
|
104
121
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B a
|
|
|
2
2
|
export { rpcCall } from './rpc.mjs';
|
|
3
3
|
export * from '@scayle/storefront-core';
|
|
4
4
|
export { LogLevel } from '@scayle/storefront-core';
|
|
5
|
+
export { unwrap } from '@scayle/storefront-core/dist/utils/response';
|
|
5
6
|
import '@scayle/unstorage-compression-driver';
|
|
6
7
|
import 'unstorage';
|
|
7
8
|
import 'nuxt/app';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B a
|
|
|
2
2
|
export { rpcCall } from './rpc.js';
|
|
3
3
|
export * from '@scayle/storefront-core';
|
|
4
4
|
export { LogLevel } from '@scayle/storefront-core';
|
|
5
|
+
export { unwrap } from '@scayle/storefront-core/dist/utils/response';
|
|
5
6
|
import '@scayle/unstorage-compression-driver';
|
|
6
7
|
import 'unstorage';
|
|
7
8
|
import 'nuxt/app';
|
package/dist/index.mjs
CHANGED
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.
|
|
4
|
+
"version": "7.55.1",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -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.16",
|
|
89
89
|
"eslint": "8.56.0",
|
|
90
90
|
"eslint-formatter-gitlab": "5.1.0",
|
|
91
91
|
"node-mocks-http": "1.14.1",
|