@scayle/storefront-core 8.38.1 → 8.38.3
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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @scayle/storefront-core
|
|
2
2
|
|
|
3
|
+
## 8.38.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Refactored internals of `getOrderDataByCbd`. This change has no noticable impact.
|
|
8
|
+
|
|
9
|
+
## 8.38.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
**Dependencies**
|
|
14
|
+
|
|
15
|
+
- Updated dependency to @scayle/storefront-api@18.12.0
|
|
16
|
+
- Updated dependency to @scayle/unstorage-scayle-kv-driver@1.0.3
|
|
17
|
+
|
|
3
18
|
## 8.38.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/rpc/methods/cbd.mjs
CHANGED
|
@@ -35,7 +35,8 @@ export const getOrderDataByCbd = defineRpcHandler(async ({ cbdToken }, context)
|
|
|
35
35
|
headers: {
|
|
36
36
|
Accept: "application/json",
|
|
37
37
|
Authorization: `Basic ${basicAuth}`,
|
|
38
|
-
"X-Shop-Id": context.shopId.toString()
|
|
38
|
+
"X-Shop-Id": context.shopId.toString(),
|
|
39
|
+
...context.internalAccessHeader ? { "x-internal-access": context.internalAccessHeader } : {}
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
);
|
|
@@ -33,7 +33,7 @@ export const getCheckoutToken = defineRpcHandler(async (jwtPayload = {}, context
|
|
|
33
33
|
carrier,
|
|
34
34
|
basketId: context.basketKey,
|
|
35
35
|
campaignKey
|
|
36
|
-
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.38.
|
|
36
|
+
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.38.3"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
|
|
37
37
|
return {
|
|
38
38
|
accessToken: refreshedAccessToken,
|
|
39
39
|
checkoutJwt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-core",
|
|
3
|
-
"version": "8.38.
|
|
3
|
+
"version": "8.38.3",
|
|
4
4
|
"description": "Collection of essential utilities to work with the Storefront API",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@vitest/coverage-v8": "3.2.4",
|
|
67
67
|
"dprint": "0.50.1",
|
|
68
68
|
"eslint-formatter-gitlab": "6.0.1",
|
|
69
|
-
"eslint": "9.
|
|
69
|
+
"eslint": "9.32.0",
|
|
70
70
|
"fishery": "2.3.1",
|
|
71
71
|
"publint": "0.3.12",
|
|
72
72
|
"rimraf": "6.0.1",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"unbuild": "3.5.0",
|
|
75
75
|
"unstorage": "1.16.1",
|
|
76
76
|
"vitest": "3.2.4",
|
|
77
|
-
"@scayle/eslint-config-storefront": "4.7.
|
|
77
|
+
"@scayle/eslint-config-storefront": "4.7.2"
|
|
78
78
|
},
|
|
79
79
|
"volta": {
|
|
80
80
|
"node": "22.17.1"
|