@nuskin/ns-shop 7.3.1-td-1017.2.1 → 7.4.0-td-1000.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.3.1-td-1017.2.1",
3
+ "version": "7.4.0-td-1000.1",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -26,11 +26,11 @@
26
26
  "@nuskin/ns-common-lib": "1.4.7",
27
27
  "@nuskin/ns-feature-flags": "1.4.7",
28
28
  "@nuskin/ns-loyalty-web": "1.5.6",
29
- "@nuskin/ns-product-lib": "2.19.2",
29
+ "@nuskin/ns-product-lib": "2.20.0-td-1000.1",
30
30
  "@nuskin/nuskinjquery": "2.3.1",
31
31
  "@nuskin/order-model": "3.1.3",
32
- "@nuskin/product-lib": "2.2.1",
33
- "axios": "1.7.9",
32
+ "@nuskin/product-lib": "2.4.0-td-1000.1",
33
+ "axios": "1.8.1",
34
34
  "decimal.js": "10.4.3",
35
35
  "jp-conversion": "0.0.7",
36
36
  "lodash": "4.17.21",
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@babel/preset-env": "^7.23.8",
41
- "@nuskin/configuration-sdk": "2.3.3",
41
+ "@nuskin/configuration-sdk": "3.0.0",
42
42
  "@nuskin/exclusive-offer-sdk": "1.2.4",
43
43
  "@nuskin/ns-account": "5.9.2",
44
44
  "@nuskin/ns-jsanalyzer": "1.0.1",
45
- "@nuskin/ns-product": "3.50.8",
45
+ "@nuskin/ns-product": "3.51.0-td-1000.1",
46
46
  "@nuskin/ns-util": "4.6.1",
47
47
  "axios-mock-adapter": "1.22.0",
48
48
  "babel-cli": "6.26.0",
@@ -90,7 +90,7 @@
90
90
  "moment": "2.29.4",
91
91
  "json5": "2.2.3",
92
92
  "ip": "2.0.1",
93
- "axios": "1.7.9",
93
+ "axios": "1.8.1",
94
94
  "merge": "2.1.1",
95
95
  "glob-parent": "6.0.2",
96
96
  "follow-redirects": "1.15.5",
@@ -333,9 +333,14 @@ async function _equinoxRequest(options) {
333
333
  defaultHeaders.Authorization = `Bearer ${idToken}`;
334
334
  }
335
335
 
336
+ let orchestrationURL = `${mySiteKongURL}/orchestrationservices/storefront/${options.endpoint}`;
337
+ if (mySiteKongURL && mySiteKongURL.indexOf('apis') > -1) {
338
+ orchestrationURL = `${mySiteKongURL}/${options.endpoint}`
339
+ }
340
+
336
341
  let axiosRequest = {
337
342
  method: options.method,
338
- url: `${mySiteKongURL}/orchestrationservices/storefront/${options.endpoint}`,
343
+ url: orchestrationURL,
339
344
  headers:{...defaultHeaders, ... options.headers },
340
345
  withCredentials: (options.method !== "DELETE"),
341
346
  params: (options.params) ? options.params : defaultEquinoxParams
@@ -456,8 +461,7 @@ function _assembleAdrProperties(requestData, options) {
456
461
  isBackOrdered: requestData.skus && requestData.skus[requestData.skus.length - 1].backOrdered || false,
457
462
  imageURL: options.product.fullImage || '',
458
463
  name: options.product.title,
459
- productId: options.product.equinoxProductId || '',
460
- productionBom: options.product && options.product.properties && options.product.properties.productionBom || false
464
+ productId: options.product.equinoxProductId || ''
461
465
  };
462
466
  }
463
467