@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 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';
@@ -17,6 +17,3 @@ declare type RawResponseReader = {
17
17
  rawResponse: ResponseObj | undefined;
18
18
  };
19
19
  export type { RawResponseReader };
20
- declare const REQUEST_INTERRUPTED = "REQUEST_INTERRUPTED";
21
- declare const stopInterceptedRequest: () => void;
22
- export { stopInterceptedRequest, REQUEST_INTERRUPTED };
@@ -16918,13 +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
- };
16927
-
16928
16921
  /* Static functions */
16929
16922
 
16930
16923
  var CommerceLayerStatic = {
@@ -16933,9 +16926,6 @@ var CommerceLayerStatic = {
16933
16926
  },
16934
16927
  isApiError: function isApiError(error) {
16935
16928
  return ApiError.isApiError(error);
16936
- },
16937
- isRequestInterrupted: function isRequestInterrupted(error) {
16938
- return CommerceLayerStatic.isApiError(error) && error.message === REQUEST_INTERRUPTED;
16939
16929
  }
16940
16930
  };
16941
16931
 
@@ -17129,5 +17119,4 @@ var CommerceLayer = function CommerceLayer(config) {
17129
17119
 
17130
17120
  exports.CommerceLayerStatic = CommerceLayerStatic;
17131
17121
  exports.default = CommerceLayer;
17132
- exports.stopInterceptedRequest = stopInterceptedRequest;
17133
17122
  //# sourceMappingURL=sdk.cjs.development.js.map