supersonic-scsynth 0.1.6 → 0.1.7

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.
@@ -1609,6 +1609,7 @@ var SuperSonic = class {
1609
1609
  this.onError = null;
1610
1610
  const moduleUrl = new URL(import.meta.url);
1611
1611
  const basePath = new URL(".", moduleUrl).href;
1612
+ this.basePath = basePath;
1612
1613
  this.config = {
1613
1614
  wasmUrl: new URL("wasm/scsynth-nrt.wasm", basePath).href,
1614
1615
  workletUrl: new URL("workers/scsynth_audio_worklet.js", basePath).href,
@@ -1733,12 +1734,12 @@ var SuperSonic = class {
1733
1734
  */
1734
1735
  async #loadWasmManifest() {
1735
1736
  try {
1736
- const manifestUrl = "./dist/wasm/manifest.json";
1737
+ const manifestUrl = new URL("wasm/manifest.json", this.basePath).href;
1737
1738
  const response = await fetch(manifestUrl);
1738
1739
  if (response.ok) {
1739
1740
  const manifest = await response.json();
1740
1741
  const wasmFile = this.config.development ? manifest.wasmFile : manifest.wasmFileStable;
1741
- this.config.wasmUrl = `./dist/wasm/${wasmFile}`;
1742
+ this.config.wasmUrl = new URL(`wasm/${wasmFile}`, this.basePath).href;
1742
1743
  console.log(`[SuperSonic] Using WASM build: ${wasmFile}`);
1743
1744
  console.log(`[SuperSonic] Build: ${manifest.buildId} (git: ${manifest.gitHash})`);
1744
1745
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "wasmFile": "scsynth-nrt.wasm",
3
- "buildId": "20251104-223619",
4
- "buildTime": "2025-11-04T22:36:19Z",
5
- "gitHash": "8d803de"
3
+ "buildId": "20251104-224940",
4
+ "buildTime": "2025-11-04T22:49:40Z",
5
+ "gitHash": "2f2f43b"
6
6
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supersonic-scsynth",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "SuperCollider scsynth WebAssembly port for AudioWorklet - Run SuperCollider synthesis in the browser",
5
5
  "main": "dist/supersonic.js",
6
6
  "unpkg": "dist/supersonic.js",