sigurd-startup 2.2.5 → 2.2.7

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.
@@ -24383,23 +24383,25 @@ const KN = !1, QN = () => {
24383
24383
  try {
24384
24384
  const c = document.querySelectorAll('script[src*="sigurd-startup"]');
24385
24385
  if (c.length > 0) {
24386
- const h = c[0].src, y = h.substring(0, h.lastIndexOf("/"));
24387
- return console.log("Found package via script src:", y), y;
24388
- }
24389
- const a = new Image(), l = "/node_modules/sigurd-startup/dist/assets/test.png";
24390
- a.onerror = () => {
24391
- console.log("Trying relative path for assets");
24392
- }, a.src = l;
24393
- const f = window.location.pathname;
24394
- if (f.includes("node_modules")) {
24395
- const h = f.indexOf("node_modules"), y = f.indexOf("sigurd-startup", h);
24396
- if (y !== -1) {
24397
- const v = f.substring(0, y + 14);
24398
- return console.log("Found package via path analysis:", v), v + "/dist";
24399
- }
24400
- }
24401
- if (window.location.port === "5173" || window.location.hostname === "localhost")
24402
- return console.log("Detected Vite dev server, using relative paths"), "/node_modules/sigurd-startup/dist";
24386
+ const f = c[0].src, h = f.substring(0, f.lastIndexOf("/"));
24387
+ if (console.log("Found package via script src:", h), h.includes("/dist")) {
24388
+ const v = `${h.substring(0, h.lastIndexOf("/dist"))}/node_modules/sigurd-startup/dist`;
24389
+ return console.log("Constructed node_modules path from Vite dist:", v), v;
24390
+ }
24391
+ return h;
24392
+ }
24393
+ const a = window.location.href, l = window.location.pathname;
24394
+ if (a.includes("localhost") && l.includes("/game")) {
24395
+ const h = `${window.location.origin}/node_modules/sigurd-startup/dist`;
24396
+ return console.log("Constructed package path for Vite dev server:", h), h;
24397
+ }
24398
+ if (l.includes("node_modules")) {
24399
+ const f = l.indexOf("node_modules"), h = l.indexOf("sigurd-startup", f);
24400
+ if (h !== -1) {
24401
+ const y = l.substring(0, h + 14);
24402
+ return console.log("Found package via path analysis:", y), y + "/dist";
24403
+ }
24404
+ }
24403
24405
  } catch {
24404
24406
  console.warn("Could not determine package location, using fallback paths");
24405
24407
  }
@@ -32295,11 +32297,11 @@ const HP = () => {
32295
32297
  }, Al = {
32296
32298
  major: 2,
32297
32299
  minor: 2,
32298
- patch: 5,
32300
+ patch: 7,
32299
32301
  build: 0,
32300
- timestamp: 1755081167206,
32301
- hash: "9AOWH4",
32302
- full: "2.2.5"
32302
+ timestamp: 1755082468456,
32303
+ hash: "NMFY3A",
32304
+ full: "2.2.7"
32303
32305
  }, Hb = Al.full, Xd = () => ({
32304
32306
  version: Hb,
32305
32307
  major: Al.major,