@vercel/blob
Advanced tools
Comparing version 0.12.4 to 0.12.5
@@ -173,3 +173,3 @@ import { | ||
const { handleUploadUrl, pathname } = options; | ||
const url = isAbsoluteUrl(handleUploadUrl) ? handleUploadUrl : `${window.location.origin}${handleUploadUrl}`; | ||
const url = isAbsoluteUrl(handleUploadUrl) ? handleUploadUrl : toAbsoluteUrl(handleUploadUrl); | ||
const event = { | ||
@@ -197,2 +197,5 @@ type: EventTypes.generateClientToken, | ||
} | ||
function toAbsoluteUrl(url) { | ||
return new URL(url, window.location.href).href; | ||
} | ||
function isAbsoluteUrl(url) { | ||
@@ -199,0 +202,0 @@ try { |
{ | ||
"name": "@vercel/blob", | ||
"version": "0.12.4", | ||
"version": "0.12.5", | ||
"description": "The Vercel Blob JavaScript API client", | ||
@@ -5,0 +5,0 @@ "homepage": "https://vercel.com/storage/blob", |
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
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
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
128560
1121