@menapo/vi18n 0.1.1 → 0.2.0

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.
Files changed (121) hide show
  1. package/README.md +19 -0
  2. package/dist/{apply-Bre-lY9J.js → apply-Bg-3rB2m.js} +69 -89
  3. package/dist/{captured-Bj8bO6vd.js → captured-DfLk50Ji.js} +196 -217
  4. package/dist/{check-BIKEuu6B.js → check-CunekuYs.js} +76 -85
  5. package/dist/cli.js +2 -3
  6. package/dist/{collect-Cx4_SKOe.js → collect-CYATDjdo.js} +1 -2
  7. package/dist/collisions-CDSdtLQm.js +215 -0
  8. package/dist/{compile-Cc97JaW2.js → compile-DqkofbiO.js} +376 -331
  9. package/dist/compile-hva0qjhZ.js +240 -0
  10. package/dist/concurrency-BCY_4zcr.js +1 -0
  11. package/dist/concurrency-Dy2ny50V.js +107 -0
  12. package/dist/config.d.ts +1 -5
  13. package/dist/config.js +4 -5
  14. package/dist/{types-D3QGM8XO.js → diagnostics-LgIWyeSp.js} +28 -27
  15. package/dist/{dir-zw6bGMKQ.js → dir-TGLYuOZb.js} +34 -37
  16. package/dist/{duplicates-yuRljQ6h.js → duplicates-8cudcHNj.js} +10 -27
  17. package/dist/engine-ecRD8-IE.js +556 -0
  18. package/dist/engine.d.ts +1 -5
  19. package/dist/engine.js +297 -168
  20. package/dist/exchange-DjwlrTQ9.js +41 -0
  21. package/dist/{exclude-Du-Zd_qI.js → exclude-BFETmvde.js} +2 -3
  22. package/dist/{export-C9Sy6UWv.js → export-D2tsqWIr.js} +17 -38
  23. package/dist/{extract-C3S8btx0.js → extract-BxYchVmY.js} +114 -82
  24. package/dist/{formats-9unqj_fZ.js → formats-BaryZ2N7.js} +352 -276
  25. package/dist/fs-ezCMZeDV.js +52 -0
  26. package/dist/i18next-COO6o0tX.js +1907 -0
  27. package/dist/i18next-Dr7DCQlQ.js +1 -0
  28. package/dist/{import-nANvQutw.js → import-vSC29Cn4.js} +81 -75
  29. package/dist/index.d.ts +1 -13
  30. package/dist/index.js +14 -16
  31. package/dist/{init-C2ScuW6a.js → init-Cc7A-8VX.js} +466 -501
  32. package/dist/{library-D5CWvTQs.js → library-tp_xqzSY.js} +975 -451
  33. package/dist/lingui-BnnlqGXT.js +902 -0
  34. package/dist/lint.d.ts +0 -4
  35. package/dist/lint.js +70 -82
  36. package/dist/{load-gW-oJt1Q.js → load-BSIeGJ5v.js} +275 -148
  37. package/dist/{load-CQRz4PpM.js → load-SSrAeJVB.js} +1214 -1116
  38. package/dist/{locales-DX4MOBFE.js → locales-D0U-yVRm.js} +271 -237
  39. package/dist/{lsp-RMMMc88P.js → lsp-DvC11pBZ.js} +4 -5
  40. package/dist/{match-BGr8EXB3.js → match-BLDcj610.js} +11 -4
  41. package/dist/{mcp-CHVwBoRP.js → mcp-D2zzOTBy.js} +4 -5
  42. package/dist/{merge-driver-BTX87aVm.js → merge-driver-BLI8OtAc.js} +138 -122
  43. package/dist/migrate-1r43OBfe.js +1 -0
  44. package/dist/migrate-ChDGhlC-.js +2169 -0
  45. package/dist/{openai-CTaMDcl-.js → openai-CLn4puY8.js} +128 -87
  46. package/dist/{output-DWE3SIUA.js → output-D5tAt8q4.js} +15 -9
  47. package/dist/parse.d.ts +1 -3
  48. package/dist/parse.js +7 -8
  49. package/dist/{pipeline-C9Dbotkh.js → pipeline-BJSkkRYC.js} +387 -359
  50. package/dist/{pipeline-DbX6rlo5.js → pipeline-BeCc441z.js} +1 -1
  51. package/dist/project-B5KIO0q-.js +544 -0
  52. package/dist/{pseudo-DRv30iN5.js → pseudo-B2DUpoLu.js} +126 -3
  53. package/dist/{raw-C4Y6vyGY.js → raw-YsYZMS9n.js} +52 -29
  54. package/dist/react-intl-C8JehBBL.js +634 -0
  55. package/dist/rename-ZVGq9ZG1.js +577 -0
  56. package/dist/repeated-uuI1tUGg.js +85 -0
  57. package/dist/restore-xlBIrtRt.js +199 -0
  58. package/dist/rewrite-BwzXoBiA.js +415 -0
  59. package/dist/{rich-DCUKl5HM.js → rich-ApY1Dm4S.js} +35 -28
  60. package/dist/rolldown-runtime-C1I3wEg2.js +43 -0
  61. package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  62. package/dist/run-CQ9pDLSa.js +674 -0
  63. package/dist/scan-worker.d.ts +2 -4
  64. package/dist/scan-worker.js +1 -1
  65. package/dist/{scoped-BMYpSthj.js → scoped-h3KE8XWW.js} +3 -4
  66. package/dist/{server-Da1Ot9IN.js → server-Br8tAuG2.js} +312 -386
  67. package/dist/{server-deBOq2vq.js → server-DJRpUQVZ.js} +1059 -333
  68. package/dist/server.d.ts +1 -17
  69. package/dist/server.js +419 -379
  70. package/dist/{sitemap-DJXzKoza.js → sitemap-CSAkm6oi.js} +21 -33
  71. package/dist/{sources-D19czDSA.js → sources-DNVbYsgs.js} +713 -373
  72. package/dist/{status-zr4jY59Y.js → status-q6M3rBrh.js} +30 -30
  73. package/dist/{stdio-FPOKQAgu.js → stdio-D9kTzyqB.js} +2 -4
  74. package/dist/{stdio-CVaJfxA7.js → stdio-FWIVU3P4.js} +1 -2
  75. package/dist/sync-BNIAwMhR.js +1352 -0
  76. package/dist/{t-DC-c9zE5.js → t-gvEXx25s.js} +76 -53
  77. package/dist/test.d.ts +5 -16
  78. package/dist/test.js +126 -56
  79. package/dist/translate-BP4iVhOR.js +336 -0
  80. package/dist/{ts-BaU5yOf0.js → ts-BX6kwig5.js} +25 -14
  81. package/dist/{types-DtvQ7UdD.js → types-3kwyaCAm.js} +1 -2
  82. package/dist/{types-DsdWBG0b.d.ts → types-B4wNX6PA.d.ts} +6 -8
  83. package/dist/{types-CgUCkFU1.d.ts → types-_4UdFhR9.d.ts} +24 -21
  84. package/dist/types-xR2exI3L.js +42 -0
  85. package/dist/{units-CQ5Q99RC.js → units-DPPfCN7j.js} +7 -16
  86. package/dist/{url-CRfCOhUI.js → url-Bpc6wLea.js} +24 -11
  87. package/dist/{url-CsBkRaJy.js → url-D2_VlEeH.js} +25 -12
  88. package/dist/{validate-BxpupdAf.js → validate-CgzaDdOY.js} +690 -377
  89. package/dist/{validate-D6DJepZv.js → validate-PGgMsasz.js} +3 -5
  90. package/dist/{version-Byqi2guX.js → version-DC-J5WvV.js} +3 -5
  91. package/dist/{vite-scan-CT_vsp4g.js → vite-scan-kM8Ta3rO.js} +87 -92
  92. package/dist/vite.d.ts +2 -6
  93. package/dist/vite.js +6500 -6032
  94. package/dist/vue-i18n-_uIXlFVh.js +806 -0
  95. package/dist/{which-BOemZ5Q8.js → which-DFWk_KwN.js} +44 -37
  96. package/dist/{worker-84U6uYB3.js → worker-zlhNj4y3.js} +454 -608
  97. package/package.json +5 -5
  98. package/dist/check-HsmmpJZg.js +0 -1
  99. package/dist/codec-DuvU2VQy.js +0 -207
  100. package/dist/collisions-CfpZU8e4.js +0 -217
  101. package/dist/compile-BaDh0cHG.js +0 -245
  102. package/dist/concurrency-C9UUWuDC.js +0 -96
  103. package/dist/concurrency-DONL7t4V.js +0 -1
  104. package/dist/engine-C2ENBRJe.js +0 -531
  105. package/dist/i18next-9HAoxwUI.js +0 -1
  106. package/dist/i18next-BEJgv_S8.js +0 -1596
  107. package/dist/lingui-zUiCl9Um.js +0 -833
  108. package/dist/messages-BfjIExyB.js +0 -166
  109. package/dist/migrate-IpLDMXmq.js +0 -1484
  110. package/dist/migrate-rCQuOGsf.js +0 -1
  111. package/dist/project-Bw9UPIdx.js +0 -1046
  112. package/dist/project-C4GpaN-n.js +0 -381
  113. package/dist/react-intl-BP0u-D5m.js +0 -519
  114. package/dist/restore-CiYv-jxS.js +0 -175
  115. package/dist/rewrite-EsIw_lsq.js +0 -803
  116. package/dist/run-BEcnBbu-.js +0 -694
  117. package/dist/runtime-DTMmliT1.js +0 -64
  118. package/dist/sync-B9V2KFwb.js +0 -658
  119. package/dist/translate-CQnJfLjO.js +0 -299
  120. package/dist/types-wSh9fCBY.js +0 -11
  121. package/dist/vue-i18n-g0iGy6CZ.js +0 -651
@@ -1,245 +0,0 @@
1
- import { i as toRuntimeConfig } from "./runtime-DTMmliT1.js";
2
- import { a as assetCatalogsModule, i as SERVER_FILES, o as serverCatalogVersion, s as serverCatalogsDir, t as compileLocales } from "./locales-DX4MOBFE.js";
3
- import { t as findCollisions } from "./collisions-CfpZU8e4.js";
4
- import { a as table, i as rootRelative, r as plural } from "./output-DWE3SIUA.js";
5
- import { t as EXIT } from "./types-wSh9fCBY.js";
6
- import { a as loadCatalogs, f as scan, i as hasErrors, n as compareText, o as loadProject, r as computeDrift, s as occurrencesOf, u as readErrors } from "./project-C4GpaN-n.js";
7
- import { dirname, join, resolve } from "node:path";
8
- import { randomBytes } from "node:crypto";
9
- import { mkdir, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
10
- //#region src/cli/commands/compile.ts
11
- /**
12
- * `vi18n compile [--out dir] [--assets dir] [--strict] [--pseudo] [--check]`
13
- * (INTERNALS §2.12, PLAN §5.3): compiled catalogs for code Vite does not
14
- * build (a wrangler Worker, e-mail rendering), loaded with
15
- * `registerCatalogs`. It refuses to run while `extract --check` reports
16
- * drift, so what ships always matches the code. A committed `--out`
17
- * directory can still lag behind the catalogs (a translation edited,
18
- * `extract` run without `compile`): `--check` compares it with what would be
19
- * written, for CI.
20
- *
21
- * `--assets` is the Workers layout of `ssr.catalogs: "assets"` (spike S12):
22
- * the catalogs go to the static-assets directory under the server message
23
- * set's version, and `<out>/catalogs.js` reads them through `env.ASSETS`, so
24
- * the Worker bundles none and only the locales requests use take memory.
25
- */
26
- async function compile(ctx, flags) {
27
- const project = await loadProject(ctx);
28
- const { config, codec } = project;
29
- const data = {
30
- out: null,
31
- assets: null,
32
- files: [],
33
- missing: {},
34
- drift: []
35
- };
36
- const scanned = await scan(project);
37
- ctx.out.report(scanned.diagnostics.filter((d) => d.severity === "error"));
38
- const loaded = await loadCatalogs(project);
39
- const unreadable = readErrors(loaded.diagnostics);
40
- if (unreadable.length > 0) {
41
- ctx.out.report(unreadable);
42
- return {
43
- exitCode: EXIT.failure,
44
- data
45
- };
46
- }
47
- const collided = findCollisions(occurrencesOf(scanned), loaded.set, codec, { referenced: new Set(config.extraction.keep) });
48
- if (hasErrors(collided)) {
49
- ctx.out.report(collided);
50
- return {
51
- exitCode: EXIT.failure,
52
- data
53
- };
54
- }
55
- const refusals = (await computeDrift(project, scanned.messages, loaded.set)).diagnostics.filter((d) => d.code === "catalog-drift" || d.code === "id-scheme-mismatch");
56
- if (refusals.length > 0) {
57
- ctx.out.report(refusals);
58
- ctx.out.note("vi18n compile: the catalogs do not match the code; run vi18n extract first");
59
- return {
60
- exitCode: EXIT.failure,
61
- data
62
- };
63
- }
64
- const pseudo = flags.pseudo ? config.pseudoLocales : [];
65
- const locales = [...config.locales, ...pseudo];
66
- const compiled = compileLocales({
67
- config,
68
- codec,
69
- messages: scanned.messages,
70
- keep: config.extraction.keep,
71
- catalogs: loaded.set,
72
- locales
73
- });
74
- let missingTotal = 0;
75
- for (const locale of config.locales) {
76
- const result = compiled.get(locale);
77
- ctx.out.report(result.diagnostics);
78
- if (locale === config.sourceLocale) continue;
79
- let count = 0;
80
- for (const status of result.status.values()) if (status.state === "missing") count++;
81
- data.missing[locale] = count;
82
- missingTotal += count;
83
- }
84
- if (flags.out !== null) {
85
- const out = resolve(ctx.global.cwd, flags.out);
86
- data.out = rootRelative(config.root, out);
87
- if (!flags.check) await mkdir(out, { recursive: true });
88
- const files = [];
89
- const runtime = toRuntimeConfig(config, {
90
- base: "/",
91
- pseudo: flags.pseudo
92
- });
93
- const assets = flags.assets === null ? null : resolve(ctx.global.cwd, flags.assets);
94
- let version = null;
95
- if (assets === null) for (const locale of locales) {
96
- const messages = compiled.get(locale).messages;
97
- files.push([join(out, `${locale}.json`), bundleJson(messages)]);
98
- }
99
- else {
100
- data.assets = rootRelative(config.root, assets);
101
- version = serverCatalogVersion({
102
- idScheme: codec.idScheme,
103
- v: null,
104
- ids: compiled.get(config.sourceLocale).messages.keys(),
105
- sourceHashOf: (id) => scanned.messages.get(id)?.sourceHash ?? ""
106
- });
107
- for (const locale of locales) {
108
- const messages = compiled.get(locale).messages;
109
- const path = join(assets, serverCatalogsDir(version), locale, SERVER_FILES.catalog);
110
- files.push([path, bundleJson(messages)]);
111
- }
112
- runtime.ssr.maxLoadedLocales = config.ssr.maxLoadedLocales;
113
- }
114
- files.push([join(out, "sources.json"), sourcesJson(scanned.messages)]);
115
- files.push([join(out, "config.json"), JSON.stringify(runtime) + "\n"]);
116
- if (version !== null) {
117
- files.push([join(out, "catalogs.js"), assetCatalogsModule({
118
- locales,
119
- dir: serverCatalogsDir(version),
120
- deploy: `deploy ${flags.assets} (written by vi18n compile --assets) with this Worker`,
121
- modules: "compile without --assets to bundle the catalogs as modules"
122
- })]);
123
- files.push([join(out, "catalogs.d.ts"), CATALOGS_DTS]);
124
- }
125
- const fix = `vi18n compile --out ${flags.out}${assets === null ? "" : ` --assets ${flags.assets}`}${flags.pseudo ? " --pseudo" : ""}`;
126
- for (const [path, content] of files) {
127
- const file = rootRelative(config.root, path);
128
- data.files.push(file);
129
- if (!flags.check) {
130
- await mkdir(dirname(path), { recursive: true });
131
- await writeIfChanged(path, content);
132
- continue;
133
- }
134
- const current = await readIfExists(path);
135
- if (current !== null && current.replace(/\r\n/g, "\n") === content) continue;
136
- data.drift.push(file);
137
- ctx.out.report([{
138
- code: "catalog-drift",
139
- severity: "error",
140
- message: current === null ? `${file} does not exist yet; run ${fix}` : `${file} is out of date; run ${fix}`,
141
- file
142
- }]);
143
- }
144
- if (version !== null && assets !== null && !flags.check) {
145
- const locales = [...config.locales, ...config.pseudoLocales];
146
- const removed = await removeOtherVersions(assets, version, locales);
147
- if (removed > 0) ctx.out.note(`removed ${plural(removed, "earlier catalog version")} from ${ctx.out.display(rootRelative(config.root, join(assets, "vi18n")))}`);
148
- }
149
- }
150
- const where = data.out === null ? "" : ctx.out.display(data.out) + (data.assets === null ? "" : ` and ${ctx.out.display(data.assets)}`);
151
- const rows = Object.entries(data.missing).map(([locale, count]) => [locale, count]);
152
- if (rows.length > 0) ctx.out.result(table(["locale", "missing"], rows));
153
- if (data.out !== null && flags.check) ctx.out.result(data.drift.length > 0 ? `vi18n compile --check: ${data.drift.length} out-of-date file(s) in ${where}` : `vi18n compile --check: ${where} ${data.assets === null ? "is" : "are"} up to date`);
154
- else if (data.out !== null) ctx.out.result(`wrote ${plural(data.files.length, "file")} to ${where}`);
155
- const failed = hasErrors(ctx.out.diagnostics) || flags.strict && missingTotal > 0;
156
- if (flags.strict && missingTotal > 0) ctx.out.note(`vi18n compile --strict: ${plural(missingTotal, "missing translation")}`);
157
- return {
158
- exitCode: failed ? EXIT.failure : EXIT.ok,
159
- data
160
- };
161
- }
162
- /** Types of the generated `catalogs.js` for TypeScript apps (no `allowJs` needed). */
163
- const CATALOGS_DTS = `// Generated by vi18n compile --assets: catalog loaders for registerCatalogs().
164
- declare const catalogs: { [locale: string]: () => Promise<{ [id: string]: unknown }> };
165
- export default catalogs;
166
- `;
167
- /** A version directory name (`hash8`): base64url, 8 characters. */
168
- const VERSION_NAME = /^[\w-]{8}$/;
169
- /**
170
- * Removes the versions of `<assets>/vi18n/` other than `version` that this
171
- * command wrote: directories named like a version holding only
172
- * `<locale>/catalog.json` for configured locales. Anything else there (a
173
- * Vite build's stable manifests, the app's own files) is left alone.
174
- */
175
- async function removeOtherVersions(assets, version, locales) {
176
- const root = join(assets, "vi18n");
177
- let removed = 0;
178
- for (const entry of await readdir(root, { withFileTypes: true }).catch(() => [])) {
179
- if (!entry.isDirectory() || entry.name === version || !VERSION_NAME.test(entry.name)) continue;
180
- const dir = join(root, entry.name);
181
- if (!await onlyCatalogs(dir, locales)) continue;
182
- await rm(dir, {
183
- recursive: true,
184
- force: true
185
- });
186
- removed++;
187
- }
188
- return removed;
189
- }
190
- async function onlyCatalogs(dir, locales) {
191
- for (const entry of await readdir(dir, { withFileTypes: true })) {
192
- if (!entry.isDirectory() || !locales.includes(entry.name)) return false;
193
- if ((await readdir(join(dir, entry.name), { withFileTypes: true })).some((file) => !file.isFile() || file.name !== SERVER_FILES.catalog)) return false;
194
- }
195
- return true;
196
- }
197
- /** `BundleData` with keys in code-unit order and no whitespace: byte-stable for diffs and caches. */
198
- function bundleJson(messages) {
199
- const ids = [...messages.keys()].sort(compareText);
200
- const data = Object.create(null);
201
- for (const id of ids) data[id] = messages.get(id);
202
- return JSON.stringify(data) + "\n";
203
- }
204
- /**
205
- * Every exact source literal of a generated-id message → its id, so
206
- * untransformed code (`t("Hello {name}")` in a Worker) finds the compiled
207
- * message (PLAN §5.3). Manual ids are looked up by id and need no entry.
208
- */
209
- function sourcesJson(messages) {
210
- const pairs = [];
211
- for (const message of messages.values()) {
212
- if (message.manual) continue;
213
- for (const source of message.sources) pairs.push([source, message.id]);
214
- }
215
- pairs.sort((a, b) => compareText(a[0], b[0]));
216
- const data = Object.create(null);
217
- for (const [source, id] of pairs) data[source] = id;
218
- return JSON.stringify(data) + "\n";
219
- }
220
- async function readIfExists(path) {
221
- try {
222
- return await readFile(path, "utf8");
223
- } catch (error) {
224
- if (error.code === "ENOENT") return null;
225
- throw error;
226
- }
227
- }
228
- /** Unchanged files keep their mtime (watchers, incremental deploys); others are replaced atomically. */
229
- async function writeIfChanged(path, content) {
230
- try {
231
- if (await readFile(path, "utf8") === content) return;
232
- } catch (error) {
233
- if (error.code !== "ENOENT") throw error;
234
- }
235
- const temp = `${path}.${process.pid}.${randomBytes(6).toString("hex")}.tmp`;
236
- try {
237
- await writeFile(temp, content);
238
- await rename(temp, path);
239
- } catch (error) {
240
- await rm(temp, { force: true });
241
- throw error;
242
- }
243
- }
244
- //#endregion
245
- export { compile };
@@ -1,96 +0,0 @@
1
- //#region src/ai/concurrency.ts
2
- /**
3
- * Adaptive concurrency (PLAN §5.20, INTERNALS §2.15): requests start at
4
- * `ai.concurrency` in flight; a rate limit halves that and holds every new
5
- * request for the delay the server asked (`RetryInfo`, `Retry-After`), and
6
- * each full window of requests without one gives a slot back (AIMD). The
7
- * provider retries the limited request itself; this only decides how many
8
- * others may start. One instance spans a whole `vi18n translate` run, so a
9
- * quota learnt on one locale is not rediscovered on the next.
10
- */
11
- /** Hold after a rate limit whose answer named no delay. */
12
- const DEFAULT_HOLD_MS = 1e3;
13
- function adaptiveConcurrency(max, now = Date.now) {
14
- const ceiling = Math.max(1, Math.floor(max));
15
- let limit = ceiling;
16
- let inFlight = 0;
17
- let holdUntil = 0;
18
- let successes = 0;
19
- let rateLimits = 0;
20
- let epoch = 0;
21
- const waiters = [];
22
- let timer = null;
23
- const pump = () => {
24
- if (timer !== null) {
25
- clearTimeout(timer);
26
- timer = null;
27
- }
28
- while (waiters.length > 0 && inFlight < limit) {
29
- const wait = holdUntil - now();
30
- if (wait > 0) {
31
- timer = setTimeout(pump, wait);
32
- return;
33
- }
34
- waiters.shift().grant();
35
- }
36
- };
37
- const slot = () => {
38
- const started = epoch;
39
- let limited = false;
40
- let released = false;
41
- inFlight++;
42
- return {
43
- rateLimited(retryAfterMs) {
44
- rateLimits++;
45
- limited = true;
46
- if (started === epoch) {
47
- limit = Math.max(1, Math.floor(limit / 2));
48
- successes = 0;
49
- epoch++;
50
- }
51
- holdUntil = Math.max(holdUntil, now() + (retryAfterMs ?? DEFAULT_HOLD_MS));
52
- },
53
- release() {
54
- if (released) return;
55
- released = true;
56
- inFlight--;
57
- if (!limited && started === epoch && ++successes >= limit && limit < ceiling) {
58
- limit++;
59
- successes = 0;
60
- }
61
- pump();
62
- }
63
- };
64
- };
65
- return {
66
- max: ceiling,
67
- get limit() {
68
- return limit;
69
- },
70
- get rateLimits() {
71
- return rateLimits;
72
- },
73
- acquire(signal) {
74
- return new Promise((resolve, reject) => {
75
- if (signal?.aborted === true) {
76
- reject(signal.reason);
77
- return;
78
- }
79
- const onAbort = () => {
80
- const index = waiters.indexOf(waiter);
81
- if (index !== -1) waiters.splice(index, 1);
82
- reject(signal?.reason);
83
- };
84
- const waiter = { grant: () => {
85
- signal?.removeEventListener("abort", onAbort);
86
- resolve(slot());
87
- } };
88
- signal?.addEventListener("abort", onAbort, { once: true });
89
- waiters.push(waiter);
90
- pump();
91
- });
92
- }
93
- };
94
- }
95
- //#endregion
96
- export { adaptiveConcurrency as t };
@@ -1 +0,0 @@
1
- export { t as adaptiveConcurrency } from "./concurrency-C9UUWuDC.js";