@opendaw/studio-core 0.0.136 → 0.0.137

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.
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalSampleLoaderManager.d.ts","sourceRoot":"","sources":["../../src/samples/GlobalSampleLoaderManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAA2B,UAAU,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAA;AAEzG,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAA;AAC1F,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAA;AAuB1C,qBAAa,yBAA0B,YAAW,mBAAmB,EAAE,cAAc;;gBAOrE,QAAQ,EAAE,cAAc;IAQpC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IAIzF,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI;IAO9B,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI;IAWlC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,UAAU;IAuBtC,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;IAIlC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,YAAY;IAQrC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC;CA8E3D"}
1
+ {"version":3,"file":"GlobalSampleLoaderManager.d.ts","sourceRoot":"","sources":["../../src/samples/GlobalSampleLoaderManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAA2B,UAAU,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAA;AAEzG,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAA;AAC1F,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAA;AAuB1C,qBAAa,yBAA0B,YAAW,mBAAmB,EAAE,cAAc;;gBAOrE,QAAQ,EAAE,cAAc;IAQpC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IAIzF,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI;IAO9B,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI;IAWlC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,UAAU;IAuBtC,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;IAIlC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,YAAY;IAQrC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC;CA4E3D"}
@@ -108,14 +108,12 @@ export class GlobalSampleLoaderManager {
108
108
  return;
109
109
  }
110
110
  const promise = SampleStorage.get().load(uuid).then(([data, peaks, meta]) => {
111
- this.#pending.removeByKey(uuid);
112
111
  this.#cache.add({ uuid, data, peaks, meta });
113
112
  loader.setLoaded(data, peaks, meta);
114
- }, () => this.#fetchFromApi(loader).finally(() => this.#pending.removeByKey(uuid))).catch((error) => {
115
- this.#pending.removeByKey(uuid);
113
+ }, () => this.#fetchFromApi(loader)).catch((error) => {
116
114
  console.warn("Unexpected error loading sample:", error);
117
115
  loader.setError(error instanceof Error ? error.message : String(error));
118
- });
116
+ }).finally(() => this.#pending.removeByKey(uuid));
119
117
  this.#pending.add({ uuid, promise });
120
118
  }
121
119
  async #fetchFromApi(loader) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendaw/studio-core",
3
- "version": "0.0.136",
3
+ "version": "0.0.137",
4
4
  "license": "LGPL-3.0-or-later",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -33,17 +33,17 @@
33
33
  "test": "vitest run --config vitest.config.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@opendaw/lib-box": "^0.0.82",
36
+ "@opendaw/lib-box": "^0.0.83",
37
37
  "@opendaw/lib-dawproject": "^0.0.67",
38
38
  "@opendaw/lib-dom": "^0.0.80",
39
39
  "@opendaw/lib-dsp": "^0.0.81",
40
- "@opendaw/lib-fusion": "^0.0.89",
40
+ "@opendaw/lib-fusion": "^0.0.90",
41
41
  "@opendaw/lib-midi": "^0.0.63",
42
42
  "@opendaw/lib-runtime": "^0.0.76",
43
43
  "@opendaw/lib-std": "^0.0.75",
44
44
  "@opendaw/nam-wasm": "^1.0.3",
45
- "@opendaw/studio-adapters": "^0.0.105",
46
- "@opendaw/studio-boxes": "^0.0.87",
45
+ "@opendaw/studio-adapters": "^0.0.106",
46
+ "@opendaw/studio-boxes": "^0.0.88",
47
47
  "@opendaw/studio-enums": "^0.0.72",
48
48
  "dropbox": "^10.34.0",
49
49
  "y-websocket": "^1.4.5",
@@ -58,10 +58,10 @@
58
58
  "@ffmpeg/ffmpeg": "^0.12.15",
59
59
  "@ffmpeg/util": "^0.12.2",
60
60
  "@opendaw/eslint-config": "^0.0.27",
61
- "@opendaw/studio-core-processors": "^0.0.110",
62
- "@opendaw/studio-core-workers": "^0.0.100",
63
- "@opendaw/studio-forge-boxes": "^0.0.87",
61
+ "@opendaw/studio-core-processors": "^0.0.111",
62
+ "@opendaw/studio-core-workers": "^0.0.101",
63
+ "@opendaw/studio-forge-boxes": "^0.0.88",
64
64
  "@opendaw/typescript-config": "^0.0.29"
65
65
  },
66
- "gitHead": "dd45e194927d1ef871943289e177e55c45503d56"
66
+ "gitHead": "f1e165645318e34365685eca48d4daa84e6ebb6a"
67
67
  }