@jupiterone/integration-sdk-core
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -56,2 +56,12 @@ import { StepMetadata } from './'; | ||
export interface IntegrationLoggerFunctions { | ||
/** | ||
* Answers true when an error has already been handled by this logger instance | ||
* (in `warn` or `error`). | ||
* | ||
* There are some errors which are handled in the context where they occur. | ||
* Once they have been logged, they may be re-thrown to break out of that | ||
* context, but they should not be logged again. This mechanism allows higher | ||
* catch blocks to discover whether the logger has already handled an error | ||
* and if so, to avoid double logging. | ||
*/ | ||
isHandledError: IsHandledErrorFunction; | ||
@@ -63,2 +73,10 @@ stepStart: StepLogFunction; | ||
synchronizationUploadEnd: SynchronizationLogFunction; | ||
/** | ||
* Handles logging of errors that are raised in `validateInvocation`. | ||
* | ||
* `IntegrationValidationError` and `IntegrationProviderAuthenticationError` | ||
* are logged at `level: 40`, expecting these to be user errors that should | ||
* not alert in runtime environments. Other error types will be logged at | ||
* `level: 50`. | ||
*/ | ||
validationFailure: ValidationLogFunction; | ||
@@ -65,0 +83,0 @@ publishMetric: PublishMetricFunction; |
{ | ||
"name": "@jupiterone/integration-sdk-core", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "The SDK for developing JupiterOne integrations", | ||
@@ -32,3 +32,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "33cc30d259d04499a400585aeca1c0c2f5696f4c" | ||
"gitHead": "e0977a3e5de96d5f6407e850f2ebc324ea618ecb" | ||
} |
Sorry, the diff of this file is not supported yet
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
338916
2102