@audiotool/nexus 0.0.7 → 0.0.9

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.
@@ -0,0 +1,22 @@
1
+ const a = (t) => {
2
+ throw t instanceof Error ? t : new Error(t);
3
+ };
4
+ function i(t, r) {
5
+ if (!t)
6
+ throw new Error(r ?? "assertion failed");
7
+ }
8
+ const o = (t) => new Promise((r) => setTimeout(r, t)), w = (t, r, s) => {
9
+ let n = !1;
10
+ return (async () => {
11
+ for (; !n; )
12
+ await t(), await o(r);
13
+ })(), {
14
+ terminate: () => n = !0
15
+ };
16
+ };
17
+ export {
18
+ i as a,
19
+ w as b,
20
+ o as s,
21
+ a as t
22
+ };
package/dist/utils.js CHANGED
@@ -5,7 +5,7 @@ var f = (e, t, s) => t.has(e) || h("Cannot " + s);
5
5
  var r = (e, t, s) => (f(e, t, "read from private field"), s ? s.call(e) : t.get(e)), n = (e, t, s) => t.has(e) ? h("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s);
6
6
  import { N as u } from "./observable-notifier-value-pw47I_2-.js";
7
7
  import { A as E, H as T, M as A, V as B } from "./observable-notifier-value-pw47I_2-.js";
8
- import { t as N } from "./lang-KJQpoj7q.js";
8
+ import { t as N } from "./lang-BqPY1uAS.js";
9
9
  const d = 15360, c = {
10
10
  /** How many ticks pass in "1 whole note" or 4x1/4th notes in a 4/4th beat, independent of tempo. */
11
11
  SemiBreve: d,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audiotool/nexus",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Audiotool Nexus SDK",
@@ -72,6 +72,7 @@
72
72
  "typescript": "^5.0.0",
73
73
  "vite": "^6.0.0",
74
74
  "vite-plugin-dts": "^3.0.0",
75
+ "vite-tsconfig-paths": "^6.0.1",
75
76
  "vitest": "^3.2.4"
76
77
  },
77
78
  "dependencies": {
@@ -1,13 +0,0 @@
1
- const t = (r) => {
2
- throw r instanceof Error ? r : new Error(r);
3
- };
4
- function n(r, o) {
5
- if (!r)
6
- throw new Error(o ?? "assertion failed");
7
- }
8
- const s = (r) => new Promise((o) => setTimeout(o, r));
9
- export {
10
- n as a,
11
- s,
12
- t
13
- };