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

@vercel/blob

Package Overview
Dependencies
Maintainers
217
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.0.8 to 0.1.0

2

dist/index.js

@@ -1,1 +0,1 @@

import{fetch as n}from"undici";async function a(e,t,o){return(await n(`http://0.0.0.0:8787/${e}`,{method:"PUT",body:t,headers:{authorization:`Bearer ${r(o)}`},duplex:"half"})).json()}async function m(e,t){return await Promise.resolve({blobUrl:e,delOptions:t}),!0}function r(e){if(e!=null&&e.token)return e.token;if(!process.env.BLOB_STORE_WRITE_TOKEN)throw new Error("BLOB_STORE_WRITE_TOKEN environment variable is not set. Please set it to your write token.");return process.env.BLOB_STORE_WRITE_TOKEN}export{a as put,m as remove};
import{fetch as r}from"undici";async function m(e,o,n){var t;return(await r(`http://${(t=process.env.VERCEL_BLOB_API_URL)!=null?t:"blob-staging.vercel-storage.com"}/${e}`,{method:"PUT",body:o,headers:{authorization:`Bearer ${s(n)}`},duplex:"half"})).json()}async function l(e,o){return await Promise.resolve({blobUrl:e,delOptions:o}),!0}function s(e){if(e!=null&&e.token)return e.token;if(!process.env.BLOB_STORE_WRITE_TOKEN)throw new Error("BLOB_STORE_WRITE_TOKEN environment variable is not set. Please set it to your write token.");return process.env.BLOB_STORE_WRITE_TOKEN}export{m as put,l as remove};
{
"name": "@vercel/blob",
"version": "0.0.8",
"version": "0.1.0",
"description": "Ultra-low latency data at the edge",

@@ -5,0 +5,0 @@ "homepage": "https://vercel.com",

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