Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

s3-chunk-uploader

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3-chunk-uploader - npm Package Compare versions

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