mhx 2026.1.1 → 2026.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.
Files changed (2) hide show
  1. package/dist/mhx_ffi.js +2 -1
  2. package/package.json +2 -2
package/dist/mhx_ffi.js CHANGED
@@ -487,7 +487,8 @@ export function submit_event_has_submitter(event) {
487
487
  // ============================================================================
488
488
 
489
489
  export function fetch(url, optionsJson) {
490
- const options = JSON.parse(optionsJson);
490
+ const options =
491
+ typeof optionsJson === "string" ? JSON.parse(optionsJson) : optionsJson;
491
492
  return window.fetch(url, options);
492
493
  }
493
494
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "mhx",
3
- "version": "2026.1.1",
3
+ "version": "2026.1.2",
4
4
  "type": "module",
5
5
  "exports": "./npm/index.js",
6
6
  "files": [
7
7
  "dist",
8
8
  "npm",
9
9
  "LICENSE",
10
- "README.mbt.md"
10
+ "README.md"
11
11
  ],
12
12
  "scripts": {
13
13
  "build:moon": "moon fmt && moon check && moon test && moon build --target js",