react-s3-uploader
Advanced tools
Comparing version 4.9.1 to 4.9.2
##### 4.9.1 | ||
##### 4.9.2 | ||
@@ -4,0 +4,0 @@ * Added typescript definitions |
declare module 'react-s3-uploader' { | ||
import { Component } from 'react'; | ||
export interface S3Response { | ||
signedUrl: string; | ||
publicUrl: string; | ||
filename: string; | ||
fileKey: string; | ||
} | ||
export interface ReactS3UploaderProps { | ||
@@ -11,6 +18,6 @@ signingUrl?: string; | ||
preprocess?: (file: File, next: (file: File) => any) => any; | ||
onSignedUrl?: (response: object) => any; | ||
onSignedUrl?: (response: S3Response) => any; | ||
onProgress?: (percent: number, status: string, file: File) => any; | ||
onError?: (message: string) => any; | ||
onFinish?: (result: object) => any; | ||
onFinish?: (result: S3Response, file: File) => any; | ||
signingUrlHeaders?: { | ||
@@ -17,0 +24,0 @@ additional: object; |
{ | ||
"name": "react-s3-uploader", | ||
"version": "4.9.1", | ||
"version": "4.9.2", | ||
"description": "React component that renders a file input and automatically uploads to an S3 bucket", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30106
466