@opendaw/lib-fusion 0.0.75 → 0.0.77
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":"Subscribers.d.ts","sourceRoot":"","sources":["../../src/live-stream/Subscribers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,EAAa,YAAY,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAA;AAC9F,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAA;AAIxC,qBAAa,WAAW,CAAC,CAAC,CAAE,YAAW,UAAU;;;IAK7C,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAEpD,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAElC,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,GAAG,YAAY;
|
|
1
|
+
{"version":3,"file":"Subscribers.d.ts","sourceRoot":"","sources":["../../src/live-stream/Subscribers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,EAAa,YAAY,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAA;AAC9F,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAA;AAIxC,qBAAa,WAAW,CAAC,CAAC,CAAE,YAAW,UAAU;;;IAK7C,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAEpD,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAElC,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,GAAG,YAAY;IAoBtD,SAAS,IAAI,IAAI;CACpB"}
|
|
@@ -15,12 +15,13 @@ export class Subscribers {
|
|
|
15
15
|
}
|
|
16
16
|
return {
|
|
17
17
|
terminate: () => {
|
|
18
|
-
this.#subscribers.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const entry = this.#subscribers.removeByKeyIfExist(address);
|
|
19
|
+
if (isDefined(entry)) {
|
|
20
|
+
Arrays.removeOpt(entry.listeners, listener);
|
|
21
|
+
if (entry.listeners.length > 0) {
|
|
22
|
+
this.#subscribers.add(entry);
|
|
22
23
|
}
|
|
23
|
-
}
|
|
24
|
+
}
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpfsWorker.d.ts","sourceRoot":"","sources":["../../src/opfs/OpfsWorker.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAE,SAAS,EAAW,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAE3C,yBAAiB,UAAU,CAAC;IAGjB,MAAM,IAAI,GAAI,WAAW,SAAS;;oBAIf,MAAM,QAAQ,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;mBAkBzC,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;qBAe1B,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"OpfsWorker.d.ts","sourceRoot":"","sources":["../../src/opfs/OpfsWorker.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAE,SAAS,EAAW,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAE3C,yBAAiB,UAAU,CAAC;IAGjB,MAAM,IAAI,GAAI,WAAW,SAAS;;oBAIf,MAAM,QAAQ,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;mBAkBzC,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;qBAe1B,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;mBAUxB,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;iBAWrD,OAAO,CAAC,IAAI,CAAC;kCAWT,CAAC,QAAQ,MAAM,aAAa,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;wCAqBnD,MAAM,YAAY,6BAA6B,GAAG,OAAO,CAAC,0BAA0B,CAAC;8CAO/E,aAAa,CAAC,MAAM,CAAC,YACrB,6BAA6B,GAAG,OAAO,CAAC,yBAAyB,CAAC;MAKnG,CAAA;CAMT"}
|
package/dist/opfs/OpfsWorker.js
CHANGED
|
@@ -48,8 +48,11 @@ export var OpfsWorker;
|
|
|
48
48
|
if (segments.length === 0) {
|
|
49
49
|
return this.clear();
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
.then(folder => folder.removeEntry(asDefined(segments.at(-1)), { recursive: true }));
|
|
51
|
+
const { status } = await Promises.tryCatch(this.#resolveFolder(segments.slice(0, -1))
|
|
52
|
+
.then(folder => folder.removeEntry(asDefined(segments.at(-1)), { recursive: true })));
|
|
53
|
+
if (status === "rejected") {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
58
|
async list(path) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendaw/lib-fusion",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.77",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "LGPL-3.0-or-later",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"test": "vitest run"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@opendaw/lib-box": "^0.0.
|
|
27
|
-
"@opendaw/lib-dom": "^0.0.
|
|
28
|
-
"@opendaw/lib-runtime": "^0.0.
|
|
29
|
-
"@opendaw/lib-std": "^0.0.
|
|
26
|
+
"@opendaw/lib-box": "^0.0.72",
|
|
27
|
+
"@opendaw/lib-dom": "^0.0.73",
|
|
28
|
+
"@opendaw/lib-runtime": "^0.0.69",
|
|
29
|
+
"@opendaw/lib-std": "^0.0.68"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@opendaw/eslint-config": "^0.0.27",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"jsdom": "^25.0.1",
|
|
35
35
|
"vitest": "^2.1.8"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "5e97da8bbe6085b04c34b9ff7e816b22225bf915"
|
|
38
38
|
}
|