@nuskin/ns-shop 7.0.11-pur-813.3 → 7.0.11-pur-813.4

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.0.11-pur-813.3",
3
+ "version": "7.0.11-pur-813.4",
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": {
@@ -34,7 +34,7 @@ export default {
34
34
  hasItems,
35
35
  hasEventItems,
36
36
  hasPreviewItems,
37
- hasDanerousGoods,
37
+ hasDangerousGoods,
38
38
  getItemCnt,
39
39
  addProductToCart,
40
40
  addSkuToCart,
@@ -299,7 +299,7 @@ function hasPreviewItems() {
299
299
  return _getCart().hasPreviewItems();
300
300
  }
301
301
 
302
- function hasDanerousGoods(options = {cartOrderItems: true}) {
302
+ function hasDangerousGoods(options = {cartOrderItems: true}) {
303
303
  let retVal = false;
304
304
  _getCart().getItems(options).forEach((item) => {
305
305
  retVal = retVal || item.product.dangerousGoods;
@@ -79,7 +79,7 @@ let PickupUtil = function() {
79
79
  distance: distances && distances[i] ? distances[i].Value : undefined,
80
80
  locker: lockers && lockers[i] ? lockers[i].Value : undefined,
81
81
  unit: units && units[i] ? units[i].Value : undefined,
82
- openingHours: openHours && openHours[i] ? openHours[i].Value.split(/\s*;\s*/) : undefined,
82
+ openingHours: openHours && openHours[i] ? openHours[i].Value : undefined,
83
83
  latitude: latitudes && latitudes[i] ? parseFloat(latitudes[i].Value) : undefined,
84
84
  longitude: longitudes && longitudes[i] ? parseFloat(longitudes[i].Value) : undefined,
85
85
  carrierCode: carrierCodes && carrierCodes[i] ? carrierCodes[i].Value : undefined
@@ -163,9 +163,9 @@ let PickupUtil = function() {
163
163
  case 'stage':
164
164
  return 'https://ship-methods.api.dev.nuskin.com/v1';
165
165
  case 'prod':
166
- return 'https://ship-methods.api.dev.nuskin.com/v1';
166
+ return 'https://ship-methods.api.nuskin.com/v1';
167
167
  default:
168
- return 'https://ship-methods.api.dev.nuskin.com/v1';
168
+ return 'https://ship-methods.api.test.nuskin.com/v1';
169
169
  }
170
170
  }
171
171