Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/dropbox-chooser
Advanced tools
TypeScript definitions for dropbox-chooser
npm install --save @types/dropbox-chooser
This package contains type definitions for dropbox-chooser (https://www.dropbox.com/developers/chooser).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dropbox-chooser.
declare namespace Dropbox {
interface Chooser {
choose(options: ChooserOptions): void;
}
interface ChooserOptions {
// called when a user selects an item in the Chooser
success(files: readonly ChooserFile[]): void;
// called when the user closes the dialog without selecting a file
cancel?(): void;
// default: 'preview'
linkType?: "preview" | "direct" | undefined;
// default: false
multiselect?: boolean | undefined;
// eg. '.png'
extensions?: string[] | undefined;
// default: false
folderselect?: boolean | undefined;
// any positive number
sizeLimit?: number | undefined;
}
interface ChooserFile {
// Unique ID for the file, compatible with Dropbox API v2.
id: string;
// Name of the file.
name: string;
// URL to access the file, which varies depending on the linkType specified when the
// Chooser was triggered.
link: string;
// Size of the file in bytes.
bytes: number;
// URL to a 64x64px icon for the file based on the file's extension.
icon: string;
// A thumbnail URL generated when the user selects images and videos.
// If the user didn't select an image or video, no thumbnail will be included.
thumbnailLink?: string | undefined;
// whether or not the file is actually a directory
isDir: boolean;
}
// Refer to "Handling the response" section of: https://www.dropbox.com/developers/chooser
type ChooserFileBoundingBox = 75 | 256 | 800 | 1280 | 2048;
type ChooserFileMode = "fit" | "crop" | "fit_one_and_overflow";
}
interface Window {
Dropbox?: Dropbox.Chooser | undefined;
}
These definitions were written by Michael Su.
FAQs
TypeScript definitions for dropbox-chooser
We found that @types/dropbox-chooser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.