@scayle/storefront-core 7.64.0 → 7.64.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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @scayle/storefront-core
2
2
 
3
+ ## 7.64.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Add more specific return type for `getFlattenedMaterialComposition`
8
+
9
+ ## 7.64.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+ - @scayle/storefront-api@17.5.0
15
+
3
16
  ## 7.64.0
4
17
 
5
18
  ### Minor Changes
@@ -2,10 +2,18 @@ import type { FieldSet, GroupSet } from '../types';
2
2
  export declare const flattenFieldSet: (fieldSet: FieldSet) => {
3
3
  [key: string]: string | number | null | undefined;
4
4
  }[][];
5
+ interface FlattenedMaterialComposition {
6
+ materialGroupName?: string;
7
+ values: {
8
+ value: string | number;
9
+ unit: string;
10
+ material: string;
11
+ }[];
12
+ }
5
13
  export declare const getFlattenedMaterialComposition: (materialCompositions: Array<{
6
14
  fieldSet: FieldSet;
7
15
  groupSet: GroupSet;
8
- }>) => object[];
16
+ }>) => FlattenedMaterialComposition[];
9
17
  export declare const getFlattenedAdvancedAttribute: <T>(attributeGroup: Array<{
10
18
  fieldSet: FieldSet;
11
19
  groupSet: GroupSet;
@@ -14,3 +22,4 @@ export declare const getFlattenedVariantCrosssellings: <T>(variantCrosssellings:
14
22
  fieldSet: FieldSet;
15
23
  groupSet: GroupSet;
16
24
  }>) => T[];
25
+ export {};
@@ -33,7 +33,7 @@ const getCheckoutToken = exports.getCheckoutToken = async function getCheckoutTo
33
33
  carrier,
34
34
  basketId: context.basketKey,
35
35
  campaignKey: context.campaignKey
36
- }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.64.0"}`).setProtectedHeader({
36
+ }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.64.2"}`).setProtectedHeader({
37
37
  alg: "HS256",
38
38
  typ: "JWT"
39
39
  }).sign(secret);
@@ -27,7 +27,7 @@ export const getCheckoutToken = async function getCheckoutToken2(jwtPayload = {}
27
27
  carrier,
28
28
  basketId: context.basketKey,
29
29
  campaignKey: context.campaignKey
30
- }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.64.0"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
30
+ }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.64.2"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
31
31
  return {
32
32
  accessToken: refreshedAccessToken,
33
33
  checkoutJwt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-core",
3
- "version": "7.64.0",
3
+ "version": "7.64.2",
4
4
  "description": "Collection of essential utilities to work with the Storefront API",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "test:ci": "vitest --run --passWithNoTests --coverage --reporter=default --reporter=junit"
60
60
  },
61
61
  "dependencies": {
62
- "@scayle/storefront-api": "17.4.4",
62
+ "@scayle/storefront-api": "17.5.0",
63
63
  "crypto-js": "^4.2.0",
64
64
  "hookable": "^5.5.3",
65
65
  "jose": "^5.6.3",
@@ -72,13 +72,13 @@
72
72
  "devDependencies": {
73
73
  "@scayle/eslint-config-storefront": "4.3.0",
74
74
  "@types/crypto-js": "4.2.2",
75
- "@types/node": "20.14.14",
75
+ "@types/node": "20.14.15",
76
76
  "@types/webpack-env": "1.18.5",
77
77
  "@vitest/coverage-v8": "2.0.5",
78
78
  "dprint": "0.47.2",
79
- "eslint": "9.8.0",
79
+ "eslint": "9.9.0",
80
80
  "eslint-formatter-gitlab": "5.1.0",
81
- "publint": "0.2.9",
81
+ "publint": "0.2.10",
82
82
  "rimraf": "6.0.1",
83
83
  "ts-node": "10.9.2",
84
84
  "typescript": "5.5.4",