@forge/api
Advanced tools
Comparing version 2.11.0-next.2 to 2.11.0-next.3
# @forge/api | ||
## 2.11.0-next.3 | ||
### Patch Changes | ||
- addbda1: Fix how user code error are being reported by Runtime v2 | ||
## 2.11.0-next.2 | ||
@@ -4,0 +10,0 @@ |
@@ -7,3 +7,3 @@ export declare const FUNCTION_ERR = "FUNCTION_ERR"; | ||
export declare function isForgePlatformError(err: Error): boolean; | ||
export declare function isHostedCodeError(err: Error): boolean; | ||
export declare function isHostedCodeError(err: Error | string): boolean; | ||
export declare class HttpError extends Error { | ||
@@ -10,0 +10,0 @@ status: number | undefined; |
@@ -14,3 +14,3 @@ "use strict"; | ||
function isHostedCodeError(err) { | ||
return [exports.FUNCTION_ERR, exports.REQUEST_EGRESS_ALLOWLIST_ERR, exports.FUNCTION_FETCH_ERR, exports.NEEDS_AUTHENTICATION_ERR].includes(err.name); | ||
return [exports.FUNCTION_ERR, exports.REQUEST_EGRESS_ALLOWLIST_ERR, exports.FUNCTION_FETCH_ERR, exports.NEEDS_AUTHENTICATION_ERR].includes(typeof err === 'string' ? err : err.name); | ||
} | ||
@@ -17,0 +17,0 @@ exports.isHostedCodeError = isHostedCodeError; |
{ | ||
"name": "@forge/api", | ||
"version": "2.11.0-next.2", | ||
"version": "2.11.0-next.3", | ||
"description": "Forge API methods", | ||
@@ -5,0 +5,0 @@ "author": "Atlassian", |
Sorry, the diff of this file is not supported yet
66586