@cumulus/errors
Advanced tools
Comparing version 11.0.0 to 11.1.0
@@ -27,2 +27,5 @@ /** | ||
} | ||
export interface ErrorWithName extends Error { | ||
name: string; | ||
} | ||
/** | ||
@@ -39,3 +42,3 @@ * Test to see if a given exception is an AWS Throttling Exception | ||
*/ | ||
export declare const isConditionalCheckException: (error: ErrorWithOptionalCode) => boolean; | ||
export declare const isConditionalCheckException: (error: ErrorWithName) => boolean; | ||
/** | ||
@@ -42,0 +45,0 @@ * WorkflowError should be bubbled out to the overall workflow in the 'exception' field, rather than |
@@ -41,3 +41,3 @@ "use strict"; | ||
*/ | ||
const isConditionalCheckException = (error) => error.code === 'ConditionalCheckFailedException'; | ||
const isConditionalCheckException = (error) => error.name === 'ConditionalCheckFailedException'; | ||
exports.isConditionalCheckException = isConditionalCheckException; | ||
@@ -44,0 +44,0 @@ /** |
{ | ||
"name": "@cumulus/errors", | ||
"version": "11.0.0", | ||
"version": "11.1.0", | ||
"description": "Provides error classes for Cumulus", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"license": "Apache-2.0", | ||
"gitHead": "e922ad12fd94affa6cd60a97a184a465a756c50b" | ||
"gitHead": "a846e319e143684ebc408e35f8b51cc1a7195391" | ||
} |
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
27372
466