@vercel/blob
Advanced tools
Comparing version 0.25.1 to 0.26.0-a0c75211-20241025223154
@@ -1,5 +0,6 @@ | ||
import { P as PutBody, a as PutBlobResult, b as Part, B as BlobCommandOptions, C as CommonMultipartUploadOptions, c as CommonCompleteMultipartUploadOptions } from './create-folder-Oa5wYhFM.js'; | ||
export { d as createFolder } from './create-folder-Oa5wYhFM.js'; | ||
import { P as PutBody, a as PutBlobResult, b as Part, B as BlobCommandOptions, W as WithUploadProgress, C as CommonMultipartUploadOptions, c as CommonCompleteMultipartUploadOptions } from './create-folder-DGBfYPet.js'; | ||
export { d as createFolder } from './create-folder-DGBfYPet.js'; | ||
import { IncomingMessage } from 'node:http'; | ||
import 'stream'; | ||
import 'undici'; | ||
@@ -26,3 +27,3 @@ interface ClientCommonCreateBlobOptions { | ||
} | ||
interface ClientCommonPutOptions extends ClientCommonCreateBlobOptions { | ||
interface ClientCommonPutOptions extends ClientCommonCreateBlobOptions, WithUploadProgress { | ||
/** | ||
@@ -49,3 +50,3 @@ * 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. | ||
}>; | ||
type ClientMultipartUploadCommandOptions = ClientCommonCreateBlobOptions & ClientTokenOptions & CommonMultipartUploadOptions; | ||
type ClientMultipartUploadCommandOptions = ClientCommonCreateBlobOptions & ClientTokenOptions & CommonMultipartUploadOptions & WithUploadProgress; | ||
declare const uploadPart: (pathname: string, body: PutBody, optionsInput: ClientMultipartUploadCommandOptions) => Promise<Part>; | ||
@@ -52,0 +53,0 @@ type ClientCompleteMultipartUploadCommandOptions = ClientCommonCreateBlobOptions & ClientTokenOptions & CommonCompleteMultipartUploadOptions; |
@@ -10,3 +10,3 @@ import { | ||
getTokenFromOptionsOrEnv | ||
} from "./chunk-HJL34DJB.js"; | ||
} from "./chunk-WOZSWLEJ.js"; | ||
@@ -13,0 +13,0 @@ // src/client.ts |
@@ -1,6 +0,7 @@ | ||
import { e as CommonCreateBlobOptions, f as BlobError, B as BlobCommandOptions, P as PutBody, a as PutBlobResult, b as Part, U as UploadPartCommandOptions, g as CompleteMultipartUploadCommandOptions } from './create-folder-Oa5wYhFM.js'; | ||
export { i as PartInput, d as createFolder, h as getDownloadUrl } from './create-folder-Oa5wYhFM.js'; | ||
import { e as CommonCreateBlobOptions, W as WithUploadProgress, f as BlobError, B as BlobCommandOptions, P as PutBody, a as PutBlobResult, b as Part, U as UploadPartCommandOptions, g as CompleteMultipartUploadCommandOptions } from './create-folder-DGBfYPet.js'; | ||
export { O as OnUploadProgressCallback, j as PartInput, i as UploadProgressEvent, d as createFolder, h as getDownloadUrl } from './create-folder-DGBfYPet.js'; | ||
import 'stream'; | ||
import 'undici'; | ||
interface PutCommandOptions extends CommonCreateBlobOptions { | ||
interface PutCommandOptions extends CommonCreateBlobOptions, WithUploadProgress { | ||
/** | ||
@@ -151,3 +152,3 @@ * 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. | ||
* @param pathname - The pathname to upload the blob to, including the extension. This will influence the url of your blob like https://$storeId.public.blob.vercel-storage.com/$pathname. | ||
* @param body - The content of your blob, can be a: string, File, Blob, Buffer or Stream. We support everything fetch supports: https://developer.mozilla.org/en-US/docs/Web/API/RequestInit#body. | ||
* @param body - The content of your blob, can be a: string, File, Blob, Buffer or Stream. We support almost everything fetch supports: https://developer.mozilla.org/en-US/docs/Web/API/RequestInit#body. | ||
* @param options - Additional options like `token` or `contentType`. | ||
@@ -154,0 +155,0 @@ */ |
@@ -25,3 +25,3 @@ import { | ||
requestApi | ||
} from "./chunk-HJL34DJB.js"; | ||
} from "./chunk-WOZSWLEJ.js"; | ||
@@ -28,0 +28,0 @@ // src/del.ts |
{ | ||
"name": "@vercel/blob", | ||
"version": "0.25.1", | ||
"version": "0.26.0-a0c75211-20241025223154", | ||
"description": "The Vercel Blob JavaScript API client", | ||
@@ -52,3 +52,4 @@ "homepage": "https://vercel.com/storage/blob", | ||
"is-buffer": "^2.0.5", | ||
"undici": "^5.28.4" | ||
"throttleit": "^2.1.0", | ||
"undici": "^6.20.1" | ||
}, | ||
@@ -55,0 +56,0 @@ "devDependencies": { |
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
383610
3735
5
28
4
+ Addedthrottleit@^2.1.0
+ Addedthrottleit@2.1.0(transitive)
+ Addedundici@6.21.0(transitive)
- Removed@fastify/busboy@2.1.1(transitive)
- Removedundici@5.28.4(transitive)
Updatedundici@^6.20.1