@scayle/storefront-core 7.52.0 → 7.52.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,11 @@
1
1
  # @scayle/storefront-core
2
2
 
3
+ ## 7.52.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix `getWishlist` falling back to basket `withParams` instead of wishlist `withParams`
8
+
3
9
  ## 7.52.0
4
10
 
5
11
  ### Minor Changes
@@ -24,7 +24,7 @@ const getCheckoutToken = exports.getCheckoutToken = async function getCheckoutTo
24
24
  carrier,
25
25
  basketId: context.basketKey,
26
26
  campaignKey: context.campaignKey
27
- }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.51.1"}`).setProtectedHeader({
27
+ }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.52.0"}`).setProtectedHeader({
28
28
  alg: "HS256",
29
29
  typ: "JWT"
30
30
  }).sign(secret);
@@ -13,7 +13,7 @@ export const getCheckoutToken = async function getCheckoutToken2(jwtPayload, con
13
13
  carrier,
14
14
  basketId: context.basketKey,
15
15
  campaignKey: context.campaignKey
16
- }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.51.1"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
16
+ }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.52.0"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
17
17
  return {
18
18
  accessToken: context.accessToken,
19
19
  checkoutJwt
@@ -8,7 +8,7 @@ var _types = require("../../types/index.cjs");
8
8
  var _constants = require("../../constants/index.cjs");
9
9
  var _response = require("../../utils/response.cjs");
10
10
  function getWithParams(params, context) {
11
- return params.with ?? context.withParams?.basket ?? _constants.MIN_WITH_PARAMS_WISHLIST;
11
+ return params.with ?? context.withParams?.wishlist ?? _constants.MIN_WITH_PARAMS_WISHLIST;
12
12
  }
13
13
  const getWishlist = exports.getWishlist = async function getWishlist2(options, context) {
14
14
  (0, _types.assertSession)(context);
@@ -2,7 +2,7 @@ import { assertSession } from "../../types/index.mjs";
2
2
  import { MIN_WITH_PARAMS_WISHLIST } from "../../constants/index.mjs";
3
3
  import { unwrap } from "../../utils/response.mjs";
4
4
  function getWithParams(params, context) {
5
- return params.with ?? context.withParams?.basket ?? MIN_WITH_PARAMS_WISHLIST;
5
+ return params.with ?? context.withParams?.wishlist ?? MIN_WITH_PARAMS_WISHLIST;
6
6
  }
7
7
  export const getWishlist = async function getWishlist2(options, context) {
8
8
  assertSession(context);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-core",
3
- "version": "7.52.0",
3
+ "version": "7.52.1",
4
4
  "description": "Collection of essential utilities to work with the Storefront API",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -61,7 +61,7 @@
61
61
  "dependencies": {
62
62
  "@scayle/storefront-api": "17.1.0",
63
63
  "crypto-js": "4.2.0",
64
- "jose": "5.3.0",
64
+ "jose": "5.4.0",
65
65
  "radash": "12.1.0",
66
66
  "slugify": "1.6.6",
67
67
  "ufo": "1.5.3",
@@ -71,11 +71,11 @@
71
71
  "devDependencies": {
72
72
  "@scayle/eslint-config-storefront": "4.2.0",
73
73
  "@types/crypto-js": "4.2.2",
74
- "@types/node": "20.12.12",
74
+ "@types/node": "20.14.0",
75
75
  "@types/webpack-env": "1.18.5",
76
76
  "@vitest/coverage-v8": "1.6.0",
77
- "dprint": "0.45.1",
78
- "eslint": "9.3.0",
77
+ "dprint": "0.46.1",
78
+ "eslint": "9.4.0",
79
79
  "eslint-formatter-gitlab": "5.1.0",
80
80
  "publint": "0.2.8",
81
81
  "rimraf": "5.0.7",