@nuskin/ns-shop 7.5.1 → 7.5.3
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
|
@@ -18,9 +18,9 @@ const ZZIP_URLS = {
|
|
|
18
18
|
prod: 'https://apis.nuskin.com/zzip/v2/:country/:code'
|
|
19
19
|
};
|
|
20
20
|
const STREET_ADDRESS_VALIDATOR_URLS = {
|
|
21
|
-
dev: 'https://apis.dev.nuskin.com/street-address/v1/',
|
|
22
|
-
test: 'https://apis.test.nuskin.com/street-address/v1/',
|
|
23
|
-
prod: 'https://apis.nuskin.com/street-address/v1/'
|
|
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/'
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const zzipCache = {}
|
|
@@ -178,8 +178,7 @@ async function getListOfCitiesFromPostalCode (country, zip) {
|
|
|
178
178
|
|
|
179
179
|
zzipCache[cacheKey] = fetch(url, {
|
|
180
180
|
method: 'GET',
|
|
181
|
-
credentials: 'omit'
|
|
182
|
-
headers: ServiceUtils.getHeaders()
|
|
181
|
+
credentials: 'omit'
|
|
183
182
|
})
|
|
184
183
|
.then(ServiceUtils.transformFetchResponse)
|
|
185
184
|
.then(result => zzipCache[cacheKey] = result.zzipRecords);
|