@vercel/blob
Advanced tools
Comparing version 0.0.8 to 0.1.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5706
29
6