Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@useparagon/connect

Package Overview
Dependencies
Maintainers
23
Versions
326
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@useparagon/connect - npm Package Compare versions

Comparing version
2.4.1
to
2.4.2-experimental.1
+9
-0
dist/src/ConnectSDK.d.ts

@@ -162,2 +162,10 @@ import { IConnectCredential } from './entities/connectCredential.interface';

oauthTimeout?: number;
/**
* Optional. When this signal is aborted, the SDK stops the OAuth credential
* polling loop, clears the popup-watching intervals associated with this
* flow, and attempts to close the OAuth popup window. After teardown,
* `onError` is invoked with an `OAuthCancelledError`. `onSuccess` is not
* invoked.
*/
abortSignal?: AbortSignal;
}): void;

@@ -445,2 +453,3 @@ private getIntegrationByName;

private hasFinishedInstruction;
private oauthAbortController;
constructor(paragon: ConnectSDK);

@@ -447,0 +456,0 @@ start(integrationName: string, startOptions?: StartOptions): void;

@@ -32,2 +32,5 @@ export type ConnectSDKError = {

message: string;
} | {
name: 'OAuthCancelledError';
message: string;
};

@@ -64,2 +67,13 @@ type ErrorByName<T> = Extract<ConnectSDKError, {

}
/**
* Thrown when an in-progress OAuth flow is cancelled via the abort signal
* supplied to `startOAuthFlow` (e.g. by `InstallFlow.cancel()`). This error is
* intentionally NOT part of `InstallFlowError` because it is swallowed inside
* `InstallFlow.handleOAuth` and never surfaces to consumer `onError` callbacks.
* Callers that pass their own `abortSignal` to `startOAuthFlow` should filter
* this error in their `onError` handler.
*/
export declare class OAuthCancelledError extends BaseSDKError {
constructor();
}
export declare function getConnectSDKError(error: unknown): ConnectSDKError;

@@ -66,0 +80,0 @@ export declare class ParagonError extends Error {

+1
-1
{
"name": "@useparagon/connect",
"version": "2.4.1",
"version": "2.4.2-experimental.1",
"description": "Embed integrations into your app with the Paragon SDK",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display