@vue-pdf-viewer/viewer 2.1.2-rc.3 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4052,7 +4052,7 @@ class dZ {
4052
4052
  }
4053
4053
  }
4054
4054
  }
4055
- const Ul = dZ.getInstance(), ot = /* @__PURE__ */ new Date("2025-02-07T09:01:38.952Z"), uF = "Please visit https://www.vue-pdf-viewer.dev/license-management/ to generate a new license key.", WZ = {
4055
+ const Ul = dZ.getInstance(), ot = /* @__PURE__ */ new Date("2025-02-10T06:49:24.052Z"), uF = "Please visit https://www.vue-pdf-viewer.dev/license-management/ to generate a new license key.", WZ = {
4056
4056
  invalidLicense: `You are currently using without a valid license. ${uF}`,
4057
4057
  mismatchedDomain: `Your license key is not valid for the current domain / IP. ${uF}`,
4058
4058
  expired: `Your license key has expired. ${uF}`,
@@ -4271,10 +4271,7 @@ function dV(l, Z = !0) {
4271
4271
  async function eF(l, Z = !1) {
4272
4272
  try {
4273
4273
  const U = await fetch(l, Z ? void 0 : { method: "HEAD" });
4274
- if (!U.ok)
4275
- return Ul.error("Invalid URL: The resource could not be fetched."), !1;
4276
- const F = Z ? (await U.blob()).type : U.headers.get("content-type");
4277
- return F !== "application/pdf" && Ul.warn(`The resource content type is ${F}.`), !0;
4274
+ return U.ok ? ((Z ? (await U.blob()).type : U.headers.get("content-type")) !== "application/pdf", !0) : (Ul.error("Invalid URL: The resource could not be fetched."), !1);
4278
4275
  } catch (U) {
4279
4276
  return Ul.error(`Error fetching ${Z ? "Blob URL" : "PDF source URL"}:`, U.message), !1;
4280
4277
  }