Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vercel/blob

Package Overview
Dependencies
Maintainers
9
Versions
106
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 to 0.17.1

25

dist/client.d.ts

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

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