s3-chunk-uploader
Advanced tools
Comparing version 1.0.0 to 1.0.1
import AWS from 'aws-sdk'; | ||
type Temp = {}; | ||
/** | ||
* Uploads a media file to S3 in chunks. | ||
* | ||
* @param {Object} params - The parameters for the upload. | ||
* @param {Blob} params.blob - The media file to upload. | ||
* @param {string} params.bucket - The S3 bucket to upload to. | ||
* @param {string} params.key - The key for the uploaded file. | ||
* @param {AWS.S3.BucketCannedACL} params.ACL - The ACL for the uploaded file. | ||
* @param {"parallel" | "serial"} [params.strategy="serial"] - The strategy to use for uploading chunks. | ||
* "serial" uploads chunks one after another, while "parallel" uploads chunks concurrently. | ||
* | ||
* @returns {Promise<string | undefined>} - The URL of the uploaded file, or undefined if the upload fails. | ||
* | ||
* @throws {Error} - Throws an error if the upload fails after the maximum number of retries. | ||
*/ | ||
declare class ChunkUploader { | ||
@@ -27,2 +40,2 @@ private s3; | ||
export { ChunkUploader, type Temp }; | ||
export { ChunkUploader }; |
{ | ||
"name": "s3-chunk-uploader", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/index.js", | ||
@@ -10,5 +10,15 @@ "types": "dist/index.d.ts", | ||
}, | ||
"keywords": [], | ||
"keywords": [ | ||
"s3", | ||
"chunk", | ||
"uploader", | ||
"aws", | ||
"typescript", | ||
"file upload", | ||
"react", | ||
"node", | ||
"javascript" | ||
], | ||
"author": "", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"description": "", | ||
@@ -15,0 +25,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
11838
6
285
1
53