New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vercel/blob

Package Overview
Dependencies
Maintainers
9
Versions
110
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 0.17.0-c2239f49-20240111125313 to 0.17.0

dist/chunk-DJUDLYN4.js

9

dist/client.d.ts

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc