Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More ā†’
Socket
Sign inDemoInstall
Socket

filepond

Package Overview
Dependencies
Maintainers
0
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filepond - npm Package Compare versions

Comparing version 4.32.0 to 4.32.1

2

package.json
{
"name": "filepond",
"version": "4.32.0",
"version": "4.32.1",
"description": "FilePond, Where files go to stretch their bits.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -7,3 +7,3 @@ // Based on definitions by Zach Posten for React-Filepond <https://github.com/zposten>

export { };
export {};

@@ -19,3 +19,3 @@ export enum FileStatus {

LOADING = 7,
LOAD_ERROR = 8
LOAD_ERROR = 8,
}

@@ -28,3 +28,3 @@

BUSY = 3,
READY = 4
READY = 4,
}

@@ -35,3 +35,3 @@

LIMBO = 2,
LOCAL = 3
LOCAL = 3,
}

@@ -43,3 +43,3 @@

*/
export type ActualFileObject = Blob & { readonly lastModified: number; readonly name: string; };
export type ActualFileObject = Blob & { readonly lastModified: number; readonly name: string };

@@ -50,37 +50,37 @@ /**

export class FilePondFile {
/** Returns the ID of the file. */
id: string;
/** Returns the server id of the file. */
serverId: string;
/** Returns the source of the file. */
source: ActualFileObject | string;
/** Returns the origin of the file. */
origin: FileOrigin;
/** Returns the current status of the file. */
status: FileStatus;
/** Returns the File object. */
file: ActualFileObject;
/** Returns the file extensions. */
fileExtension: string;
/** Returns the size of the file. */
fileSize: number;
/** Returns the type of the file. */
fileType: string;
/** Returns the full name of the file. */
filename: string;
/** Returns the name of the file without extension. */
filenameWithoutExtension: string;
/** Returns the ID of the file. */
id: string;
/** Returns the server id of the file. */
serverId: string;
/** Returns the source of the file. */
source: ActualFileObject | string;
/** Returns the origin of the file. */
origin: FileOrigin;
/** Returns the current status of the file. */
status: FileStatus;
/** Returns the File object. */
file: ActualFileObject;
/** Returns the file extensions. */
fileExtension: string;
/** Returns the size of the file. */
fileSize: number;
/** Returns the type of the file. */
fileType: string;
/** Returns the full name of the file. */
filename: string;
/** Returns the name of the file without extension. */
filenameWithoutExtension: string;
/** Aborts loading of this file */
abortLoad: () => void;
/** Aborts processing of this file */
abortProcessing: () => void;
/**
* Retrieve metadata saved to the file, pass a key to retrieve
* a specific part of the metadata (e.g. 'crop' or 'resize').
* If no key is passed, the entire metadata object is returned.
*/
getMetadata: (key?: string) => any;
/** Add additional metadata to the file */
setMetadata: (key: string, value: any, silent?: boolean) => void;
/** Aborts loading of this file */
abortLoad: () => void;
/** Aborts processing of this file */
abortProcessing: () => void;
/**
* Retrieve metadata saved to the file, pass a key to retrieve
* a specific part of the metadata (e.g. 'crop' or 'resize').
* If no key is passed, the entire metadata object is returned.
*/
getMetadata: (key?: string) => any;
/** Add additional metadata to the file */
setMetadata: (key: string, value: any, silent?: boolean) => void;
}

@@ -130,24 +130,24 @@

/** The total amount of data to be transferred. */
totalDataAmount: number,
totalDataAmount: number
) => void;
export interface ProcessServerChunkTransferOptions {
chunkTransferId: string,
chunkServer: ServerUrl,
chunkTransferId: string;
chunkServer: ServerUrl;
/**
* Chunk uploads enabled
*/
chunkUploads: boolean,
chunkUploads: boolean;
/**
* Forcing use of chunk uploads even for files smaller than chunk size
*/
chunkForce: boolean,
chunkForce: boolean;
/**
* Size of chunks
*/
chunkSize: number,
chunkSize: number;
/**
* Amount of times to retry upload of a chunk when it fails
*/
chunkRetryDelays: number[]
chunkRetryDelays: number[];
}

@@ -299,14 +299,17 @@

*/
server?: string | {
url?: string
timeout?: number
headers?: { [key: string]: string | boolean | number };
process?: string | ServerUrl | ProcessServerConfigFunction | null;
revert?: string | ServerUrl | RevertServerConfigFunction | null;
restore?: string | ServerUrl | RestoreServerConfigFunction | null;
load?: string | ServerUrl | LoadServerConfigFunction | null;
fetch?: string | ServerUrl | FetchServerConfigFunction | null;
patch?: string | ServerUrl | null;
remove?: RemoveServerConfigFunction | null;
} | null;
server?:
| string
| {
url?: string;
timeout?: number;
headers?: { [key: string]: string | boolean | number };
process?: string | ServerUrl | ProcessServerConfigFunction | null;
revert?: string | ServerUrl | RevertServerConfigFunction | null;
restore?: string | ServerUrl | RestoreServerConfigFunction | null;
load?: string | ServerUrl | LoadServerConfigFunction | null;
fetch?: string | ServerUrl | FetchServerConfigFunction | null;
patch?: string | ServerUrl | null;
remove?: RemoveServerConfigFunction | null;
}
| null;

@@ -402,3 +405,28 @@ /**

labelFileSizeNotAvailable?: string;
/**
* Label used to indicate bytes
* @default 'Bytes'
*/
labelFileSizeBytes?: string;
/**
* Label used to indicate kilobytes
* @default 'KB'
*/
labelFileSizeKilobytes?: string;
/**
* Label used to indicate megabytes
* @default 'MB'
*/
labelFileSizeMegabytes?: string;
/**
* Label used to indicate gigabytes
* @default 'GB'
*/
labelFileSizeGigabytes?: string;
/**
* Label used when showing the number of files and there is only one.

@@ -624,3 +652,9 @@ * @default 'file in list'

*/
stylePanelLayout?: 'integrated' | 'compact' | 'circle' | 'integrated circle' | 'compact circle' | null;
stylePanelLayout?:
| 'integrated'
| 'compact'
| 'circle'
| 'integrated circle'
| 'compact circle'
| null;
/**

@@ -667,3 +701,3 @@ * Set a forced aspect ratio for the FilePond drop area.

export type CaptureAttribute = "camera" | "microphone" | "camcorder";
export type CaptureAttribute = 'camera' | 'microphone' | 'camcorder';

@@ -810,3 +844,3 @@ export interface FilePondBaseProps {

*/
credits?: false
credits?: false;
}

@@ -818,23 +852,24 @@

*/
export interface FilePondOptionProps extends
FilePondDragDropProps,
FilePondServerConfigProps,
FilePondLabelProps,
FilePondSvgIconProps,
FilePondCallbackProps,
FilePondHookProps,
FilePondStyleProps,
FilePondBaseProps { }
export interface FilePondOptionProps
extends FilePondDragDropProps,
FilePondServerConfigProps,
FilePondLabelProps,
FilePondSvgIconProps,
FilePondCallbackProps,
FilePondHookProps,
FilePondStyleProps,
FilePondBaseProps {}
export interface FilePondOptions extends
FilePondDragDropProps,
FilePondServerConfigProps,
FilePondLabelProps,
FilePondSvgIconProps,
FilePondCallbackProps,
FilePondHookProps,
FilePondStyleProps,
FilePondBaseProps { }
export interface FilePondOptions
extends FilePondDragDropProps,
FilePondServerConfigProps,
FilePondLabelProps,
FilePondSvgIconProps,
FilePondCallbackProps,
FilePondHookProps,
FilePondStyleProps,
FilePondBaseProps {}
export type FilePondEventPrefixed = 'FilePond:init'
export type FilePondEventPrefixed =
| 'FilePond:init'
| 'FilePond:warning'

@@ -854,3 +889,4 @@ | 'FilePond:error'

export type FilePondEvent = 'init'
export type FilePondEvent =
| 'init'
| 'warning'

@@ -870,3 +906,3 @@ | 'error'

export interface RemoveFileOptions {
export interface RemoveFileOptions {
remove?: boolean;

@@ -895,3 +931,6 @@ revert?: boolean;

*/
addFile(source: ActualFileObject | Blob | string, options?: { index?: number } & Partial<FilePondInitialFile["options"]>): Promise<FilePondFile>;
addFile(
source: ActualFileObject | Blob | string,
options?: { index?: number } & Partial<FilePondInitialFile['options']>
): Promise<FilePondFile>;
/**

@@ -901,3 +940,6 @@ * Adds multiple files.

*/
addFiles(source: ActualFileObject[] | Blob[] | string[], options?: { index: number }): Promise<FilePondFile[]>;
addFiles(
source: ActualFileObject[] | Blob[] | string[],
options?: { index: number }
): Promise<FilePondFile[]>;
/**

@@ -948,3 +990,5 @@ * Moves a file. Select file with query and supply target index.

*/
prepareFile(query?: FilePondFile | string | number): Promise<{file: FilePondFile, output: any}>;
prepareFile(
query?: FilePondFile | string | number
): Promise<{ file: FilePondFile; output: any }>;
/**

@@ -954,3 +998,5 @@ * Processes multiple files. If no parameter is provided, processes all files.

*/
prepareFiles(query?: FilePondFile[] | string[] | number[]): Promise<Array<{file: FilePondFile, output: any}>>;
prepareFiles(
query?: FilePondFile[] | string[] | number[]
): Promise<Array<{ file: FilePondFile; output: any }>>;

@@ -957,0 +1003,0 @@ /**

Sorry, the diff of this file is not supported yet

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

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

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

Sorry, the diff of this file is not supported yet

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