mage-engine 3.23.31 → 3.23.34

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 +20 -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.34";
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 = {
@@ -62929,6 +62935,7 @@ var Element$1 = /*#__PURE__*/function (_Entity) {
62929
62935
  texture.wrapT = textureOptions.wrap;
62930
62936
  texture.repeat.set(textureOptions.repeat.x, textureOptions.repeat.y);
62931
62937
  material[textureType] = texture;
62938
+ material.needsUpdate = true;
62932
62939
  };
62933
62940
 
62934
62941
  applyMaterialChange(this.getBody(), applyTextureTo);
@@ -70396,6 +70403,12 @@ var resolveAssetPath$1 = function resolveAssetPath(path) {
70396
70403
  // Remove leading slash from path if present to avoid double slashes
70397
70404
  var cleanPath = path.startsWith("/") ? path.slice(1) : path;
70398
70405
  return "".concat(baseUrl, "/").concat(cleanPath);
70406
+ } // Warn if path contains colon (could be mistaken for protocol) and no base URL is set
70407
+
70408
+
70409
+ if (path && path.includes(":") && !path.startsWith("/")) {
70410
+ 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.");
70411
+ return "./".concat(path);
70399
70412
  } // Fallback: return the path as-is (for backwards compatibility)
70400
70413
 
70401
70414
 
@@ -80990,6 +81003,12 @@ var resolveAssetPath = function resolveAssetPath(path) {
80990
81003
  // Remove leading slash from path if present to avoid double slashes
80991
81004
  var cleanPath = path.startsWith("/") ? path.slice(1) : path;
80992
81005
  return "".concat(baseUrl, "/").concat(cleanPath);
81006
+ } // Warn if path contains colon (could be mistaken for protocol) and no base URL is set
81007
+
81008
+
81009
+ if (path && path.includes(":") && !path.startsWith("/")) {
81010
+ 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.");
81011
+ return "./".concat(path);
80993
81012
  } // Fallback: return the path as-is (for backwards compatibility)
80994
81013
 
80995
81014
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mage-engine",
3
- "version": "3.23.31",
3
+ "version": "3.23.34",
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": {