@vercel/blob
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,1 +0,1 @@ | ||
import{fetch as n}from"undici";async function i(e,o,t){return(await n(`http://${process.env.VERCEL_BLOB_API_URL||"blob-staging.vercel-storage.com"}/${e}`,{method:"PUT",body:o,headers:{authorization:`Bearer ${r(t)}`},duplex:"half"})).json()}async function m(e,o){return await Promise.resolve({blobUrl:e,delOptions:o}),!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{i as put,m as remove}; | ||
import{fetch as n}from"undici";async function i(e,o,t){return(await n(`${process.env.VERCEL_BLOB_API_URL||"https://blob-staging.vercel-storage.com"}/${e}`,{method:"PUT",body:o,headers:{authorization:`Bearer ${r(t)}`},duplex:"half"})).json()}async function m(e,o){return await Promise.resolve({blobUrl:e,delOptions:o}),!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{i as put,m as remove}; |
{ | ||
"name": "@vercel/blob", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"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
5674