supersonic-scsynth 0.1.4 → 0.1.5

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.
@@ -1607,9 +1607,11 @@ var SuperSonic = class {
1607
1607
  this.onDebugMessage = null;
1608
1608
  this.onInitialized = null;
1609
1609
  this.onError = null;
1610
+ const moduleUrl = new URL(import.meta.url);
1611
+ const basePath = moduleUrl.pathname.includes("/dist/") ? new URL(".", moduleUrl).href : "./dist/";
1610
1612
  this.config = {
1611
- wasmUrl: "./dist/wasm/scsynth-nrt.wasm",
1612
- workletUrl: "./dist/workers/scsynth_audio_worklet.js",
1613
+ wasmUrl: new URL("wasm/scsynth-nrt.wasm", basePath).href,
1614
+ workletUrl: new URL("workers/scsynth_audio_worklet.js", basePath).href,
1613
1615
  development: false,
1614
1616
  audioContextOptions: {
1615
1617
  latencyHint: "interactive",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "wasmFile": "scsynth-nrt.wasm",
3
- "buildId": "20251104-131127",
4
- "buildTime": "2025-11-04T13:11:27Z",
5
- "gitHash": "a6cdc23"
3
+ "buildId": "20251104-221531",
4
+ "buildTime": "2025-11-04T22:15:31Z",
5
+ "gitHash": "451c8a9"
6
6
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supersonic-scsynth",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
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",