@scayle/storefront-core 8.62.4 → 8.62.5
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.62.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **\[User\]** Extended `ShopUserAddress` to match the Customer Account API address response. Added the optional `state` and the optional `createdAt`, `updatedAt` timestamps, and a optional `customer` object carrying the customer `id` and optional `referenceKey`.
|
|
8
|
+
|
|
3
9
|
## 8.62.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -41,7 +41,7 @@ export const getCheckoutToken = defineRpcHandler(
|
|
|
41
41
|
...customData,
|
|
42
42
|
...orderCustomData
|
|
43
43
|
}
|
|
44
|
-
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.62.
|
|
44
|
+
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.62.5"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
|
|
45
45
|
return {
|
|
46
46
|
accessToken: refreshedAccessToken,
|
|
47
47
|
checkoutJwt
|
package/dist/types/user.d.ts
CHANGED
|
@@ -96,6 +96,8 @@ export interface ShopUserAddress {
|
|
|
96
96
|
zipCode: string;
|
|
97
97
|
/** The city. */
|
|
98
98
|
city: string;
|
|
99
|
+
/** The state. */
|
|
100
|
+
state?: string;
|
|
99
101
|
/** The country code. */
|
|
100
102
|
countryCode: string;
|
|
101
103
|
/** Information about the collection point, if applicable. */
|
|
@@ -131,6 +133,15 @@ export interface ShopUserAddress {
|
|
|
131
133
|
/** The recipient's title (e.g., Mr., Mrs.). */
|
|
132
134
|
title?: string;
|
|
133
135
|
};
|
|
136
|
+
/** The date the address was created in the system. */
|
|
137
|
+
createdAt?: string;
|
|
138
|
+
/** The date the address was last updated in the system. */
|
|
139
|
+
updatedAt?: string;
|
|
140
|
+
/** The customer associated with the address. */
|
|
141
|
+
customer?: {
|
|
142
|
+
id: number;
|
|
143
|
+
referenceKey?: string;
|
|
144
|
+
};
|
|
134
145
|
}
|
|
135
146
|
/**
|
|
136
147
|
* Represents a shop user.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-core",
|
|
3
|
-
"version": "8.62.
|
|
3
|
+
"version": "8.62.5",
|
|
4
4
|
"description": "Collection of essential utilities to work with the Storefront API",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@scayle/storefront-api": "^19.2.1",
|
|
45
|
-
"@scayle/unstorage-scayle-kv-driver": "^
|
|
45
|
+
"@scayle/unstorage-scayle-kv-driver": "^3.0.0",
|
|
46
46
|
"crypto-js": "^4.2.0",
|
|
47
47
|
"hookable": "^5.5.3",
|
|
48
48
|
"jose": "^6.0.8",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@scayle/eslint-config-storefront": "^4.8.0",
|
|
56
56
|
"@types/crypto-js": "4.2.2",
|
|
57
|
-
"@types/node": "24
|
|
58
|
-
"@vitest/coverage-v8": "4.1.
|
|
57
|
+
"@types/node": "^24",
|
|
58
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
59
59
|
"eslint-formatter-gitlab": "7.2.0",
|
|
60
|
-
"eslint": "10.
|
|
60
|
+
"eslint": "10.8.0",
|
|
61
61
|
"fishery": "2.4.0",
|
|
62
|
-
"publint": "0.3.
|
|
62
|
+
"publint": "0.3.23",
|
|
63
63
|
"typescript": "6.0.3",
|
|
64
64
|
"unbuild": "3.6.1",
|
|
65
65
|
"unstorage": "1.17.5",
|