@shopkit/data-layer 1.6.0 → 1.7.0
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 +31 -0
- package/dist/adapters/index.js +1 -1
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/index.mjs +1 -1
- package/dist/adapters/index.mjs.map +1 -1
- package/dist/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +27 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -2
- package/dist/index.mjs.map +1 -1
- package/dist/models/index.d.mts +4 -4
- package/dist/models/index.d.ts +4 -4
- package/dist/static-params/index.js +7 -0
- package/dist/static-params/index.js.map +1 -1
- package/dist/static-params/index.mjs +7 -0
- package/dist/static-params/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/adapters/index.mjs
CHANGED
|
@@ -160,7 +160,7 @@ function createDomainLogger(domain, adapter, config = {}) {
|
|
|
160
160
|
function isUpstreamUnavailable(error) {
|
|
161
161
|
const status = error?.status;
|
|
162
162
|
if (typeof status !== "number") return true;
|
|
163
|
-
return status >= 500;
|
|
163
|
+
return status >= 500 || status === 429;
|
|
164
164
|
}
|
|
165
165
|
function formatResponse(params) {
|
|
166
166
|
const { success, message, data = null, error = null, meta = {} } = params;
|