@xliic/cicd-core-node
Advanced tools
Comparing version 5.21.0 to 5.22.0
import { ApiErrors, TaskOptions } from "./types"; | ||
export declare class TaskError extends Error { | ||
networkFailure: boolean; | ||
constructor(message: string, networkFailure?: boolean); | ||
isNetworkError: boolean; | ||
constructor(message: string, isNetworkError?: boolean); | ||
} | ||
export declare function formatApiErrors(errors: ApiErrors): string; | ||
export declare function handleTaskError(err: any, options: TaskOptions): void; |
@@ -11,7 +11,7 @@ "use strict"; | ||
class TaskError extends Error { | ||
constructor(message, networkFailure) { | ||
constructor(message, isNetworkError) { | ||
super(message); | ||
this.networkFailure = false; | ||
if (networkFailure != undefined) { | ||
this.networkFailure = networkFailure; | ||
this.isNetworkError = false; | ||
if (isNetworkError != undefined) { | ||
this.isNetworkError = isNetworkError; | ||
} | ||
@@ -18,0 +18,0 @@ Object.setPrototypeOf(this, TaskError.prototype); |
{ | ||
"name": "@xliic/cicd-core-node", | ||
"version": "5.21.0", | ||
"version": "5.22.0", | ||
"description": "Performs API contract security audit to get a detailed analysis of the possible vulnerabilities and other issues in the API contract.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package