@nuskin/react-search-sdk 1.0.0-trying-again.2 → 1.0.0-trying-again.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/README.md +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ comes from [`@nuskin/react-search-components`](../react-search-components) and t
|
|
|
14
14
|
- Node.js `>=22.0.0 <25.0.0`
|
|
15
15
|
- Peer dependencies: `react` and `react-dom` `^18.2.0`, `@mui/material`, `@emotion/react`,
|
|
16
16
|
`@emotion/styled`, `@nuskin/foundation-theme`, `@nuskin/foundation-ui-components` `4.x`, and
|
|
17
|
-
`@nuskin/configuration-sdk`
|
|
17
|
+
`@nuskin/configuration-sdk` `^3.1.0` (it reads the market configuration and tells the package
|
|
18
18
|
which environment it is in).
|
|
19
19
|
|
|
20
20
|
## Usage
|
package/dist/index.js
CHANGED
|
@@ -354,6 +354,13 @@ function createSearchService(options = {}) {
|
|
|
354
354
|
locationLike,
|
|
355
355
|
country: localeParts.country,
|
|
356
356
|
getMarketConfig
|
|
357
|
+
}).catch((error) => {
|
|
358
|
+
catalogRequestConfigPromise = null;
|
|
359
|
+
console.warn(
|
|
360
|
+
"[search] Could not load the market configuration for the suggestions:",
|
|
361
|
+
error
|
|
362
|
+
);
|
|
363
|
+
throw error;
|
|
357
364
|
});
|
|
358
365
|
}
|
|
359
366
|
return catalogRequestConfigPromise;
|