You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@vercel/blob

Package Overview
Dependencies
Maintainers
9
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/blob - npm Package Compare versions

Comparing version

to
0.26.0-a0c75211-20241025223154

dist/chunk-RGL3YCNL.cjs

9

dist/client.d.ts

@@ -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