@cloudflare/workers-utils 0.43.0 → 0.44.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 (32) hide show
  1. package/dist/browser.d.mts +2363 -3
  2. package/dist/browser.mjs +469 -2
  3. package/dist/{chunk-C6O4ION7.mjs → chunk-2Q77CKVU.mjs} +3 -1
  4. package/dist/{chunk-Z62CVNHJ.mjs → chunk-6G6FCMPX.mjs} +4 -1
  5. package/dist/{chunk-FLRJ77A6.mjs → chunk-AUSY7DKT.mjs} +6 -3
  6. package/dist/{chunk-IYSONYTF.mjs → chunk-FR75DWDU.mjs} +7 -5
  7. package/dist/{chunk-MCNIGVAF.mjs → chunk-M3RITKR3.mjs} +4 -1
  8. package/dist/{chunk-53IMCORZ.mjs → chunk-MIA26B4M.mjs} +3 -1
  9. package/dist/{chunk-34VZWBGB.mjs → chunk-MV2OJK3L.mjs} +4 -2
  10. package/dist/{chunk-WO2IAW6M.mjs → chunk-OWPFSLY6.mjs} +4 -1
  11. package/dist/{chunk-OWXQB7GP.mjs → chunk-PWC7WAOU.mjs} +4 -1
  12. package/dist/{chunk-3IYLA2JH.mjs → chunk-QSRIB43D.mjs} +5 -2
  13. package/dist/{chunk-Q72B4Q5Z.mjs → chunk-U6NEESU5.mjs} +6 -3
  14. package/dist/compatibility-date.mjs +5 -2
  15. package/dist/{compliance-DzwHmPKm.d.mts → compliance-CZ8Ownqu.d.mts} +534 -509
  16. package/dist/compliance.d.mts +1 -1
  17. package/dist/compliance.mjs +10 -7
  18. package/dist/docker-path.mjs +6 -3
  19. package/dist/errors.mjs +5 -2
  20. package/dist/fs-helpers.mjs +5 -2
  21. package/dist/global-wrangler-config-path.mjs +6 -3
  22. package/dist/index.d.mts +45 -6
  23. package/dist/index.mjs +583 -36
  24. package/dist/local-env.mjs +4 -1
  25. package/dist/metafile-esm.json +1 -1
  26. package/dist/{open-PBXRGS4R.mjs → open-PCXX3ZDZ.mjs} +3 -1
  27. package/dist/prometheus-metrics.mjs +5 -2
  28. package/dist/test-helpers/index.d.mts +1 -1
  29. package/dist/test-helpers/index.mjs +8 -5
  30. package/dist/zod-format.mjs +5 -2
  31. package/package.json +1 -1
  32. package/dist/chunk-DKSA7K25.mjs +0 -468
package/dist/browser.mjs CHANGED
@@ -1,2 +1,469 @@
1
- export { constructWranglerConfig } from './chunk-DKSA7K25.mjs';
2
- import './chunk-Q72B4Q5Z.mjs';
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/default-compat-date.ts
5
+ var DEFAULT_COMPAT_DATE = "2026-09-25";
6
+
7
+ // src/assert-never.ts
8
+ function assertNever(_value) {
9
+ }
10
+ __name(assertNever, "assertNever");
11
+
12
+ // src/map-worker-metadata-bindings.ts
13
+ function mapWorkerMetadataBindings(bindings) {
14
+ return bindings.filter((binding) => binding.type !== "secret_text").reduce((configObj, binding) => {
15
+ switch (binding.type) {
16
+ case "plain_text":
17
+ {
18
+ configObj.vars = {
19
+ ...configObj.vars ?? {},
20
+ [binding.name]: binding.text
21
+ };
22
+ }
23
+ break;
24
+ case "json":
25
+ {
26
+ configObj.vars = {
27
+ ...configObj.vars ?? {},
28
+ [binding.name]: binding.json
29
+ };
30
+ }
31
+ break;
32
+ case "kv_namespace":
33
+ {
34
+ configObj.kv_namespaces = [
35
+ ...configObj.kv_namespaces ?? [],
36
+ { id: binding.namespace_id, binding: binding.name }
37
+ ];
38
+ }
39
+ break;
40
+ case "durable_object_namespace":
41
+ {
42
+ configObj.durable_objects = {
43
+ bindings: [
44
+ ...configObj.durable_objects?.bindings ?? [],
45
+ {
46
+ name: binding.name,
47
+ class_name: binding.class_name,
48
+ script_name: binding.script_name,
49
+ environment: binding.environment
50
+ }
51
+ ]
52
+ };
53
+ }
54
+ break;
55
+ case "d1":
56
+ {
57
+ configObj.d1_databases = [
58
+ ...configObj.d1_databases ?? [],
59
+ {
60
+ binding: binding.name,
61
+ database_id: binding.id
62
+ }
63
+ ];
64
+ }
65
+ break;
66
+ case "browser":
67
+ {
68
+ configObj.browser = {
69
+ binding: binding.name
70
+ };
71
+ }
72
+ break;
73
+ case "ai":
74
+ {
75
+ configObj.ai = {
76
+ binding: binding.name
77
+ };
78
+ }
79
+ break;
80
+ case "images":
81
+ {
82
+ configObj.images = {
83
+ binding: binding.name
84
+ };
85
+ }
86
+ break;
87
+ case "stream":
88
+ {
89
+ configObj.stream = {
90
+ binding: binding.name
91
+ };
92
+ }
93
+ break;
94
+ case "media":
95
+ {
96
+ configObj.media = {
97
+ binding: binding.name
98
+ };
99
+ }
100
+ break;
101
+ case "r2_bucket":
102
+ {
103
+ configObj.r2_buckets = [
104
+ ...configObj.r2_buckets ?? [],
105
+ {
106
+ binding: binding.name,
107
+ bucket_name: binding.bucket_name,
108
+ jurisdiction: binding.jurisdiction
109
+ }
110
+ ];
111
+ }
112
+ break;
113
+ case "secrets_store_secret":
114
+ {
115
+ configObj.secrets_store_secrets = [
116
+ ...configObj.secrets_store_secrets ?? [],
117
+ {
118
+ binding: binding.name,
119
+ store_id: binding.store_id,
120
+ secret_name: binding.secret_name
121
+ }
122
+ ];
123
+ }
124
+ break;
125
+ case "artifacts":
126
+ {
127
+ configObj.artifacts = [
128
+ ...configObj.artifacts ?? [],
129
+ {
130
+ binding: binding.name,
131
+ namespace: binding.namespace
132
+ }
133
+ ];
134
+ }
135
+ break;
136
+ case "unsafe_hello_world": {
137
+ configObj.unsafe_hello_world = [
138
+ ...configObj.unsafe_hello_world ?? [],
139
+ {
140
+ binding: binding.name,
141
+ enable_timer: binding.enable_timer
142
+ }
143
+ ];
144
+ break;
145
+ }
146
+ case "flagship": {
147
+ configObj.flagship = [
148
+ ...configObj.flagship ?? [],
149
+ {
150
+ binding: binding.name,
151
+ app_id: binding.app_id
152
+ }
153
+ ];
154
+ break;
155
+ }
156
+ case "service":
157
+ {
158
+ configObj.services = [
159
+ ...configObj.services ?? [],
160
+ {
161
+ binding: binding.name,
162
+ service: binding.service,
163
+ environment: binding.environment,
164
+ entrypoint: binding.entrypoint
165
+ }
166
+ ];
167
+ }
168
+ break;
169
+ case "analytics_engine":
170
+ {
171
+ configObj.analytics_engine_datasets = [
172
+ ...configObj.analytics_engine_datasets ?? [],
173
+ { binding: binding.name, dataset: binding.dataset }
174
+ ];
175
+ }
176
+ break;
177
+ case "dispatch_namespace":
178
+ {
179
+ configObj.dispatch_namespaces = [
180
+ ...configObj.dispatch_namespaces ?? [],
181
+ {
182
+ binding: binding.name,
183
+ namespace: binding.namespace,
184
+ ...binding.outbound && {
185
+ outbound: {
186
+ service: binding.outbound.worker.service,
187
+ environment: binding.outbound.worker.environment,
188
+ parameters: binding.outbound.params?.map((p) => p.name) ?? []
189
+ }
190
+ }
191
+ }
192
+ ];
193
+ }
194
+ break;
195
+ case "logfwdr":
196
+ {
197
+ configObj.logfwdr = {
198
+ bindings: [
199
+ ...configObj.logfwdr?.bindings ?? [],
200
+ { name: binding.name, destination: binding.destination }
201
+ ]
202
+ };
203
+ }
204
+ break;
205
+ case "wasm_module":
206
+ {
207
+ configObj.wasm_modules = {
208
+ ...configObj.wasm_modules ?? {},
209
+ [binding.name]: binding.part
210
+ };
211
+ }
212
+ break;
213
+ case "text_blob":
214
+ {
215
+ configObj.text_blobs = {
216
+ ...configObj.text_blobs ?? {},
217
+ [binding.name]: binding.part
218
+ };
219
+ }
220
+ break;
221
+ case "data_blob":
222
+ {
223
+ configObj.data_blobs = {
224
+ ...configObj.data_blobs ?? {},
225
+ [binding.name]: binding.part
226
+ };
227
+ }
228
+ break;
229
+ case "secret_text":
230
+ break;
231
+ case "version_metadata": {
232
+ {
233
+ configObj.version_metadata = {
234
+ binding: binding.name
235
+ };
236
+ }
237
+ break;
238
+ }
239
+ case "send_email": {
240
+ configObj.send_email = [
241
+ ...configObj.send_email ?? [],
242
+ {
243
+ name: binding.name,
244
+ destination_address: binding.destination_address,
245
+ allowed_destination_addresses: binding.allowed_destination_addresses,
246
+ allowed_sender_addresses: binding.allowed_sender_addresses
247
+ }
248
+ ];
249
+ break;
250
+ }
251
+ case "queue":
252
+ configObj.queues ??= { producers: [] };
253
+ configObj.queues.producers = [
254
+ ...configObj.queues.producers ?? [],
255
+ {
256
+ binding: binding.name,
257
+ queue: binding.queue_name,
258
+ delivery_delay: binding.delivery_delay
259
+ }
260
+ ];
261
+ break;
262
+ case "vectorize":
263
+ configObj.vectorize = [
264
+ ...configObj.vectorize ?? [],
265
+ {
266
+ binding: binding.name,
267
+ index_name: binding.index_name
268
+ }
269
+ ];
270
+ break;
271
+ case "ai_search_namespace":
272
+ configObj.ai_search_namespaces = [
273
+ ...configObj.ai_search_namespaces ?? [],
274
+ {
275
+ binding: binding.name,
276
+ namespace: binding.namespace
277
+ }
278
+ ];
279
+ break;
280
+ case "ai_search":
281
+ configObj.ai_search = [
282
+ ...configObj.ai_search ?? [],
283
+ {
284
+ binding: binding.name,
285
+ instance_name: binding.instance_name
286
+ }
287
+ ];
288
+ break;
289
+ case "agent_memory": {
290
+ configObj.agent_memory = [
291
+ ...configObj.agent_memory ?? [],
292
+ {
293
+ binding: binding.name,
294
+ namespace: binding.namespace
295
+ }
296
+ ];
297
+ break;
298
+ }
299
+ case "hyperdrive":
300
+ configObj.hyperdrive = [
301
+ ...configObj.hyperdrive ?? [],
302
+ {
303
+ binding: binding.name,
304
+ id: binding.id
305
+ }
306
+ ];
307
+ break;
308
+ case "mtls_certificate":
309
+ configObj.mtls_certificates = [
310
+ ...configObj.mtls_certificates ?? [],
311
+ {
312
+ binding: binding.name,
313
+ certificate_id: binding.certificate_id
314
+ }
315
+ ];
316
+ break;
317
+ case "pipelines":
318
+ configObj.pipelines = [
319
+ ...configObj.pipelines ?? [],
320
+ {
321
+ binding: binding.name,
322
+ // NOTE: stream is the primary field, but we also support pipeline for backward compatibility
323
+ ...binding.stream && { stream: binding.stream },
324
+ ...binding.pipeline && { pipeline: binding.pipeline }
325
+ }
326
+ ];
327
+ break;
328
+ case "assets":
329
+ configObj.assets = {
330
+ binding: binding.name
331
+ // Note: we currently don't get all the assets information from the
332
+ // API, so here we are only able to set the name of the binding
333
+ // hopefully in the future we can properly fully support the binding
334
+ };
335
+ break;
336
+ case "inherit":
337
+ configObj.unsafe = {
338
+ bindings: [...configObj.unsafe?.bindings ?? [], binding],
339
+ metadata: configObj.unsafe?.metadata ?? void 0
340
+ };
341
+ break;
342
+ case "workflow":
343
+ {
344
+ configObj.workflows = [
345
+ ...configObj.workflows ?? [],
346
+ {
347
+ binding: binding.name,
348
+ name: binding.workflow_name,
349
+ class_name: binding.class_name,
350
+ script_name: binding.script_name
351
+ }
352
+ ];
353
+ }
354
+ break;
355
+ case "worker_loader":
356
+ {
357
+ configObj.worker_loaders = [
358
+ ...configObj.worker_loaders ?? [],
359
+ {
360
+ binding: binding.name
361
+ }
362
+ ];
363
+ }
364
+ break;
365
+ case "ratelimit":
366
+ {
367
+ configObj.ratelimits = [
368
+ ...configObj.ratelimits ?? [],
369
+ {
370
+ name: binding.name,
371
+ namespace_id: binding.namespace_id,
372
+ simple: {
373
+ limit: binding.simple.limit,
374
+ period: binding.simple.period
375
+ }
376
+ }
377
+ ];
378
+ }
379
+ break;
380
+ case "vpc_service":
381
+ {
382
+ configObj.vpc_services = [
383
+ ...configObj.vpc_services ?? [],
384
+ {
385
+ binding: binding.name,
386
+ service_id: binding.service_id
387
+ }
388
+ ];
389
+ }
390
+ break;
391
+ case "vpc_network":
392
+ {
393
+ if (binding.tunnel_id !== void 0) {
394
+ configObj.vpc_networks = [
395
+ ...configObj.vpc_networks ?? [],
396
+ { binding: binding.name, tunnel_id: binding.tunnel_id }
397
+ ];
398
+ } else if (binding.network_id !== void 0) {
399
+ configObj.vpc_networks = [
400
+ ...configObj.vpc_networks ?? [],
401
+ { binding: binding.name, network_id: binding.network_id }
402
+ ];
403
+ }
404
+ }
405
+ break;
406
+ default: {
407
+ configObj.unsafe = {
408
+ bindings: [...configObj.unsafe?.bindings ?? [], binding],
409
+ metadata: configObj.unsafe?.metadata ?? void 0
410
+ };
411
+ }
412
+ }
413
+ return configObj;
414
+ }, {});
415
+ }
416
+ __name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
417
+
418
+ // src/construct-wrangler-config.ts
419
+ function constructWranglerConfig(config) {
420
+ const mappedBindings = mapWorkerMetadataBindings(config.bindings);
421
+ const durableObjectClassNames = config.bindings.filter(
422
+ (binding) => binding.type === "durable_object_namespace" && binding.script_name === config.name
423
+ ).map(
424
+ (durableObject) => durableObject.class_name
425
+ );
426
+ const allRoutes = [
427
+ ...config.routes.map((r) => ({
428
+ pattern: r.pattern,
429
+ zone_name: r.zone_name
430
+ })),
431
+ ...config.domains.map((c) => ({
432
+ pattern: c.hostname,
433
+ zone_name: c.zone_name,
434
+ custom_domain: true,
435
+ enabled: c.enabled,
436
+ previews_enabled: c.previews_enabled
437
+ }))
438
+ ];
439
+ return {
440
+ name: config.name,
441
+ main: config.entrypoint,
442
+ workers_dev: config.subdomain.enabled,
443
+ preview_urls: config.subdomain.previews_enabled,
444
+ compatibility_date: config.compatibility_date ?? DEFAULT_COMPAT_DATE,
445
+ compatibility_flags: config.compatibility_flags,
446
+ ...allRoutes.length ? { routes: allRoutes } : {},
447
+ placement: config.placement?.mode === "smart" ? { mode: "smart" } : void 0,
448
+ limits: config.limits,
449
+ ...durableObjectClassNames.length && config.migration_tag ? {
450
+ migrations: [
451
+ {
452
+ tag: config.migration_tag,
453
+ new_classes: durableObjectClassNames
454
+ }
455
+ ]
456
+ } : {},
457
+ ...config.schedules.length ? {
458
+ triggers: {
459
+ crons: config.schedules.map((scheduled) => scheduled.cron)
460
+ }
461
+ } : {},
462
+ tail_consumers: config.tail_consumers ?? void 0,
463
+ observability: config.observability,
464
+ ...mappedBindings
465
+ };
466
+ }
467
+ __name(constructWranglerConfig, "constructWranglerConfig");
468
+
469
+ export { constructWranglerConfig };
@@ -1,6 +1,8 @@
1
- import { __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { __name } from './chunk-U6NEESU5.mjs';
2
3
  import assert from 'node:assert';
3
4
 
5
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
4
6
  function isCompatDate(str) {
5
7
  return /^\d{4}-\d{2}-\d{2}$/.test(str);
6
8
  }
@@ -1,4 +1,7 @@
1
- import { __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { __name } from './chunk-U6NEESU5.mjs';
3
+
4
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
2
5
 
3
6
  // src/prometheus-metrics.ts
4
7
  var MetricsRegistry = class {
@@ -1,9 +1,12 @@
1
- import { esm_default } from './chunk-MCNIGVAF.mjs';
2
- import { UserError } from './chunk-WO2IAW6M.mjs';
3
- import { __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { esm_default } from './chunk-M3RITKR3.mjs';
3
+ import { UserError } from './chunk-OWPFSLY6.mjs';
4
+ import { __name } from './chunk-U6NEESU5.mjs';
4
5
  import { readFileSync as readFileSync$1, statSync, existsSync } from 'node:fs';
5
6
  import path, { resolve, isAbsolute, dirname, join } from 'node:path';
6
7
 
8
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
9
+
7
10
  // src/config/exports.ts
8
11
  function hasKnownExportType(entry) {
9
12
  const type = entry?.type;
@@ -1,10 +1,12 @@
1
- import { dedent } from './chunk-MCNIGVAF.mjs';
2
- import { getEnvironmentVariableFactory, getBooleanEnvironmentVariableFactory } from './chunk-3IYLA2JH.mjs';
3
- import { UserError } from './chunk-WO2IAW6M.mjs';
4
- import { getGlobalConfigPath } from './chunk-34VZWBGB.mjs';
5
- import { __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { dedent } from './chunk-M3RITKR3.mjs';
3
+ import { getEnvironmentVariableFactory, getBooleanEnvironmentVariableFactory } from './chunk-QSRIB43D.mjs';
4
+ import { UserError } from './chunk-OWPFSLY6.mjs';
5
+ import { getGlobalConfigPath } from './chunk-MV2OJK3L.mjs';
6
+ import { __name } from './chunk-U6NEESU5.mjs';
6
7
  import path from 'node:path';
7
8
 
9
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
8
10
  var getC3CommandFromEnv = getEnvironmentVariableFactory({
9
11
  variableName: "WRANGLER_C3_COMMAND",
10
12
  defaultValue: /* @__PURE__ */ __name(() => "create cloudflare", "defaultValue")
@@ -1,4 +1,7 @@
1
- import { __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { __name } from './chunk-U6NEESU5.mjs';
3
+
4
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
2
5
 
3
6
  // ../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js
4
7
  function dedent(templ) {
@@ -1,6 +1,8 @@
1
- import { __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { __name } from './chunk-U6NEESU5.mjs';
2
3
  import fs from 'node:fs';
3
4
 
5
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
4
6
  function isDirectory(path) {
5
7
  return fs.statSync(path, { throwIfNoEntry: false })?.isDirectory() ?? false;
6
8
  }
@@ -1,8 +1,10 @@
1
- import { isDirectory } from './chunk-53IMCORZ.mjs';
2
- import { __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { isDirectory } from './chunk-MIA26B4M.mjs';
3
+ import { __name } from './chunk-U6NEESU5.mjs';
3
4
  import os from 'node:os';
4
5
  import path from 'node:path';
5
6
 
7
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
6
8
  function isWindows() {
7
9
  return /^win/i.test(process.platform);
8
10
  }
@@ -1,4 +1,7 @@
1
- import { __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { __name } from './chunk-U6NEESU5.mjs';
3
+
4
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
2
5
 
3
6
  // src/errors.ts
4
7
  var UserError = class extends Error {
@@ -1,4 +1,7 @@
1
- import { __export, __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { __export, __name } from './chunk-U6NEESU5.mjs';
3
+
4
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
2
5
 
3
6
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
4
7
  var external_exports = {};
@@ -1,5 +1,8 @@
1
- import { UserError } from './chunk-WO2IAW6M.mjs';
2
- import { __name } from './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { UserError } from './chunk-OWPFSLY6.mjs';
3
+ import { __name } from './chunk-U6NEESU5.mjs';
4
+
5
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
3
6
 
4
7
  // src/environment-variables/factory.ts
5
8
  function getBooleanEnvironmentVariableFactory(options) {
@@ -1,3 +1,6 @@
1
+ import { createRequire } from 'node:module';
2
+
3
+ const require$1 = createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
1
4
  var __create = Object.create;
2
5
  var __defProp = Object.defineProperty;
3
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -5,10 +8,10 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
8
  var __getProtoOf = Object.getPrototypeOf;
6
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
10
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ var __require = /* @__PURE__ */ ((x) => typeof require$1 !== "undefined" ? require$1 : typeof Proxy !== "undefined" ? new Proxy(x, {
12
+ get: (a, b) => (typeof require$1 !== "undefined" ? require$1 : a)[b]
10
13
  }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
14
+ if (typeof require$1 !== "undefined") return require$1.apply(this, arguments);
12
15
  throw Error('Dynamic require of "' + x + '" is not supported');
13
16
  });
14
17
  var __commonJS = (cb, mod) => function __require2() {
@@ -1,2 +1,5 @@
1
- export { NODEJS_COMPAT_DEFAULT_ON_DATE, NODEJS_COMPAT_V2_SWITCH_OVER_DATE, getTodaysCompatDate, isCompatDate, isNodejsCompatDefaultOn, resolveNodejsCompat, stripRedundantNodejsCompatFlags } from './chunk-C6O4ION7.mjs';
2
- import './chunk-Q72B4Q5Z.mjs';
1
+ import { createRequire } from 'node:module';
2
+ export { NODEJS_COMPAT_DEFAULT_ON_DATE, NODEJS_COMPAT_V2_SWITCH_OVER_DATE, getTodaysCompatDate, isCompatDate, isNodejsCompatDefaultOn, resolveNodejsCompat, stripRedundantNodejsCompatFlags } from './chunk-2Q77CKVU.mjs';
3
+ import './chunk-U6NEESU5.mjs';
4
+
5
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));