Socket
Socket
Sign inDemoInstall

@jupiterone/integration-sdk-core

Package Overview
Dependencies
Maintainers
1
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupiterone/integration-sdk-core - npm Package Compare versions

Comparing version 10.5.1 to 10.5.3

5

dist/src/errors.d.ts

@@ -62,2 +62,3 @@ export declare const UNEXPECTED_ERROR_CODE = "UNEXPECTED_ERROR";

* Optional cause associated with the error.
* @deprecated - Do not use _cause, use the native `cause` property instead.
*/

@@ -74,6 +75,2 @@ readonly _cause?: Error;

constructor(options: IntegrationErrorOptions);
/**
* For compatibility with [bunyan err serializer](https://github.com/trentm/node-bunyan/blob/master/lib/bunyan.js#L1125).
*/
cause(): Error | undefined;
}

@@ -80,0 +77,0 @@ export declare class IntegrationLocalConfigFieldMissingError extends IntegrationError {

39

dist/src/errors.js

@@ -44,4 +44,17 @@ "use strict";

class IntegrationError extends Error {
/**
* Optional cause associated with the error.
* @deprecated - Do not use _cause, use the native `cause` property instead.
*/
_cause;
/**
* Code associated with the error.
*/
code;
/**
* Flag used to mark the error as fatal.
*/
fatal;
constructor(options) {
super(options.message);
super(options.message, { cause: options.cause });
this.code = options.code;

@@ -54,8 +67,2 @@ this.fatal = options.fatal;

}
/**
* For compatibility with [bunyan err serializer](https://github.com/trentm/node-bunyan/blob/master/lib/bunyan.js#L1125).
*/
cause() {
return this._cause;
}
}

@@ -151,2 +158,15 @@ exports.IntegrationError = IntegrationError;

class IntegrationProviderAPIError extends IntegrationError {
/**
* The endpoint that provided the unexpected error response.
*/
endpoint;
/**
* The response status code, i.e. `500`, or in the case of GraphQL, whatever
* error code provided by the response body.
*/
status;
/**
* The response status text, i.e. `"Internal Server Error"`.
*/
statusText;
constructor(options) {

@@ -211,2 +231,7 @@ super({

class IntegrationProviderRetriesExceededError extends IntegrationProviderAPIError {
/**
* Optional encapsulation of the retry details received from API. Type is 'any' as the
* content will depend on the provider API.
*/
retryDetails;
constructor(options, retryDetails) {

@@ -213,0 +238,0 @@ super({

{
"name": "@jupiterone/integration-sdk-core",
"version": "10.5.1",
"version": "10.5.3",
"description": "The SDK for developing JupiterOne integrations",

@@ -32,3 +32,3 @@ "main": "dist/src/index.js",

},
"gitHead": "406470a2527bbf21bebbee2bea92ec225e9a4cc0"
"gitHead": "2da70497bf162ac93aac6538ae426f348b582fbd"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc