@vercel/blob
Advanced tools
Comparing version 0.17.0-c2239f49-20240111125313 to 0.17.0
@@ -1,2 +0,2 @@ | ||
import { P as PutBody, b as PutBlobResult, B as BlobCommandOptions } from './put-qfP2CvGp.js'; | ||
import { a as PutBody, b as PutBlobResult, B as BlobCommandOptions } from './put-hUZhqbLn.js'; | ||
import { IncomingMessage } from 'node:http'; | ||
@@ -10,3 +10,3 @@ import 'stream'; | ||
} | ||
declare const put: (pathname: string, body: PutBody, options?: ClientPutCommandOptions | undefined) => Promise<PutBlobResult>; | ||
declare const put: <TPath extends string>(pathname: TPath, bodyOrOptions: TPath extends `${string}/` ? ClientPutCommandOptions : PutBody, optionsInput?: ClientPutCommandOptions | undefined) => Promise<PutBlobResult>; | ||
interface UploadOptions { | ||
@@ -29,2 +29,5 @@ /** | ||
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; | ||
@@ -42,3 +45,3 @@ } | ||
*/ | ||
declare const upload: (pathname: string, body: PutBody, options?: UploadOptions | undefined) => Promise<PutBlobResult>; | ||
declare const upload: <TPath extends string>(pathname: TPath, bodyOrOptions: TPath extends `${string}/` ? UploadOptions : PutBody, optionsInput?: UploadOptions | undefined) => Promise<PutBlobResult>; | ||
type DecodedClientTokenPayload = Omit<GenerateClientTokenOptions, 'token'> & { | ||
@@ -45,0 +48,0 @@ validUntil: number; |
@@ -5,3 +5,3 @@ import { | ||
getTokenFromOptionsOrEnv | ||
} from "./chunk-UQNACE5H.js"; | ||
} from "./chunk-DJUDLYN4.js"; | ||
@@ -8,0 +8,0 @@ // src/client.ts |
@@ -1,3 +0,3 @@ | ||
import { B as BlobCommandOptions, C as CreateBlobCommandOptions, P as PutBody, a as PutCommandOptions, b as PutBlobResult } from './put-qfP2CvGp.js'; | ||
export { c as BlobAccessError, d as BlobError, e as BlobNotFoundError, i as BlobServiceNotAvailable, f as BlobStoreNotFoundError, g as BlobStoreSuspendedError, h as BlobUnknownError } from './put-qfP2CvGp.js'; | ||
import { B as BlobCommandOptions, C as CreateBlobCommandOptions, P as PutCommandOptions, a as PutBody, b as PutBlobResult } from './put-hUZhqbLn.js'; | ||
export { c as BlobAccessError, d as BlobError, e as BlobNotFoundError, i as BlobServiceNotAvailable, f as BlobStoreNotFoundError, g as BlobStoreSuspendedError, h as BlobUnknownError } from './put-hUZhqbLn.js'; | ||
import 'stream'; | ||
@@ -102,8 +102,8 @@ | ||
* | ||
* @param pathname - The pathname to upload the blob to. This includes the filename. | ||
* @param body - The contents of your blob. This has to be a supported fetch body type https://developer.mozilla.org/en-US/docs/Web/API/fetch#body. | ||
* @param options - Additional options like `token` or `contentType`. | ||
* @param pathname - The pathname to upload the blob to. For file upload this includes the filename. Pathnames that end with a slash are treated as folder creations. | ||
* @param bodyOrOptions - Either the contents of your blob or the options object. For file uploads this has to be a supported fetch body type https://developer.mozilla.org/en-US/docs/Web/API/fetch#body. For folder creations this is the options object since no body is required. | ||
* @param options - Additional options like `token` or `contentType` for file uploads. For folder creations this argument can be ommited. | ||
*/ | ||
declare const put: (pathname: string, body: PutBody, options?: PutCommandOptions | undefined) => Promise<PutBlobResult>; | ||
declare const put: <TPath extends string>(pathname: TPath, bodyOrOptions: TPath extends `${string}/` ? PutCommandOptions : PutBody, optionsInput?: PutCommandOptions | undefined) => Promise<PutBlobResult>; | ||
export { type CopyBlobResult, type CopyCommandOptions, type HeadBlobResult, type ListBlobResult, type ListBlobResultBlob, type ListCommandOptions, type ListFoldedBlobResult, PutBlobResult, PutCommandOptions, copy, del, head, list, put }; |
@@ -14,3 +14,3 @@ import { | ||
validateBlobApiResponse | ||
} from "./chunk-UQNACE5H.js"; | ||
} from "./chunk-DJUDLYN4.js"; | ||
@@ -17,0 +17,0 @@ // src/del.ts |
{ | ||
"name": "@vercel/blob", | ||
"version": "0.17.0-c2239f49-20240111125313", | ||
"version": "0.17.0", | ||
"description": "The Vercel Blob JavaScript API client", | ||
@@ -65,4 +65,4 @@ "homepage": "https://vercel.com/storage/blob", | ||
"tsup": "8.0.1", | ||
"eslint-config-custom": "0.0.0", | ||
"tsconfig": "0.0.0" | ||
"tsconfig": "0.0.0", | ||
"eslint-config-custom": "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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
230296
2044
6