New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@useparagon/connect

Package Overview
Dependencies
Maintainers
0
Versions
101
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 1.0.26-experimental.5 to 1.0.26-experimental.6

dist/src/file-picker/helpers/microsoftPicker.d.ts

1

dist/src/entities/integration.interface.d.ts

@@ -45,2 +45,3 @@ import { SDKIntegrationConfig } from '../types/connect';

sdkIntegrationConfig?: SDKIntegrationConfig | null;
providerData?: Record<string, any>;
}
import { GoogleDriveFilePicker } from './googledrive';
import { OneDriveFilePicker } from './onedrive';
import { SharepointFilePicker } from './sharepoint';
declare const _default: {
GoogleDriveFilePicker: typeof GoogleDriveFilePicker;
OneDriveFilePicker: typeof OneDriveFilePicker;
SharepointFilePicker: typeof SharepointFilePicker;
};
export default _default;

41

dist/src/file-picker/integrations/onedrive.d.ts

@@ -1,35 +0,10 @@

import ConnectSDK from '../../ConnectSDK';
import { FilePickerInitOptions, FilePickerOptions } from '../../types';
import { BaseFilePicker } from '../types/baseFilePicker';
export declare class OneDriveFilePicker extends BaseFilePicker {
readonly options: FilePickerOptions;
readonly connectSDKInstance: ConnectSDK;
private dependencyStatus;
private accessToken;
private domain;
constructor(options: FilePickerOptions, connectSDKInstance: ConnectSDK);
getInstance(): null;
open(): boolean;
import { IConnectIntegrationWithCredentialInfo } from '../../entities/integration.interface';
import { FilePickerInitOptions } from '../../types/sdk';
import { LaunchPickersOptions, MicrosoftPicker } from '../helpers/microsoftPicker';
export declare class OneDriveFilePicker extends MicrosoftPicker {
integrationName: string;
init(options: FilePickerInitOptions): Promise<boolean>;
protected onScriptLoaded(): void;
protected onScriptError(): void;
/**
* Combines multiple path segments into a single normalized path.
*
* - Removes any leading or trailing slashes from each segment.
* - Ensures the resulting path uses forward slashes (`/`) as the separator.
* - Does not add a leading or trailing slash to the final combined path.
*
* @param paths - An array of path segments to combine.
* @returns The combined and normalized path as a string.
*
* @example
* const combinedPath = combinePaths('folder1/', '/folder2/', '/file.txt');
* // Result: 'folder1/folder2/file.txt'
*/
private combinePaths;
private launchPicker;
private setupMessageListener;
private initializePort;
private handlePickerCommand;
getUrl(response: IConnectIntegrationWithCredentialInfo, integrationName: string): string;
getPickerOptions(): Partial<LaunchPickersOptions>;
invokeLaunchPicker(): Promise<void>;
}

@@ -5,2 +5,3 @@ import ConnectSDK from '../../ConnectSDK';

constructor(action: string, options: FilePickerOptions, connectSingleton: ConnectSDK);
createFilePicker(action: string, options: FilePickerOptions, connectSingleton: ConnectSDK): IFilePicker | undefined;
open(): boolean;

@@ -7,0 +8,0 @@ init(options: FilePickerInitOptions): Promise<boolean>;

@@ -356,3 +356,2 @@ import ConnectSDK from '../ConnectSDK';

appId?: string;
clientId?: string;
};

@@ -373,21 +372,2 @@ export declare enum FilePickerStatus {

export declare const supportedModesForDocsViewMode: string[];
export interface OpenOptions {
clientId: string;
action: 'share' | 'download' | 'upload' | string;
advanced?: {
queryParameters?: string;
accessToken?: string;
};
multiSelect?: boolean;
openInNewWindow: boolean;
success?: (files: File[]) => void;
cancel?: () => void;
error?: (error: Error) => void;
}
export interface File {
id: string;
name: string;
size: number;
link: string;
}
export {};
{
"name": "@useparagon/connect",
"version": "1.0.26-experimental.5",
"version": "1.0.26-experimental.6",
"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

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