mage-engine 3.23.31 → 3.23.32

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.
Files changed (2) hide show
  1. package/dist/mage.js +19 -1
  2. package/package.json +1 -1
package/dist/mage.js CHANGED
@@ -55829,6 +55829,12 @@ var resolveSinglePath = function resolveSinglePath(path) {
55829
55829
  if (baseUrl) {
55830
55830
  var cleanPath = path.startsWith("/") ? path.slice(1) : path;
55831
55831
  return "".concat(baseUrl, "/").concat(cleanPath);
55832
+ } // Warn if path contains colon (could be mistaken for protocol) and no base URL is set
55833
+
55834
+
55835
+ if (path && path.includes(":") && !path.startsWith("/")) {
55836
+ console.warn("[Mage] Asset path \"".concat(path, "\" contains a colon but MAGE_ASSETS_BASE_URL is not set. ") + "This may cause the browser to interpret it as a protocol scheme. " + "Prepending \"./\" to make it a relative path.");
55837
+ return "./".concat(path);
55832
55838
  }
55833
55839
 
55834
55840
  return path;
@@ -58426,7 +58432,7 @@ function applyMiddleware() {
58426
58432
 
58427
58433
  var thunk = createThunkMiddleware();
58428
58434
  thunk.withExtraArgument = createThunkMiddleware;var name = "mage-engine";
58429
- var version$1 = "3.23.31";
58435
+ var version$1 = "3.23.32";
58430
58436
  var description = "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.";
58431
58437
  var main = "dist/mage.js";
58432
58438
  var author$1 = {
@@ -70396,6 +70402,12 @@ var resolveAssetPath$1 = function resolveAssetPath(path) {
70396
70402
  // Remove leading slash from path if present to avoid double slashes
70397
70403
  var cleanPath = path.startsWith("/") ? path.slice(1) : path;
70398
70404
  return "".concat(baseUrl, "/").concat(cleanPath);
70405
+ } // Warn if path contains colon (could be mistaken for protocol) and no base URL is set
70406
+
70407
+
70408
+ if (path && path.includes(":") && !path.startsWith("/")) {
70409
+ console.warn("[Mage] Asset path \"".concat(path, "\" contains a colon but MAGE_ASSETS_BASE_URL is not set. ") + "This may cause the browser to interpret it as a protocol scheme. " + "Prepending \"./\" to make it a relative path.");
70410
+ return "./".concat(path);
70399
70411
  } // Fallback: return the path as-is (for backwards compatibility)
70400
70412
 
70401
70413
 
@@ -80990,6 +81002,12 @@ var resolveAssetPath = function resolveAssetPath(path) {
80990
81002
  // Remove leading slash from path if present to avoid double slashes
80991
81003
  var cleanPath = path.startsWith("/") ? path.slice(1) : path;
80992
81004
  return "".concat(baseUrl, "/").concat(cleanPath);
81005
+ } // Warn if path contains colon (could be mistaken for protocol) and no base URL is set
81006
+
81007
+
81008
+ if (path && path.includes(":") && !path.startsWith("/")) {
81009
+ console.warn("[Mage] Asset path \"".concat(path, "\" contains a colon but MAGE_ASSETS_BASE_URL is not set. ") + "This may cause the browser to interpret it as a protocol scheme. " + "Prepending \"./\" to make it a relative path.");
81010
+ return "./".concat(path);
80993
81011
  } // Fallback: return the path as-is (for backwards compatibility)
80994
81012
 
80995
81013
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mage-engine",
3
- "version": "3.23.31",
3
+ "version": "3.23.32",
4
4
  "description": "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.",
5
5
  "main": "dist/mage.js",
6
6
  "author": {