@commercelayer/sdk 2.2.5 → 2.2.6-beta.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/lib/index.d.ts +0 -1
- package/lib/interceptor.d.ts +0 -3
- package/lib/sdk.cjs.development.js +0 -11
- package/lib/sdk.cjs.development.js.map +1 -1
- package/lib/sdk.cjs.production.min.js +1 -1
- package/lib/sdk.cjs.production.min.js.map +1 -1
- package/lib/sdk.esm.js +1 -11
- package/lib/sdk.esm.js.map +1 -1
- package/lib/static.d.ts +0 -1
- package/package.json +1 -1
package/lib/sdk.esm.js
CHANGED
@@ -16912,13 +16912,6 @@ export const resourceMap: { [res: string]: ResourceInfo } = {
|
|
16912
16912
|
} as const
|
16913
16913
|
*/
|
16914
16914
|
|
16915
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
16916
|
-
var REQUEST_INTERRUPTED = 'REQUEST_INTERRUPTED';
|
16917
|
-
|
16918
|
-
var stopInterceptedRequest = function stopInterceptedRequest() {
|
16919
|
-
throw new axios.Cancel(REQUEST_INTERRUPTED);
|
16920
|
-
};
|
16921
|
-
|
16922
16915
|
/* Static functions */
|
16923
16916
|
|
16924
16917
|
var CommerceLayerStatic = {
|
@@ -16927,9 +16920,6 @@ var CommerceLayerStatic = {
|
|
16927
16920
|
},
|
16928
16921
|
isApiError: function isApiError(error) {
|
16929
16922
|
return ApiError.isApiError(error);
|
16930
|
-
},
|
16931
|
-
isRequestInterrupted: function isRequestInterrupted(error) {
|
16932
|
-
return CommerceLayerStatic.isApiError(error) && error.message === REQUEST_INTERRUPTED;
|
16933
16923
|
}
|
16934
16924
|
};
|
16935
16925
|
|
@@ -17122,5 +17112,5 @@ var CommerceLayer = function CommerceLayer(config) {
|
|
17122
17112
|
};
|
17123
17113
|
|
17124
17114
|
export default CommerceLayer;
|
17125
|
-
export { CommerceLayerStatic
|
17115
|
+
export { CommerceLayerStatic };
|
17126
17116
|
//# sourceMappingURL=sdk.esm.js.map
|