@scayle/storefront-core 8.39.0 → 8.39.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
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @scayle/storefront-core
|
|
2
2
|
|
|
3
|
+
## 8.39.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added `'token'` and `'code'` to the list of default `blacklistedKeys`. This will more proactively redact server logs to prevent leaked data.
|
|
8
|
+
|
|
9
|
+
**Dependencies**
|
|
10
|
+
|
|
11
|
+
- Updated dependency to @scayle/storefront-api@18.12.0
|
|
12
|
+
- Updated dependency to @scayle/unstorage-scayle-kv-driver@1.0.3
|
|
13
|
+
|
|
3
14
|
## 8.39.0
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -4,7 +4,7 @@ export const stripShopLocaleFromPath = (locale, path, splitter = "/") => path.sp
|
|
|
4
4
|
export const purifySensitiveValue = (value, showFirstAndLastChar = false) => {
|
|
5
5
|
return showFirstAndLastChar && value.length > 2 ? value.replace(regex, "*") : SANITIZATION_MASK;
|
|
6
6
|
};
|
|
7
|
-
export const purifySensitiveData = (data = {}, blacklistedKeys = ["password"], showFirstAndLastChar = false) => {
|
|
7
|
+
export const purifySensitiveData = (data = {}, blacklistedKeys = ["password", "token", "code"], showFirstAndLastChar = false) => {
|
|
8
8
|
return Object.entries(data).reduce(
|
|
9
9
|
(purifiedPayload, [key, value]) => {
|
|
10
10
|
if (!!value && value.constructor === Object) {
|
|
@@ -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.39.
|
|
36
|
+
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.39.1"}`).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.39.
|
|
3
|
+
"version": "8.39.1",
|
|
4
4
|
"description": "Collection of essential utilities to work with the Storefront API",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -70,14 +70,15 @@
|
|
|
70
70
|
"fishery": "2.3.1",
|
|
71
71
|
"publint": "0.3.12",
|
|
72
72
|
"rimraf": "6.0.1",
|
|
73
|
-
"typescript": "5.
|
|
73
|
+
"typescript": "5.9.2",
|
|
74
74
|
"unbuild": "3.6.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.3",
|
|
78
|
+
"@scayle/vitest-config-storefront": "1.0.0"
|
|
78
79
|
},
|
|
79
80
|
"volta": {
|
|
80
|
-
"node": "22.
|
|
81
|
+
"node": "22.18.0"
|
|
81
82
|
},
|
|
82
83
|
"scripts": {
|
|
83
84
|
"clean": "rimraf ./dist",
|