api-def 0.12.0-alpha.42 → 0.12.0-alpha.43
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/cjs/RequestError.d.ts +1 -1
- package/cjs/RequestError.js +1 -1
- package/esm/RequestError.d.ts +1 -1
- package/esm/RequestError.js +1 -1
- package/package.json +1 -1
package/cjs/RequestError.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const RequestErrorCode: {
|
|
|
14
14
|
readonly VALIDATION_RESPONSE_VALIDATE_ERROR: "validation/response-validate-error";
|
|
15
15
|
};
|
|
16
16
|
export type RequestErrorCode = EnumOf<typeof RequestErrorCode>;
|
|
17
|
-
declare const REQUEST_ERROR_SYMBOL
|
|
17
|
+
declare const REQUEST_ERROR_SYMBOL = "isApiDefError";
|
|
18
18
|
export interface RequestError extends Error {
|
|
19
19
|
[REQUEST_ERROR_SYMBOL]: true;
|
|
20
20
|
response: ApiResponse | undefined | null;
|
package/cjs/RequestError.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.RequestErrorCode = {
|
|
|
13
13
|
VALIDATION_BODY_VALIDATE_ERROR: "validation/body-validate-error",
|
|
14
14
|
VALIDATION_RESPONSE_VALIDATE_ERROR: "validation/response-validate-error",
|
|
15
15
|
};
|
|
16
|
-
var REQUEST_ERROR_SYMBOL =
|
|
16
|
+
var REQUEST_ERROR_SYMBOL = "isApiDefError";
|
|
17
17
|
var isRequestError = function (error) {
|
|
18
18
|
if (!error) {
|
|
19
19
|
return false;
|
package/esm/RequestError.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const RequestErrorCode: {
|
|
|
14
14
|
readonly VALIDATION_RESPONSE_VALIDATE_ERROR: "validation/response-validate-error";
|
|
15
15
|
};
|
|
16
16
|
export type RequestErrorCode = EnumOf<typeof RequestErrorCode>;
|
|
17
|
-
declare const REQUEST_ERROR_SYMBOL
|
|
17
|
+
declare const REQUEST_ERROR_SYMBOL = "isApiDefError";
|
|
18
18
|
export interface RequestError extends Error {
|
|
19
19
|
[REQUEST_ERROR_SYMBOL]: true;
|
|
20
20
|
response: ApiResponse | undefined | null;
|
package/esm/RequestError.js
CHANGED
|
@@ -10,7 +10,7 @@ export const RequestErrorCode = {
|
|
|
10
10
|
VALIDATION_BODY_VALIDATE_ERROR: "validation/body-validate-error",
|
|
11
11
|
VALIDATION_RESPONSE_VALIDATE_ERROR: "validation/response-validate-error",
|
|
12
12
|
};
|
|
13
|
-
const REQUEST_ERROR_SYMBOL =
|
|
13
|
+
const REQUEST_ERROR_SYMBOL = "isApiDefError";
|
|
14
14
|
export const isRequestError = (error) => {
|
|
15
15
|
if (!error) {
|
|
16
16
|
return false;
|