@vercel/blob
Advanced tools
Comparing version
@@ -17,7 +17,2 @@ import { | ||
return function extraChecks(options) { | ||
if (typeof window === "undefined") { | ||
throw new BlobError( | ||
`${methodName} must be called from a client environment` | ||
); | ||
} | ||
if (!options.token.startsWith("vercel_blob_client_")) { | ||
@@ -64,7 +59,2 @@ throw new BlobError(`${methodName} must be called with a client token`); | ||
extraChecks(options) { | ||
if (typeof window === "undefined") { | ||
throw new BlobError( | ||
"client/`upload` must be called from a client environment" | ||
); | ||
} | ||
if (options.handleUploadUrl === void 0) { | ||
@@ -71,0 +61,0 @@ throw new BlobError( |
{ | ||
"name": "@vercel/blob", | ||
"version": "0.27.0", | ||
"version": "0.27.1-0372ed96-20250113161609", | ||
"description": "The Vercel Blob JavaScript API client", | ||
@@ -60,5 +60,5 @@ "homepage": "https://vercel.com/storage/blob", | ||
"@types/async-retry": "1.4.9", | ||
"@types/bytes": "3.1.4", | ||
"@types/bytes": "3.1.5", | ||
"@types/jest": "29.5.14", | ||
"@types/node": "22.9.4", | ||
"@types/node": "22.10.2", | ||
"eslint": "8.56.0", | ||
@@ -65,0 +65,0 @@ "jest": "29.7.0", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
-50%395070
-0.18%3821
-0.52%