@nuskin/ns-shop 7.5.0-td-1000.3 → 7.5.1-cx15-11999.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.5.0-td-1000.3",
3
+ "version": "7.5.1-cx15-11999.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": {
@@ -23,14 +23,14 @@
23
23
  "license": "ISC",
24
24
  "homepage": "https://code.tls.nuskin.io/ns-am/nu-skin-aem/wm/ns-shop/blob/master/README.md",
25
25
  "dependencies": {
26
- "@nuskin/ns-common-lib": "1.4.7",
27
- "@nuskin/ns-feature-flags": "1.4.7",
28
- "@nuskin/ns-loyalty-web": "1.5.6",
29
- "@nuskin/ns-product-lib": "2.20.0-td-1000.2",
26
+ "@nuskin/ns-common-lib": "1.4.8",
27
+ "@nuskin/ns-feature-flags": "1.5.0",
28
+ "@nuskin/ns-loyalty-web": "1.5.7",
29
+ "@nuskin/ns-product-lib": "2.20.0",
30
30
  "@nuskin/nuskinjquery": "2.3.1",
31
31
  "@nuskin/order-model": "3.1.3",
32
- "@nuskin/product-lib": "2.4.0-td-1000.2",
33
- "axios": "1.8.1",
32
+ "@nuskin/product-lib": "2.4.0",
33
+ "axios": "1.8.3",
34
34
  "decimal.js": "10.4.3",
35
35
  "jp-conversion": "0.0.7",
36
36
  "lodash": "4.17.21",
@@ -39,10 +39,10 @@
39
39
  "devDependencies": {
40
40
  "@babel/preset-env": "^7.23.8",
41
41
  "@nuskin/configuration-sdk": "3.0.0",
42
- "@nuskin/exclusive-offer-sdk": "1.2.4",
43
- "@nuskin/ns-account": "5.12.0-td-1000.1",
42
+ "@nuskin/exclusive-offer-sdk": "1.4.1",
43
+ "@nuskin/ns-account": "5.13.0",
44
44
  "@nuskin/ns-jsanalyzer": "1.0.1",
45
- "@nuskin/ns-product": "3.51.0-td-1000.2",
45
+ "@nuskin/ns-product": "3.51.0",
46
46
  "@nuskin/ns-util": "4.7.2",
47
47
  "axios-mock-adapter": "1.22.0",
48
48
  "babel-cli": "6.26.0",
@@ -77,7 +77,7 @@
77
77
  "watch": "1.0.2"
78
78
  },
79
79
  "peerDependencies": {
80
- "@nuskin/configuration-sdk": "2.x",
80
+ "@nuskin/configuration-sdk": "3.x",
81
81
  "@nuskin/exclusive-offer-sdk": "1.x",
82
82
  "@nuskin/my-site-api": "3.x",
83
83
  "@nuskin/ns-account": "5.x",
@@ -87,10 +87,10 @@
87
87
  },
88
88
  "resolutions": {
89
89
  "lodash": "4.17.21",
90
- "moment": "2.29.4",
90
+ "moment": "2.30.1",
91
91
  "json5": "2.2.3",
92
92
  "ip": "2.0.1",
93
- "axios": "1.8.1",
93
+ "axios": "1.8.3",
94
94
  "merge": "2.1.1",
95
95
  "glob-parent": "6.0.2",
96
96
  "follow-redirects": "1.15.5",
@@ -13,9 +13,14 @@ let eid = '';
13
13
  let id = '';
14
14
 
15
15
  const ZZIP_URLS = {
16
- dev: 'https://zzip.api.dev.nuskin.com/v2/:country/:code',
17
- test: 'https://zzip.api.test.nuskin.com/v2/:country/:code',
18
- prod: 'https://zzip.api.nuskin.com/v2/:country/:code'
16
+ dev: 'https://apis.dev.nuskin.com/zzip/v2/:country/:code',
17
+ test: 'https://apis.test.nuskin.com/zzip/v2/:country/:code',
18
+ prod: 'https://apis.nuskin.com/zzip/v2/:country/:code'
19
+ };
20
+ const STREET_ADDRESS_VALIDATOR_URLS = {
21
+ dev: 'https://apis.dev.nuskin.com/street-address/validate/v1/',
22
+ test: 'https://apis.test.nuskin.com/street-address/validate/v1/',
23
+ prod: 'https://apis.nuskin.com/street-address/validate/v1/'
19
24
  };
20
25
 
21
26
  const zzipCache = {}
@@ -173,8 +178,7 @@ async function getListOfCitiesFromPostalCode (country, zip) {
173
178
 
174
179
  zzipCache[cacheKey] = fetch(url, {
175
180
  method: 'GET',
176
- credentials: 'omit',
177
- headers: ServiceUtils.getHeaders()
181
+ credentials: 'omit'
178
182
  })
179
183
  .then(ServiceUtils.transformFetchResponse)
180
184
  .then(result => zzipCache[cacheKey] = result.zzipRecords);
@@ -230,8 +234,8 @@ function getHeaders(eid) {
230
234
  */
231
235
  async function useAddressValidationService(address) {
232
236
  const country = RunConfigService.getRunConfig().country;
233
- const awsUrl = UrlService.getAwsUrl();
234
- const url = `${awsUrl}/street-address-validator/v1/${country}`;
237
+ const env = RunConfigService.getEnvironmentCode();
238
+ const url = STREET_ADDRESS_VALIDATOR_URLS[env] + country;
235
239
  let response = await fetch(url, {
236
240
  method: 'POST',
237
241
  headers: getHeaders(),