@scayle/storefront-core 8.20.0 → 8.20.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,15 @@
1
1
  # @scayle/storefront-core
2
2
 
3
+ ## 8.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Re-exported `BasketKey` and `ApplicablePromotion` from `@scayle/storefront-api`
8
+
9
+ **Dependencies**
10
+
11
+ - Updated dependency to @scayle/storefront-api@18.3.0
12
+
3
13
  ## 8.20.0
4
14
 
5
15
  ### Minor Changes
@@ -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.20.0"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
39
+ }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.20.1"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
40
40
  return {
41
41
  accessToken: refreshedAccessToken,
42
42
  checkoutJwt
@@ -1,4 +1,4 @@
1
- import type { BasketItemDisplayData, BasketItemDisplayDataKey, BasketResponse, BasketResponseData, BasketWith, BasketItemDisplayDataItem, CreateBasketItemParameters, ItemGroup } from '@scayle/storefront-api';
1
+ import type { BasketKey, ApplicablePromotion, BasketItemDisplayData, BasketItemDisplayDataItem, BasketItemDisplayDataKey, BasketResponse, BasketResponseData, BasketWith, CreateBasketItemParameters, ItemGroup } from '@scayle/storefront-api';
2
2
  /**
3
3
  * Represents custom data for a basket item. Corresponds to the `customData` property
4
4
  * of `CreateBasketItemParameters`.
@@ -45,4 +45,4 @@ export interface UseBasketParams {
45
45
  /** Data to include with the basket. */
46
46
  with: BasketWithOptions;
47
47
  }
48
- export type { BasketItemDisplayData, BasketItemDisplayDataItem, BasketResponseData, BasketWith, BasketResponse, ItemGroup, };
48
+ export type { BasketKey, ApplicablePromotion, BasketItemDisplayData, BasketItemDisplayDataItem, BasketResponseData, BasketWith, BasketResponse, ItemGroup, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-core",
3
- "version": "8.20.0",
3
+ "version": "8.20.1",
4
4
  "description": "Collection of essential utilities to work with the Storefront API",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -52,7 +52,8 @@
52
52
  "typecheck": "tsc --noEmit -p tsconfig.json",
53
53
  "format": "dprint check",
54
54
  "format:fix": "dprint fmt",
55
- "lint": "eslint . --format gitlab",
55
+ "lint": "eslint .",
56
+ "lint:ci": "eslint . --format gitlab",
56
57
  "lint:fix": "eslint . --fix",
57
58
  "package:lint": "publint",
58
59
  "test:watch": "vitest --passWithNoTests",
@@ -63,7 +64,7 @@
63
64
  "fishery": "^2.2.3"
64
65
  },
65
66
  "dependencies": {
66
- "@scayle/storefront-api": "18.2.2",
67
+ "@scayle/storefront-api": "18.3.0",
67
68
  "@scayle/unstorage-scayle-kv-driver": "0.1.1",
68
69
  "crypto-js": "^4.2.0",
69
70
  "hookable": "^5.5.3",