hyperclayjs 1.3.0 → 1.3.1

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/hyperclay.js +3 -4
  2. package/package.json +1 -1
package/hyperclay.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * HyperclayJS v1.3.0 - Minimal Browser-Native Loader
2
+ * HyperclayJS v1.3.1 - Minimal Browser-Native Loader
3
3
  *
4
4
  * Modules self-export to window.hyperclay when imported.
5
5
  * Modules auto-init when imported (no separate init call needed).
@@ -123,9 +123,8 @@ const PRESETS = {
123
123
  }
124
124
  };
125
125
 
126
- // Parse URL
127
- const script = document.currentScript;
128
- const url = new URL(script.src);
126
+ // Parse URL (use import.meta.url for ES modules since document.currentScript is null)
127
+ const url = new URL(import.meta.url);
129
128
  const preset = url.searchParams.get('preset');
130
129
  const features = url.searchParams.get('features');
131
130
  const exclude = url.searchParams.get('exclude');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperclayjs",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Modular JavaScript library for building interactive HTML applications with Hyperclay",
5
5
  "type": "module",
6
6
  "main": "hyperclay.js",