@commercelayer/sdk 2.2.6-beta.2 → 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 -16
- 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 -16
- package/lib/sdk.esm.js.map +1 -1
- package/lib/static.d.ts +0 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
@@ -4,4 +4,3 @@ export { CommerceLayerStatic } from './static';
|
|
4
4
|
export type { QueryParamsRetrieve, QueryParamsList, QueryParams } from './query';
|
5
5
|
export * from './model';
|
6
6
|
export type { RequestObj, ResponseObj, ErrorObj } from './interceptor';
|
7
|
-
export { stopInterceptedRequest } from './interceptor';
|
package/lib/interceptor.d.ts
CHANGED
@@ -17,6 +17,3 @@ declare type RawResponseReader = {
|
|
17
17
|
rawResponse: ResponseObj | undefined;
|
18
18
|
};
|
19
19
|
export type { RawResponseReader };
|
20
|
-
declare const stopInterceptedRequest: () => void;
|
21
|
-
declare const isRequestInterrupted: (error: any) => boolean;
|
22
|
-
export { stopInterceptedRequest, isRequestInterrupted };
|
@@ -16918,18 +16918,6 @@ export const resourceMap: { [res: string]: ResourceInfo } = {
|
|
16918
16918
|
} as const
|
16919
16919
|
*/
|
16920
16920
|
|
16921
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
16922
|
-
var REQUEST_INTERRUPTED = 'REQUEST_INTERRUPTED';
|
16923
|
-
|
16924
|
-
var stopInterceptedRequest = function stopInterceptedRequest() {
|
16925
|
-
throw new axios.Cancel(REQUEST_INTERRUPTED);
|
16926
|
-
}; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
16927
|
-
|
16928
|
-
|
16929
|
-
var isRequestInterrupted = function isRequestInterrupted(error) {
|
16930
|
-
return error.message === REQUEST_INTERRUPTED;
|
16931
|
-
};
|
16932
|
-
|
16933
16921
|
/* Static functions */
|
16934
16922
|
|
16935
16923
|
var CommerceLayerStatic = {
|
@@ -16938,9 +16926,6 @@ var CommerceLayerStatic = {
|
|
16938
16926
|
},
|
16939
16927
|
isApiError: function isApiError(error) {
|
16940
16928
|
return ApiError.isApiError(error);
|
16941
|
-
},
|
16942
|
-
isRequestInterrupted: function isRequestInterrupted$1(error) {
|
16943
|
-
return isRequestInterrupted(error);
|
16944
16929
|
}
|
16945
16930
|
};
|
16946
16931
|
|
@@ -17134,5 +17119,4 @@ var CommerceLayer = function CommerceLayer(config) {
|
|
17134
17119
|
|
17135
17120
|
exports.CommerceLayerStatic = CommerceLayerStatic;
|
17136
17121
|
exports.default = CommerceLayer;
|
17137
|
-
exports.stopInterceptedRequest = stopInterceptedRequest;
|
17138
17122
|
//# sourceMappingURL=sdk.cjs.development.js.map
|