@xcodekit/xcode-wasm 0.6.2 → 0.6.3

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.
package/node-wrapper.mjs CHANGED
@@ -6,10 +6,12 @@
6
6
  */
7
7
 
8
8
  import { readFileSync, writeFileSync } from "fs";
9
+ import { fileURLToPath } from "url";
9
10
  import * as wasm from "./xcode.js";
10
- import wasmModule from "./xcode_bg.wasm";
11
11
 
12
- await wasm.default(wasmModule);
12
+ const wasmPath = fileURLToPath(new URL("./xcode_bg.wasm", import.meta.url));
13
+ const wasmBytes = readFileSync(wasmPath);
14
+ await wasm.default({ module_or_path: wasmBytes });
13
15
 
14
16
  class XcodeProject extends wasm.XcodeProject {
15
17
  /** @type {string | null} */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@xcodekit/xcode-wasm",
3
3
  "type": "module",
4
4
  "description": "Parse, manipulate, and serialize Xcode .pbxproj files (WASM build)",
5
- "version": "0.6.2",
5
+ "version": "0.6.3",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "xcode_bg.wasm",
package/xcode_bg.wasm CHANGED
Binary file