env-runner 0.1.5 → 0.1.6

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.
package/README.md CHANGED
@@ -56,13 +56,13 @@ const envServer = new EnvServer({
56
56
  watchPaths: ["./src"],
57
57
  });
58
58
 
59
- envServer.onReady = (_runner, address) => {
59
+ envServer.onReady((_runner, address) => {
60
60
  console.log(`Worker ready on ${address?.host}:${address?.port}`);
61
- };
61
+ });
62
62
 
63
- envServer.onReload = () => {
63
+ envServer.onReload(() => {
64
64
  console.log("Reloaded!");
65
- };
65
+ });
66
66
 
67
67
  await envServer.start();
68
68
 
@@ -81,9 +81,9 @@ import { RunnerManager, NodeProcessEnvRunner } from "env-runner";
81
81
 
82
82
  const manager = new RunnerManager();
83
83
 
84
- manager.onReady = (_runner, address) => {
84
+ manager.onReady((_runner, address) => {
85
85
  console.log("Ready:", address);
86
- };
86
+ });
87
87
 
88
88
  // Load initial runner
89
89
  const runner = new NodeProcessEnvRunner({
@@ -21,32 +21,3 @@ Repository: https://github.com/nodejs/cjs-module-lexer
21
21
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
22
22
  >
23
23
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
-
25
- ---------------------------------------
26
-
27
- ## std-env
28
-
29
- License: MIT
30
- Repository: https://github.com/unjs/std-env
31
-
32
- > MIT License
33
- >
34
- > Copyright (c) Pooya Parsa <pooya@pi0.io>
35
- >
36
- > Permission is hereby granted, free of charge, to any person obtaining a copy
37
- > of this software and associated documentation files (the "Software"), to deal
38
- > in the Software without restriction, including without limitation the rights
39
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
40
- > copies of the Software, and to permit persons to whom the Software is
41
- > furnished to do so, subject to the following conditions:
42
- >
43
- > The above copyright notice and this permission notice shall be included in all
44
- > copies or substantial portions of the Software.
45
- >
46
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
50
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
51
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
52
- > SOFTWARE.
@@ -41,7 +41,6 @@ declare abstract class BaseEnvRunner implements EnvRunner {
41
41
  close(cause?: unknown): Promise<void>;
42
42
  protected _handleMessage(message: any): void;
43
43
  protected _closeSocket(): Promise<void>;
44
- protected _requestGracefulShutdown(sendShutdown: () => void, listenForExit: (resolve: () => void) => void, hasExited: () => boolean): Promise<void>;
45
44
  protected abstract _hasRuntime(): boolean;
46
45
  protected abstract _closeRuntime(): Promise<void>;
47
46
  protected abstract _runtimeType(): string;
@@ -1,4 +1,3 @@
1
- import { n as v, t as m } from "./libs/std-env.mjs";
2
1
  import { rm } from "node:fs/promises";
3
2
  import { proxyFetch, proxyUpgrade } from "httpxy";
4
3
  //#region src/common/base-runner.ts
@@ -125,20 +124,6 @@ var BaseEnvRunner = class {
125
124
  if (socketPath && socketPath[0] !== "\0" && !socketPath.startsWith(String.raw`\\.\\pipe`)) await rm(socketPath).catch(() => {});
126
125
  this._address = void 0;
127
126
  }
128
- async _requestGracefulShutdown(sendShutdown, listenForExit, hasExited) {
129
- sendShutdown();
130
- if (!hasExited() && !v && !m) await new Promise((resolve) => {
131
- const gracefulShutdownTimeoutMs = Number.parseInt(process.env.ENV_RUNNER_SHUTDOWN_TIMEOUT || "", 10) || 5e3;
132
- const timeout = setTimeout(() => {
133
- console.warn(`force closing node env runner ${this._runtimeType()}...`);
134
- resolve();
135
- }, gracefulShutdownTimeoutMs);
136
- listenForExit(() => {
137
- clearTimeout(timeout);
138
- resolve();
139
- });
140
- });
141
- }
142
127
  };
143
128
  //#endregion
144
129
  export { BaseEnvRunner as t };
@@ -1,4 +1,4 @@
1
- //#region node_modules/.deno/cjs-module-lexer@2.2.0/node_modules/cjs-module-lexer/dist/lexer.mjs
1
+ //#region node_modules/.pnpm/cjs-module-lexer@2.2.0/node_modules/cjs-module-lexer/dist/lexer.mjs
2
2
  let A;
3
3
  const B = 1 === new Uint8Array(new Uint16Array([1]).buffer)[0];
4
4
  function parse(E, g = "@") {
@@ -26,13 +26,6 @@ var DenoProcessEnvRunner = class extends BaseEnvRunner {
26
26
  }
27
27
  async _closeRuntime() {
28
28
  if (!this.#process) return;
29
- if (this.#process._exitCode == null) await this._requestGracefulShutdown(() => {
30
- try {
31
- this.#process.send({ event: "shutdown" });
32
- } catch {}
33
- }, (resolve) => {
34
- this.#process?.exited.then(() => resolve());
35
- }, () => this.#process?._exitCode != null);
36
29
  this.#process.removeAllListeners?.();
37
30
  try {
38
31
  this.#process.kill();
@@ -10,6 +10,8 @@ var RunnerManager = class {
10
10
  _messageListeners = /* @__PURE__ */ new Set();
11
11
  _closed = false;
12
12
  _reloading = false;
13
+ _closeListeners = /* @__PURE__ */ new Set();
14
+ _readyListeners = /* @__PURE__ */ new Set();
13
15
  constructor(runner) {
14
16
  if (runner) this._attach(runner);
15
17
  }
@@ -106,12 +108,22 @@ var RunnerManager = class {
106
108
  this._detach();
107
109
  if (runner) await runner.close();
108
110
  }
109
- onClose;
110
- onReady;
111
+ onClose(listener) {
112
+ this._closeListeners.add(listener);
113
+ }
114
+ offClose(listener) {
115
+ this._closeListeners.delete(listener);
116
+ }
117
+ onReady(listener) {
118
+ this._readyListeners.add(listener);
119
+ }
120
+ offReady(listener) {
121
+ this._readyListeners.delete(listener);
122
+ }
111
123
  _internalListener = (message) => {
112
124
  if (message?.address) {
113
125
  this._flushQueue();
114
- this.onReady?.(this, message.address);
126
+ for (const fn of this._readyListeners) fn(this, message.address);
115
127
  }
116
128
  };
117
129
  _attach(runner) {
@@ -123,7 +135,7 @@ var RunnerManager = class {
123
135
  await originalClose();
124
136
  if (this._runner === runner) {
125
137
  this._runner = void 0;
126
- this.onClose?.(this);
138
+ for (const fn of this._closeListeners) fn(this);
127
139
  }
128
140
  };
129
141
  if (runner.ready) this._flushQueue();
@@ -174,9 +186,16 @@ var EnvServer = class extends RunnerManager {
174
186
  _opts;
175
187
  _watchers = [];
176
188
  _reloadTimeout;
189
+ _reloadListeners = /* @__PURE__ */ new Set();
177
190
  runner = null;
178
- /** Called when the runner is reloaded due to a file change. */
179
- onReload;
191
+ /** Register a listener called when the runner is reloaded due to a file change. */
192
+ onReload(listener) {
193
+ this._reloadListeners.add(listener);
194
+ }
195
+ /** Remove a previously registered reload listener. */
196
+ offReload(listener) {
197
+ this._reloadListeners.delete(listener);
198
+ }
180
199
  constructor(opts) {
181
200
  super();
182
201
  this._opts = opts;
@@ -223,7 +242,7 @@ var EnvServer = class extends RunnerManager {
223
242
  try {
224
243
  this.runner = await this._createRunner();
225
244
  await this.reload(this.runner);
226
- this.onReload?.();
245
+ for (const fn of this._reloadListeners) fn();
227
246
  } catch (error) {
228
247
  console.error("Failed to reload runner:", error);
229
248
  }
@@ -54,7 +54,7 @@ interface RPCOptions {
54
54
  timeout?: number;
55
55
  }
56
56
  /** Core runner interface combining lifecycle hooks, RPC, and request proxying. */
57
- interface EnvRunner extends WorkerHooks, RunnerRPCHooks {
57
+ interface EnvRunner extends RunnerRPCHooks {
58
58
  /** Whether the worker is ready to accept requests. */
59
59
  readonly ready: boolean;
60
60
  /** Whether the runner has been closed. */
package/dist/cli.mjs CHANGED
@@ -40,12 +40,12 @@ const envServer = new EnvServer({
40
40
  entry: resolve(entry),
41
41
  watch: values.watch
42
42
  });
43
- envServer.onReady = (_runner, address) => {
43
+ envServer.onReady((_runner, address) => {
44
44
  console.log(`\x1B[2m➜ Worker ready on ${address?.host}:${address?.port || address?.socketPath}\x1B[0m`);
45
- };
46
- envServer.onReload = () => {
45
+ });
46
+ envServer.onReload(() => {
47
47
  console.log(`\x1B[2m↻ Reloading...\x1B[0m`);
48
- };
48
+ });
49
49
  await envServer.start();
50
50
  const server = serve({
51
51
  port: values.port,
package/dist/index.d.mts CHANGED
@@ -16,6 +16,8 @@ declare class RunnerManager implements EnvRunner {
16
16
  private _messageListeners;
17
17
  private _closed;
18
18
  private _reloading;
19
+ private _closeListeners;
20
+ private _readyListeners;
19
21
  constructor(runner?: EnvRunner);
20
22
  get ready(): boolean;
21
23
  get closed(): boolean;
@@ -32,8 +34,10 @@ declare class RunnerManager implements EnvRunner {
32
34
  }): Promise<T>;
33
35
  reloadModule(timeout?: number): Promise<void>;
34
36
  close(): Promise<void>;
35
- onClose?: (runner: EnvRunner, cause?: unknown) => void;
36
- onReady?: (runner: EnvRunner, address?: WorkerAddress) => void;
37
+ onClose(listener: (runner: EnvRunner, cause?: unknown) => void): void;
38
+ offClose(listener: (runner: EnvRunner, cause?: unknown) => void): void;
39
+ onReady(listener: (runner: EnvRunner, address?: WorkerAddress) => void): void;
40
+ offReady(listener: (runner: EnvRunner, address?: WorkerAddress) => void): void;
37
41
  private _internalListener;
38
42
  private _attach;
39
43
  private _detach;
@@ -75,9 +79,12 @@ declare class EnvServer extends RunnerManager {
75
79
  private _opts;
76
80
  private _watchers;
77
81
  private _reloadTimeout;
82
+ private _reloadListeners;
78
83
  runner: Awaited<ReturnType<typeof loadRunner>> | null;
79
- /** Called when the runner is reloaded due to a file change. */
80
- onReload?: () => void;
84
+ /** Register a listener called when the runner is reloaded due to a file change. */
85
+ onReload(listener: () => void): void;
86
+ /** Remove a previously registered reload listener. */
87
+ offReload(listener: () => void): void;
81
88
  constructor(opts: EnvServerOptions);
82
89
  /** Start the server by loading and attaching the runner. */
83
90
  start(): Promise<this>;
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import "./_chunks/libs/std-env.mjs";
2
1
  import { t as BaseEnvRunner } from "./_chunks/base-runner.mjs";
3
2
  import { n as loadRunner, r as RunnerManager, t as EnvServer } from "./_chunks/server.mjs";
4
3
  import { t as DenoProcessEnvRunner } from "./_chunks/runner.mjs";
@@ -1,4 +1,3 @@
1
- import "../../_chunks/libs/std-env.mjs";
2
1
  import { t as BaseEnvRunner } from "../../_chunks/base-runner.mjs";
3
2
  import { existsSync } from "node:fs";
4
3
  import { execSync, spawn } from "node:child_process";
@@ -41,13 +40,6 @@ var BunProcessEnvRunner = class extends BaseEnvRunner {
41
40
  }
42
41
  async _closeRuntime() {
43
42
  if (!this.#process) return;
44
- if (this.#process._exitCode == null) await this._requestGracefulShutdown(() => {
45
- try {
46
- this.#process.send({ event: "shutdown" });
47
- } catch {}
48
- }, (resolve) => {
49
- this.#process?.exited.then(() => resolve());
50
- }, () => this.#process?._exitCode != null);
51
43
  this.#process.removeAllListeners?.();
52
44
  try {
53
45
  this.#process.kill();
@@ -1,4 +1,3 @@
1
- import "../../_chunks/libs/std-env.mjs";
2
1
  import "../../_chunks/base-runner.mjs";
3
2
  import { t as DenoProcessEnvRunner } from "../../_chunks/runner.mjs";
4
3
  export { DenoProcessEnvRunner };
@@ -1,4 +1,3 @@
1
- import "../../_chunks/libs/std-env.mjs";
2
1
  import "../../_chunks/base-runner.mjs";
3
2
  import "../../_chunks/libs/cjs-module-lexer.mjs";
4
3
  import { t as MiniflareEnvRunner } from "../../_chunks/runner2.mjs";
@@ -1,4 +1,3 @@
1
- import "../../_chunks/libs/std-env.mjs";
2
1
  import { t as BaseEnvRunner } from "../../_chunks/base-runner.mjs";
3
2
  import { existsSync } from "node:fs";
4
3
  import { fork } from "node:child_process";
@@ -27,11 +26,6 @@ var NodeProcessEnvRunner = class extends BaseEnvRunner {
27
26
  }
28
27
  async _closeRuntime() {
29
28
  if (!this.#process) return;
30
- await this._requestGracefulShutdown(() => this.#process.send({ event: "shutdown" }), (resolve) => {
31
- this.#process?.on("message", (message) => {
32
- if (message.event === "exit") resolve();
33
- });
34
- }, () => this.#process?._exitCode != null);
35
29
  this.#process.removeAllListeners();
36
30
  this.#process.kill();
37
31
  this.#process = void 0;
@@ -1,4 +1,3 @@
1
- import "../../_chunks/libs/std-env.mjs";
2
1
  import { t as BaseEnvRunner } from "../../_chunks/base-runner.mjs";
3
2
  import { existsSync } from "node:fs";
4
3
  import { fileURLToPath } from "node:url";
@@ -27,11 +26,6 @@ var NodeWorkerEnvRunner = class extends BaseEnvRunner {
27
26
  }
28
27
  async _closeRuntime() {
29
28
  if (!this.#worker) return;
30
- await this._requestGracefulShutdown(() => this.#worker.postMessage({ event: "shutdown" }), (resolve) => {
31
- this.#worker?.on("message", (message) => {
32
- if (message.event === "exit") resolve();
33
- });
34
- }, () => Boolean(this.#worker?._exitCode));
35
29
  this.#worker.removeAllListeners();
36
30
  await this.#worker.terminate().catch((error) => {
37
31
  console.error(error);
@@ -1,4 +1,3 @@
1
- import "../../_chunks/libs/std-env.mjs";
2
1
  import { t as BaseEnvRunner } from "../../_chunks/base-runner.mjs";
3
2
  import { n as reloadEntryModule, r as resolveEntry } from "../../_chunks/worker-utils.mjs";
4
3
  //#region src/runners/self/runner.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "env-runner",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Generic environment runner for JavaScript runtimes.",
5
5
  "license": "MIT",
6
6
  "repository": "unjs/env-runner",
@@ -54,7 +54,6 @@
54
54
  "obuild": "latest",
55
55
  "oxfmt": "latest",
56
56
  "oxlint": "latest",
57
- "std-env": "4.0.0-rc.1",
58
57
  "typescript": "latest",
59
58
  "vitest": "latest"
60
59
  },
@@ -1,171 +0,0 @@
1
- //#region node_modules/.pnpm/std-env@4.0.0-rc.1/node_modules/std-env/dist/index.mjs
2
- const e = globalThis.process?.env || Object.create(null), t = globalThis.process || { env: e }, n = t !== void 0 && t.env && t.env.NODE_ENV || void 0, r = [
3
- [`claude`, [`CLAUDECODE`, `CLAUDE_CODE`]],
4
- [`replit`, [`REPL_ID`]],
5
- [`gemini`, [`GEMINI_CLI`]],
6
- [`codex`, [`CODEX_SANDBOX`, `CODEX_THREAD_ID`]],
7
- [`opencode`, [`OPENCODE`]],
8
- [`pi`, [i(`PATH`, /\.pi[\\/]agent/)]],
9
- [`auggie`, [`AUGMENT_AGENT`]],
10
- [`goose`, [`GOOSE_PROVIDER`]],
11
- [`devin`, [i(`EDITOR`, /devin/)]],
12
- [`cursor`, [`CURSOR_AGENT`]],
13
- [`kiro`, [i(`TERM_PROGRAM`, /kiro/)]]
14
- ];
15
- function i(t, n) {
16
- return () => {
17
- let r = e[t];
18
- return r ? n.test(r) : !1;
19
- };
20
- }
21
- function a() {
22
- let t = e.AI_AGENT;
23
- if (t) return { name: t.toLowerCase() };
24
- for (let [t, n] of r) for (let r of n) if (typeof r == `string` ? e[r] : r()) return { name: t };
25
- return {};
26
- }
27
- const o = a();
28
- o.name;
29
- o.name;
30
- const l = [
31
- [`APPVEYOR`],
32
- [
33
- `AWS_AMPLIFY`,
34
- `AWS_APP_ID`,
35
- { ci: !0 }
36
- ],
37
- [`AZURE_PIPELINES`, `SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],
38
- [`AZURE_STATIC`, `INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],
39
- [`APPCIRCLE`, `AC_APPCIRCLE`],
40
- [`BAMBOO`, `bamboo_planKey`],
41
- [`BITBUCKET`, `BITBUCKET_COMMIT`],
42
- [`BITRISE`, `BITRISE_IO`],
43
- [`BUDDY`, `BUDDY_WORKSPACE_ID`],
44
- [`BUILDKITE`],
45
- [`CIRCLE`, `CIRCLECI`],
46
- [`CIRRUS`, `CIRRUS_CI`],
47
- [
48
- `CLOUDFLARE_PAGES`,
49
- `CF_PAGES`,
50
- { ci: !0 }
51
- ],
52
- [
53
- `CLOUDFLARE_WORKERS`,
54
- `WORKERS_CI`,
55
- { ci: !0 }
56
- ],
57
- [`GOOGLE_CLOUDRUN`, `K_SERVICE`],
58
- [`GOOGLE_CLOUDRUN_JOB`, `CLOUD_RUN_JOB`],
59
- [`CODEBUILD`, `CODEBUILD_BUILD_ARN`],
60
- [`CODEFRESH`, `CF_BUILD_ID`],
61
- [`DRONE`],
62
- [`DRONE`, `DRONE_BUILD_EVENT`],
63
- [`DSARI`],
64
- [`GITHUB_ACTIONS`],
65
- [`GITLAB`, `GITLAB_CI`],
66
- [`GITLAB`, `CI_MERGE_REQUEST_ID`],
67
- [`GOCD`, `GO_PIPELINE_LABEL`],
68
- [`LAYERCI`],
69
- [`JENKINS`, `JENKINS_URL`],
70
- [`HUDSON`, `HUDSON_URL`],
71
- [`MAGNUM`],
72
- [`NETLIFY`],
73
- [
74
- `NETLIFY`,
75
- `NETLIFY_LOCAL`,
76
- { ci: !1 }
77
- ],
78
- [`NEVERCODE`],
79
- [`RENDER`],
80
- [`SAIL`, `SAILCI`],
81
- [`SEMAPHORE`],
82
- [`SCREWDRIVER`],
83
- [`SHIPPABLE`],
84
- [`SOLANO`, `TDDIUM`],
85
- [`STRIDER`],
86
- [`TEAMCITY`, `TEAMCITY_VERSION`],
87
- [`TRAVIS`],
88
- [`VERCEL`, `NOW_BUILDER`],
89
- [
90
- `VERCEL`,
91
- `VERCEL`,
92
- { ci: !1 }
93
- ],
94
- [
95
- `VERCEL`,
96
- `VERCEL_ENV`,
97
- { ci: !1 }
98
- ],
99
- [`APPCENTER`, `APPCENTER_BUILD_ID`],
100
- [
101
- `CODESANDBOX`,
102
- `CODESANDBOX_SSE`,
103
- { ci: !1 }
104
- ],
105
- [
106
- `CODESANDBOX`,
107
- `CODESANDBOX_HOST`,
108
- { ci: !1 }
109
- ],
110
- [`STACKBLITZ`],
111
- [`STORMKIT`],
112
- [`CLEAVR`],
113
- [`ZEABUR`],
114
- [
115
- `CODESPHERE`,
116
- `CODESPHERE_APP_ID`,
117
- { ci: !0 }
118
- ],
119
- [`RAILWAY`, `RAILWAY_PROJECT_ID`],
120
- [`RAILWAY`, `RAILWAY_SERVICE_ID`],
121
- [`DENO-DEPLOY`, `DENO_DEPLOY`],
122
- [`DENO-DEPLOY`, `DENO_DEPLOYMENT_ID`],
123
- [
124
- `FIREBASE_APP_HOSTING`,
125
- `FIREBASE_APP_HOSTING`,
126
- { ci: !0 }
127
- ]
128
- ];
129
- function u() {
130
- for (let t of l) if (e[t[1] || t[0]]) return {
131
- name: t[0].toLowerCase(),
132
- ...t[2]
133
- };
134
- return e.SHELL === `/bin/jsh` && t.versions?.webcontainer ? {
135
- name: `stackblitz`,
136
- ci: !1
137
- } : {
138
- name: ``,
139
- ci: !1
140
- };
141
- }
142
- const d = u();
143
- d.name;
144
- const p = t.platform || ``, m = !!e.CI || d.ci !== !1, h = !!t.stdout?.isTTY;
145
- e.DEBUG;
146
- const v = n === `test` || !!e.TEST;
147
- n === `production` || e.MODE;
148
- n === `dev` || n === `development` || e.MODE;
149
- e.MINIMAL;
150
- const S = /^win/i.test(p);
151
- /^linux/i.test(p);
152
- /^darwin/i.test(p);
153
- !e.NO_COLOR && (e.FORCE_COLOR || (h || S) && e.TERM);
154
- const E = (t.versions?.node || ``).replace(/^v/, ``) || null;
155
- Number(E?.split(`.`)[0]);
156
- const O = !!t?.versions?.node, k = `Bun` in globalThis, A = `Deno` in globalThis, j = `fastly` in globalThis, M = `Netlify` in globalThis, N = `EdgeRuntime` in globalThis, P = globalThis.navigator?.userAgent === `Cloudflare-Workers`, F = [
157
- [M, `netlify`],
158
- [N, `edge-light`],
159
- [P, `workerd`],
160
- [j, `fastly`],
161
- [A, `deno`],
162
- [k, `bun`],
163
- [O, `node`]
164
- ];
165
- function I() {
166
- let e = F.find((e) => e[0]);
167
- if (e) return { name: e[1] };
168
- }
169
- I()?.name;
170
- //#endregion
171
- export { v as n, m as t };