@vercel/blob
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -5,9 +5,3 @@ import { a as PutBody, b as PutBlobResult, B as BlobCommandOptions } from './put-hUZhqbLn.js'; | ||
interface ClientPutCommandOptions { | ||
access: 'public'; | ||
token: string; | ||
contentType?: string; | ||
} | ||
declare const put: <TPath extends string>(pathname: TPath, bodyOrOptions: TPath extends `${string}/` ? ClientPutCommandOptions : PutBody, optionsInput?: ClientPutCommandOptions | undefined) => Promise<PutBlobResult>; | ||
interface UploadOptions { | ||
interface CommonCreateBlobCommandOptions { | ||
/** | ||
@@ -22,2 +16,15 @@ * Whether the blob should be publicly accessible. Support for private blobs is planned. | ||
/** | ||
* Whether to use multipart upload. Use this when uploading large files. It will split the file into multiple parts, upload them in parallel and retry failed parts. | ||
*/ | ||
multipart?: boolean; | ||
} | ||
interface ClientPutCommandOptions extends CommonCreateBlobCommandOptions { | ||
/** | ||
* A client token that was generated by your server using the `generateClientToken` method. | ||
*/ | ||
token: string; | ||
} | ||
declare const put: <TPath extends string>(pathname: TPath, bodyOrOptions: TPath extends `${string}/` ? ClientPutCommandOptions : PutBody, optionsInput?: ClientPutCommandOptions | undefined) => Promise<PutBlobResult>; | ||
interface UploadOptions extends CommonCreateBlobCommandOptions { | ||
/** | ||
* A route that implements the `handleUpload` function for generating a client token. | ||
@@ -30,6 +37,2 @@ */ | ||
clientPayload?: string; | ||
/** | ||
* Whether to use multipart upload. Use this when uploading large files. It will split the file into multiple parts, upload them in parallel and retry failed parts. | ||
*/ | ||
multipart?: boolean; | ||
} | ||
@@ -36,0 +39,0 @@ /** |
{ | ||
"name": "@vercel/blob", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "The Vercel Blob JavaScript API client", | ||
@@ -65,4 +65,4 @@ "homepage": "https://vercel.com/storage/blob", | ||
"tsup": "8.0.1", | ||
"tsconfig": "0.0.0", | ||
"eslint-config-custom": "0.0.0" | ||
"eslint-config-custom": "0.0.0", | ||
"tsconfig": "0.0.0" | ||
}, | ||
@@ -69,0 +69,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
231072
2047
5