@scayle/storefront-core 8.28.6 → 8.28.7
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,11 @@
|
|
|
1
1
|
# @scayle/storefront-core
|
|
2
2
|
|
|
3
|
+
## 8.28.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed the return type of `flattenFieldSet` to reflect the flattened field set.
|
|
8
|
+
|
|
3
9
|
## 8.28.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -137,7 +143,7 @@ No changes in this release.
|
|
|
137
143
|
- Deprecated attribute group specific utilities `getFlattenedVariantCrosssellings` and
|
|
138
144
|
`getFlattenedMaterialComposition`.
|
|
139
145
|
|
|
140
|
-
These functions should be a part of the Storefront
|
|
146
|
+
These functions should be a part of the Storefront Application.
|
|
141
147
|
|
|
142
148
|
## 8.22.0
|
|
143
149
|
|
|
@@ -6,7 +6,7 @@ import type { FieldSet, GroupSet } from '../types';
|
|
|
6
6
|
*
|
|
7
7
|
* @returns An array of flattened objects.
|
|
8
8
|
*/
|
|
9
|
-
export declare const flattenFieldSet: (fieldSet: FieldSet) => FieldSet;
|
|
9
|
+
export declare const flattenFieldSet: (fieldSet: FieldSet) => FieldSet[number];
|
|
10
10
|
interface FlattenedMaterialComposition {
|
|
11
11
|
materialGroupName?: string;
|
|
12
12
|
values: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { flattenDeep } from "./arrayHelpers.mjs";
|
|
2
|
-
import { flattenObject } from "./objectHelpers.mjs";
|
|
3
2
|
export const flattenFieldSet = (fieldSet) => {
|
|
4
|
-
return fieldSet.map(
|
|
3
|
+
return fieldSet.map((list) => {
|
|
4
|
+
return Object.assign({}, ...list);
|
|
5
|
+
});
|
|
5
6
|
};
|
|
6
7
|
export const getFlattenedMaterialComposition = (materialCompositions) => {
|
|
7
8
|
return materialCompositions.map((materialComposition) => ({
|
|
@@ -36,7 +36,7 @@ export const getCheckoutToken = async function getCheckoutToken2(jwtPayload = {}
|
|
|
36
36
|
carrier,
|
|
37
37
|
basketId: context.basketKey,
|
|
38
38
|
campaignKey
|
|
39
|
-
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.28.
|
|
39
|
+
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.28.7"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
|
|
40
40
|
return {
|
|
41
41
|
accessToken: refreshedAccessToken,
|
|
42
42
|
checkoutJwt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-core",
|
|
3
|
-
"version": "8.28.
|
|
3
|
+
"version": "8.28.7",
|
|
4
4
|
"description": "Collection of essential utilities to work with the Storefront API",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"utility-types": "^3.11.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@scayle/eslint-config-storefront": "4.5.
|
|
78
|
+
"@scayle/eslint-config-storefront": "4.5.5",
|
|
79
79
|
"@types/crypto-js": "4.2.2",
|
|
80
|
-
"@types/node": "22.15.
|
|
80
|
+
"@types/node": "22.15.31",
|
|
81
81
|
"@types/webpack-env": "1.18.8",
|
|
82
|
-
"@vitest/coverage-v8": "3.2.
|
|
82
|
+
"@vitest/coverage-v8": "3.2.3",
|
|
83
83
|
"dprint": "0.50.0",
|
|
84
|
-
"eslint-formatter-gitlab": "6.0.
|
|
84
|
+
"eslint-formatter-gitlab": "6.0.1",
|
|
85
85
|
"eslint": "9.28.0",
|
|
86
86
|
"fishery": "2.3.1",
|
|
87
87
|
"publint": "0.2.12",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"typescript": "5.8.3",
|
|
90
90
|
"unbuild": "3.5.0",
|
|
91
91
|
"unstorage": "1.16.0",
|
|
92
|
-
"vitest": "3.2.
|
|
92
|
+
"vitest": "3.2.3"
|
|
93
93
|
},
|
|
94
94
|
"volta": {
|
|
95
95
|
"node": "22.16.0"
|