@cloudflare/workers-utils 0.25.0 → 0.26.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.
- package/dist/browser.d.mts +1 -1
- package/dist/browser.mjs +2 -2
- package/dist/{chunk-66IS76LR.mjs → chunk-27EBTAT2.mjs} +3 -31
- package/dist/{chunk-DCOBXSFB.mjs → chunk-DDRU76YD.mjs} +1 -6
- package/dist/{chunk-J6D57QVQ.mjs → chunk-ELQRF72O.mjs} +1 -1
- package/dist/chunk-OC543JY3.mjs +33 -0
- package/dist/chunk-OTBYAUQ6.mjs +155 -0
- package/dist/{chunk-O4YGOZSW.mjs → chunk-TJ6ANXA2.mjs} +1 -1
- package/dist/{config-B_-PmLum.d.mts → config-D5W7gaPI.d.mts} +32 -0
- package/dist/fs-helpers.d.mts +40 -0
- package/dist/fs-helpers.mjs +2 -0
- package/dist/global-wrangler-config-path.d.mts +35 -0
- package/dist/global-wrangler-config-path.mjs +3 -0
- package/dist/index.d.mts +52 -73
- package/dist/index.mjs +461 -796
- package/dist/metafile-esm.json +1 -1
- package/dist/prometheus-metrics.mjs +2 -2
- package/dist/test-helpers/index.d.mts +1 -1
- package/dist/test-helpers/index.mjs +3 -2
- package/package.json +12 -5
package/dist/index.mjs
CHANGED
|
@@ -1,721 +1,23 @@
|
|
|
1
|
-
export { assertNever, constructWranglerConfig, getTodaysCompatDate, isCompatDate, mapWorkerMetadataBindings } from './chunk-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
export { assertNever, constructWranglerConfig, getTodaysCompatDate, isCompatDate, mapWorkerMetadataBindings } from './chunk-ELQRF72O.mjs';
|
|
2
|
+
import { getGlobalConfigPath } from './chunk-OTBYAUQ6.mjs';
|
|
3
|
+
export { getGlobalConfigPath, getGlobalWranglerCachePath } from './chunk-OTBYAUQ6.mjs';
|
|
4
|
+
export { MetricsRegistry } from './chunk-TJ6ANXA2.mjs';
|
|
5
|
+
import { partitionExports, UserError, isRedirectedRawConfig, dedent, configFileName, formatConfigSnippet, FatalError, parsePackageJSON, readFileSync, ParseError, parseJSON, APIError, parseTOML, modify, applyEdits, format, dist_default, parseJSONC } from './chunk-27EBTAT2.mjs';
|
|
6
|
+
export { APIError, CommandLineArgsError, DeprecationError, ENVIRONMENT_TAG_PREFIX, FatalError, INHERIT_SYMBOL, JSON_CONFIG_FORMATS, JsonFriendlyFatalError, MissingConfigError, PATH_TO_DEPLOY_CONFIG, ParseError, SERVICE_TAG_PREFIX, UserError, configFileName, configFormat, createFatalError, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, indexLocation, isRedirectedConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, readFileSync, readFileSyncToBuffer, resolveWranglerConfigPath, searchLocation } from './chunk-27EBTAT2.mjs';
|
|
7
|
+
import { isDirectory, removeDirSync } from './chunk-OC543JY3.mjs';
|
|
8
|
+
export { isDirectory, removeDir, removeDirSync } from './chunk-OC543JY3.mjs';
|
|
9
|
+
import { __commonJS, __require, __name, __toESM } from './chunk-DDRU76YD.mjs';
|
|
10
|
+
import fs2, { statSync, accessSync, constants, writeFileSync, renameSync, existsSync, unlinkSync, mkdirSync, chmodSync, readFileSync as readFileSync$1 } from 'node:fs';
|
|
7
11
|
import assert from 'node:assert';
|
|
8
|
-
import
|
|
9
|
-
import os, { arch } from 'node:os';
|
|
12
|
+
import path2, { join, dirname, basename, resolve } from 'node:path';
|
|
10
13
|
import { execFileSync, spawn } from 'node:child_process';
|
|
11
14
|
import { createHash } from 'node:crypto';
|
|
15
|
+
import { arch } from 'node:os';
|
|
12
16
|
import { fetch, Headers, FormData, Response } from 'undici';
|
|
13
17
|
import { URLSearchParams } from 'node:url';
|
|
14
18
|
import * as timersPromises from 'node:timers/promises';
|
|
15
19
|
import { setTimeout as setTimeout$1 } from 'node:timers/promises';
|
|
16
20
|
|
|
17
|
-
// ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js
|
|
18
|
-
var require_XDGAppPaths = __commonJS({
|
|
19
|
-
"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js"(exports) {
|
|
20
|
-
exports.__esModule = true;
|
|
21
|
-
exports.Adapt = void 0;
|
|
22
|
-
function isBoolean2(t2) {
|
|
23
|
-
return typeOf(t2) === "boolean";
|
|
24
|
-
}
|
|
25
|
-
__name(isBoolean2, "isBoolean");
|
|
26
|
-
function isObject(t2) {
|
|
27
|
-
return typeOf(t2) === "object";
|
|
28
|
-
}
|
|
29
|
-
__name(isObject, "isObject");
|
|
30
|
-
function isString2(t2) {
|
|
31
|
-
return typeOf(t2) === "string";
|
|
32
|
-
}
|
|
33
|
-
__name(isString2, "isString");
|
|
34
|
-
function typeOf(t2) {
|
|
35
|
-
return typeof t2;
|
|
36
|
-
}
|
|
37
|
-
__name(typeOf, "typeOf");
|
|
38
|
-
function Adapt(adapter_) {
|
|
39
|
-
var meta = adapter_.meta, path5 = adapter_.path, xdg = adapter_.xdg;
|
|
40
|
-
var XDGAppPaths_ = /* @__PURE__ */ function() {
|
|
41
|
-
function XDGAppPaths_2(options_) {
|
|
42
|
-
if (options_ === void 0) {
|
|
43
|
-
options_ = {};
|
|
44
|
-
}
|
|
45
|
-
var _a, _b, _c;
|
|
46
|
-
function XDGAppPaths(options2) {
|
|
47
|
-
if (options2 === void 0) {
|
|
48
|
-
options2 = {};
|
|
49
|
-
}
|
|
50
|
-
return new XDGAppPaths_2(options2);
|
|
51
|
-
}
|
|
52
|
-
__name(XDGAppPaths, "XDGAppPaths");
|
|
53
|
-
var options = isObject(options_) ? options_ : { name: options_ };
|
|
54
|
-
var suffix = (_a = options.suffix) !== null && _a !== void 0 ? _a : "";
|
|
55
|
-
var isolated_ = (_b = options.isolated) !== null && _b !== void 0 ? _b : true;
|
|
56
|
-
var namePriorityList = [
|
|
57
|
-
options.name,
|
|
58
|
-
meta.pkgMainFilename(),
|
|
59
|
-
meta.mainFilename()
|
|
60
|
-
];
|
|
61
|
-
var nameFallback = "$eval";
|
|
62
|
-
var name = path5.parse(((_c = namePriorityList.find(function(e2) {
|
|
63
|
-
return isString2(e2);
|
|
64
|
-
})) !== null && _c !== void 0 ? _c : nameFallback) + suffix).name;
|
|
65
|
-
XDGAppPaths.$name = /* @__PURE__ */ __name(function $name() {
|
|
66
|
-
return name;
|
|
67
|
-
}, "$name");
|
|
68
|
-
XDGAppPaths.$isolated = /* @__PURE__ */ __name(function $isolated() {
|
|
69
|
-
return isolated_;
|
|
70
|
-
}, "$isolated");
|
|
71
|
-
function isIsolated(dirOptions) {
|
|
72
|
-
var _a2;
|
|
73
|
-
dirOptions = dirOptions !== null && dirOptions !== void 0 ? dirOptions : { isolated: isolated_ };
|
|
74
|
-
var isolated = isBoolean2(dirOptions) ? dirOptions : (_a2 = dirOptions.isolated) !== null && _a2 !== void 0 ? _a2 : isolated_;
|
|
75
|
-
return isolated;
|
|
76
|
-
}
|
|
77
|
-
__name(isIsolated, "isIsolated");
|
|
78
|
-
function finalPathSegment(dirOptions) {
|
|
79
|
-
return isIsolated(dirOptions) ? name : "";
|
|
80
|
-
}
|
|
81
|
-
__name(finalPathSegment, "finalPathSegment");
|
|
82
|
-
XDGAppPaths.cache = /* @__PURE__ */ __name(function cache(dirOptions) {
|
|
83
|
-
return path5.join(xdg.cache(), finalPathSegment(dirOptions));
|
|
84
|
-
}, "cache");
|
|
85
|
-
XDGAppPaths.config = /* @__PURE__ */ __name(function config(dirOptions) {
|
|
86
|
-
return path5.join(xdg.config(), finalPathSegment(dirOptions));
|
|
87
|
-
}, "config");
|
|
88
|
-
XDGAppPaths.data = /* @__PURE__ */ __name(function data(dirOptions) {
|
|
89
|
-
return path5.join(xdg.data(), finalPathSegment(dirOptions));
|
|
90
|
-
}, "data");
|
|
91
|
-
XDGAppPaths.runtime = /* @__PURE__ */ __name(function runtime(dirOptions) {
|
|
92
|
-
return xdg.runtime() ? path5.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
|
|
93
|
-
}, "runtime");
|
|
94
|
-
XDGAppPaths.state = /* @__PURE__ */ __name(function state(dirOptions) {
|
|
95
|
-
return path5.join(xdg.state(), finalPathSegment(dirOptions));
|
|
96
|
-
}, "state");
|
|
97
|
-
XDGAppPaths.configDirs = /* @__PURE__ */ __name(function configDirs(dirOptions) {
|
|
98
|
-
return xdg.configDirs().map(function(s) {
|
|
99
|
-
return path5.join(s, finalPathSegment(dirOptions));
|
|
100
|
-
});
|
|
101
|
-
}, "configDirs");
|
|
102
|
-
XDGAppPaths.dataDirs = /* @__PURE__ */ __name(function dataDirs(dirOptions) {
|
|
103
|
-
return xdg.dataDirs().map(function(s) {
|
|
104
|
-
return path5.join(s, finalPathSegment(dirOptions));
|
|
105
|
-
});
|
|
106
|
-
}, "dataDirs");
|
|
107
|
-
return XDGAppPaths;
|
|
108
|
-
}
|
|
109
|
-
__name(XDGAppPaths_2, "XDGAppPaths_");
|
|
110
|
-
return XDGAppPaths_2;
|
|
111
|
-
}();
|
|
112
|
-
return { XDGAppPaths: new XDGAppPaths_() };
|
|
113
|
-
}
|
|
114
|
-
__name(Adapt, "Adapt");
|
|
115
|
-
exports.Adapt = Adapt;
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
// ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js
|
|
120
|
-
var require_XDG = __commonJS({
|
|
121
|
-
"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js"(exports) {
|
|
122
|
-
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
123
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
124
|
-
to[j] = from[i];
|
|
125
|
-
return to;
|
|
126
|
-
};
|
|
127
|
-
exports.__esModule = true;
|
|
128
|
-
exports.Adapt = void 0;
|
|
129
|
-
function Adapt(adapter_) {
|
|
130
|
-
var env = adapter_.env, osPaths = adapter_.osPaths, path5 = adapter_.path;
|
|
131
|
-
var isMacOS = /^darwin$/i.test(adapter_.process.platform);
|
|
132
|
-
var isWinOS = /^win/i.test(adapter_.process.platform);
|
|
133
|
-
function baseDir() {
|
|
134
|
-
return osPaths.home() || osPaths.temp();
|
|
135
|
-
}
|
|
136
|
-
__name(baseDir, "baseDir");
|
|
137
|
-
function valOrPath(val, pathSegments) {
|
|
138
|
-
return val || path5.join.apply(path5, pathSegments);
|
|
139
|
-
}
|
|
140
|
-
__name(valOrPath, "valOrPath");
|
|
141
|
-
var linux = /* @__PURE__ */ __name(function() {
|
|
142
|
-
var cache = /* @__PURE__ */ __name(function() {
|
|
143
|
-
return valOrPath(env.get("XDG_CACHE_HOME"), [baseDir(), ".cache"]);
|
|
144
|
-
}, "cache");
|
|
145
|
-
var config = /* @__PURE__ */ __name(function() {
|
|
146
|
-
return valOrPath(env.get("XDG_CONFIG_HOME"), [baseDir(), ".config"]);
|
|
147
|
-
}, "config");
|
|
148
|
-
var data = /* @__PURE__ */ __name(function() {
|
|
149
|
-
return valOrPath(env.get("XDG_DATA_HOME"), [baseDir(), ".local", "share"]);
|
|
150
|
-
}, "data");
|
|
151
|
-
var runtime = /* @__PURE__ */ __name(function() {
|
|
152
|
-
return env.get("XDG_RUNTIME_DIR") || void 0;
|
|
153
|
-
}, "runtime");
|
|
154
|
-
var state = /* @__PURE__ */ __name(function() {
|
|
155
|
-
return valOrPath(env.get("XDG_STATE_HOME"), [baseDir(), ".local", "state"]);
|
|
156
|
-
}, "state");
|
|
157
|
-
return { cache, config, data, runtime, state };
|
|
158
|
-
}, "linux");
|
|
159
|
-
var macos = /* @__PURE__ */ __name(function() {
|
|
160
|
-
var cache = /* @__PURE__ */ __name(function() {
|
|
161
|
-
return valOrPath(env.get("XDG_CACHE_HOME"), [baseDir(), "Library", "Caches"]);
|
|
162
|
-
}, "cache");
|
|
163
|
-
var config = /* @__PURE__ */ __name(function() {
|
|
164
|
-
return valOrPath(env.get("XDG_CONFIG_HOME"), [baseDir(), "Library", "Preferences"]);
|
|
165
|
-
}, "config");
|
|
166
|
-
var data = /* @__PURE__ */ __name(function() {
|
|
167
|
-
return valOrPath(env.get("XDG_DATA_HOME"), [baseDir(), "Library", "Application Support"]);
|
|
168
|
-
}, "data");
|
|
169
|
-
var runtime = /* @__PURE__ */ __name(function() {
|
|
170
|
-
return env.get("XDG_RUNTIME_DIR") || void 0;
|
|
171
|
-
}, "runtime");
|
|
172
|
-
var state = /* @__PURE__ */ __name(function() {
|
|
173
|
-
return valOrPath(env.get("XDG_STATE_HOME"), [baseDir(), "Library", "State"]);
|
|
174
|
-
}, "state");
|
|
175
|
-
return { cache, config, data, runtime, state };
|
|
176
|
-
}, "macos");
|
|
177
|
-
var windows = /* @__PURE__ */ __name(function() {
|
|
178
|
-
function appData() {
|
|
179
|
-
return valOrPath(env.get("APPDATA"), [baseDir(), "AppData", "Roaming"]);
|
|
180
|
-
}
|
|
181
|
-
__name(appData, "appData");
|
|
182
|
-
function localAppData() {
|
|
183
|
-
return valOrPath(env.get("LOCALAPPDATA"), [baseDir(), "AppData", "Local"]);
|
|
184
|
-
}
|
|
185
|
-
__name(localAppData, "localAppData");
|
|
186
|
-
var cache = /* @__PURE__ */ __name(function() {
|
|
187
|
-
return valOrPath(env.get("XDG_CACHE_HOME"), [localAppData(), "xdg.cache"]);
|
|
188
|
-
}, "cache");
|
|
189
|
-
var config = /* @__PURE__ */ __name(function() {
|
|
190
|
-
return valOrPath(env.get("XDG_CONFIG_HOME"), [appData(), "xdg.config"]);
|
|
191
|
-
}, "config");
|
|
192
|
-
var data = /* @__PURE__ */ __name(function() {
|
|
193
|
-
return valOrPath(env.get("XDG_DATA_HOME"), [appData(), "xdg.data"]);
|
|
194
|
-
}, "data");
|
|
195
|
-
var runtime = /* @__PURE__ */ __name(function() {
|
|
196
|
-
return env.get("XDG_RUNTIME_DIR") || void 0;
|
|
197
|
-
}, "runtime");
|
|
198
|
-
var state = /* @__PURE__ */ __name(function() {
|
|
199
|
-
return valOrPath(env.get("XDG_STATE_HOME"), [localAppData(), "xdg.state"]);
|
|
200
|
-
}, "state");
|
|
201
|
-
return { cache, config, data, runtime, state };
|
|
202
|
-
}, "windows");
|
|
203
|
-
var XDG_ = /* @__PURE__ */ function() {
|
|
204
|
-
function XDG_2() {
|
|
205
|
-
function XDG() {
|
|
206
|
-
return new XDG_2();
|
|
207
|
-
}
|
|
208
|
-
__name(XDG, "XDG");
|
|
209
|
-
var extension = isMacOS ? macos() : isWinOS ? windows() : linux();
|
|
210
|
-
XDG.cache = extension.cache;
|
|
211
|
-
XDG.config = extension.config;
|
|
212
|
-
XDG.data = extension.data;
|
|
213
|
-
XDG.runtime = extension.runtime;
|
|
214
|
-
XDG.state = extension.state;
|
|
215
|
-
XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
|
|
216
|
-
var pathList = env.get("XDG_CONFIG_DIRS");
|
|
217
|
-
return __spreadArray([extension.config()], pathList ? pathList.split(path5.delimiter) : []);
|
|
218
|
-
}, "configDirs");
|
|
219
|
-
XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
|
|
220
|
-
var pathList = env.get("XDG_DATA_DIRS");
|
|
221
|
-
return __spreadArray([extension.data()], pathList ? pathList.split(path5.delimiter) : []);
|
|
222
|
-
}, "dataDirs");
|
|
223
|
-
return XDG;
|
|
224
|
-
}
|
|
225
|
-
__name(XDG_2, "XDG_");
|
|
226
|
-
return XDG_2;
|
|
227
|
-
}();
|
|
228
|
-
return { XDG: new XDG_() };
|
|
229
|
-
}
|
|
230
|
-
__name(Adapt, "Adapt");
|
|
231
|
-
exports.Adapt = Adapt;
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
|
|
235
|
-
// ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js
|
|
236
|
-
var require_OSPaths = __commonJS({
|
|
237
|
-
"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js"(exports) {
|
|
238
|
-
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
239
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
240
|
-
to[j] = from[i];
|
|
241
|
-
return to;
|
|
242
|
-
};
|
|
243
|
-
exports.__esModule = true;
|
|
244
|
-
exports.Adapt = void 0;
|
|
245
|
-
function isEmpty(s) {
|
|
246
|
-
return !s;
|
|
247
|
-
}
|
|
248
|
-
__name(isEmpty, "isEmpty");
|
|
249
|
-
function Adapt(adapter_) {
|
|
250
|
-
var env = adapter_.env, os2 = adapter_.os, path5 = adapter_.path;
|
|
251
|
-
var isWinOS = /^win/i.test(adapter_.process.platform);
|
|
252
|
-
function normalizePath(path_) {
|
|
253
|
-
return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
|
|
254
|
-
}
|
|
255
|
-
__name(normalizePath, "normalizePath");
|
|
256
|
-
function home() {
|
|
257
|
-
var posix = /* @__PURE__ */ __name(function() {
|
|
258
|
-
return normalizePath((typeof os2.homedir === "function" ? os2.homedir() : void 0) || env.get("HOME"));
|
|
259
|
-
}, "posix");
|
|
260
|
-
var windows = /* @__PURE__ */ __name(function() {
|
|
261
|
-
var priorityList = [
|
|
262
|
-
typeof os2.homedir === "function" ? os2.homedir() : void 0,
|
|
263
|
-
env.get("USERPROFILE"),
|
|
264
|
-
env.get("HOME"),
|
|
265
|
-
env.get("HOMEDRIVE") || env.get("HOMEPATH") ? path5.join(env.get("HOMEDRIVE") || "", env.get("HOMEPATH") || "") : void 0
|
|
266
|
-
];
|
|
267
|
-
return normalizePath(priorityList.find(function(v) {
|
|
268
|
-
return !isEmpty(v);
|
|
269
|
-
}));
|
|
270
|
-
}, "windows");
|
|
271
|
-
return isWinOS ? windows() : posix();
|
|
272
|
-
}
|
|
273
|
-
__name(home, "home");
|
|
274
|
-
function temp() {
|
|
275
|
-
function joinPathToBase(base, segments) {
|
|
276
|
-
return base ? path5.join.apply(path5, __spreadArray([base], segments)) : void 0;
|
|
277
|
-
}
|
|
278
|
-
__name(joinPathToBase, "joinPathToBase");
|
|
279
|
-
function posix() {
|
|
280
|
-
var fallback = "/tmp";
|
|
281
|
-
var priorityList = [
|
|
282
|
-
typeof os2.tmpdir === "function" ? os2.tmpdir() : void 0,
|
|
283
|
-
env.get("TMPDIR"),
|
|
284
|
-
env.get("TEMP"),
|
|
285
|
-
env.get("TMP")
|
|
286
|
-
];
|
|
287
|
-
return normalizePath(priorityList.find(function(v) {
|
|
288
|
-
return !isEmpty(v);
|
|
289
|
-
})) || fallback;
|
|
290
|
-
}
|
|
291
|
-
__name(posix, "posix");
|
|
292
|
-
function windows() {
|
|
293
|
-
var fallback = "C:\\Temp";
|
|
294
|
-
var priorityListLazy = [
|
|
295
|
-
typeof os2.tmpdir === "function" ? os2.tmpdir : function() {
|
|
296
|
-
return void 0;
|
|
297
|
-
},
|
|
298
|
-
function() {
|
|
299
|
-
return env.get("TEMP");
|
|
300
|
-
},
|
|
301
|
-
function() {
|
|
302
|
-
return env.get("TMP");
|
|
303
|
-
},
|
|
304
|
-
function() {
|
|
305
|
-
return joinPathToBase(env.get("LOCALAPPDATA"), ["Temp"]);
|
|
306
|
-
},
|
|
307
|
-
function() {
|
|
308
|
-
return joinPathToBase(home(), ["AppData", "Local", "Temp"]);
|
|
309
|
-
},
|
|
310
|
-
function() {
|
|
311
|
-
return joinPathToBase(env.get("ALLUSERSPROFILE"), ["Temp"]);
|
|
312
|
-
},
|
|
313
|
-
function() {
|
|
314
|
-
return joinPathToBase(env.get("SystemRoot"), ["Temp"]);
|
|
315
|
-
},
|
|
316
|
-
function() {
|
|
317
|
-
return joinPathToBase(env.get("windir"), ["Temp"]);
|
|
318
|
-
},
|
|
319
|
-
function() {
|
|
320
|
-
return joinPathToBase(env.get("SystemDrive"), ["\\", "Temp"]);
|
|
321
|
-
}
|
|
322
|
-
];
|
|
323
|
-
var v = priorityListLazy.find(function(v2) {
|
|
324
|
-
return v2 && !isEmpty(v2());
|
|
325
|
-
});
|
|
326
|
-
return v && normalizePath(v()) || fallback;
|
|
327
|
-
}
|
|
328
|
-
__name(windows, "windows");
|
|
329
|
-
return isWinOS ? windows() : posix();
|
|
330
|
-
}
|
|
331
|
-
__name(temp, "temp");
|
|
332
|
-
var OSPaths_ = /* @__PURE__ */ function() {
|
|
333
|
-
function OSPaths_2() {
|
|
334
|
-
function OSPaths() {
|
|
335
|
-
return new OSPaths_2();
|
|
336
|
-
}
|
|
337
|
-
__name(OSPaths, "OSPaths");
|
|
338
|
-
OSPaths.home = home;
|
|
339
|
-
OSPaths.temp = temp;
|
|
340
|
-
return OSPaths;
|
|
341
|
-
}
|
|
342
|
-
__name(OSPaths_2, "OSPaths_");
|
|
343
|
-
return OSPaths_2;
|
|
344
|
-
}();
|
|
345
|
-
return { OSPaths: new OSPaths_() };
|
|
346
|
-
}
|
|
347
|
-
__name(Adapt, "Adapt");
|
|
348
|
-
exports.Adapt = Adapt;
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
|
|
352
|
-
// ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js
|
|
353
|
-
var require_node = __commonJS({
|
|
354
|
-
"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js"(exports) {
|
|
355
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
356
|
-
if (k2 === void 0) k2 = k;
|
|
357
|
-
Object.defineProperty(o, k2, { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
358
|
-
return m[k];
|
|
359
|
-
}, "get") });
|
|
360
|
-
} : function(o, m, k, k2) {
|
|
361
|
-
if (k2 === void 0) k2 = k;
|
|
362
|
-
o[k2] = m[k];
|
|
363
|
-
});
|
|
364
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
365
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
366
|
-
} : function(o, v) {
|
|
367
|
-
o["default"] = v;
|
|
368
|
-
});
|
|
369
|
-
var __importStar = exports && exports.__importStar || function(mod) {
|
|
370
|
-
if (mod && mod.__esModule) return mod;
|
|
371
|
-
var result = {};
|
|
372
|
-
if (mod != null) {
|
|
373
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
374
|
-
}
|
|
375
|
-
__setModuleDefault(result, mod);
|
|
376
|
-
return result;
|
|
377
|
-
};
|
|
378
|
-
exports.__esModule = true;
|
|
379
|
-
exports.adapter = void 0;
|
|
380
|
-
var os2 = __importStar(__require("os"));
|
|
381
|
-
var path5 = __importStar(__require("path"));
|
|
382
|
-
exports.adapter = {
|
|
383
|
-
atImportPermissions: { env: true },
|
|
384
|
-
env: {
|
|
385
|
-
get: /* @__PURE__ */ __name(function(s) {
|
|
386
|
-
return process.env[s];
|
|
387
|
-
}, "get")
|
|
388
|
-
},
|
|
389
|
-
os: os2,
|
|
390
|
-
path: path5,
|
|
391
|
-
process
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
|
|
396
|
-
// ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js
|
|
397
|
-
var require_mod_cjs = __commonJS({
|
|
398
|
-
"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js"(exports, module) {
|
|
399
|
-
var OSPaths_js_1 = require_OSPaths();
|
|
400
|
-
var node_js_1 = require_node();
|
|
401
|
-
module.exports = OSPaths_js_1.Adapt(node_js_1.adapter).OSPaths;
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
|
|
405
|
-
// ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js
|
|
406
|
-
var require_node2 = __commonJS({
|
|
407
|
-
"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js"(exports) {
|
|
408
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
409
|
-
if (k2 === void 0) k2 = k;
|
|
410
|
-
Object.defineProperty(o, k2, { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
411
|
-
return m[k];
|
|
412
|
-
}, "get") });
|
|
413
|
-
} : function(o, m, k, k2) {
|
|
414
|
-
if (k2 === void 0) k2 = k;
|
|
415
|
-
o[k2] = m[k];
|
|
416
|
-
});
|
|
417
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
418
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
419
|
-
} : function(o, v) {
|
|
420
|
-
o["default"] = v;
|
|
421
|
-
});
|
|
422
|
-
var __importStar = exports && exports.__importStar || function(mod) {
|
|
423
|
-
if (mod && mod.__esModule) return mod;
|
|
424
|
-
var result = {};
|
|
425
|
-
if (mod != null) {
|
|
426
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
427
|
-
}
|
|
428
|
-
__setModuleDefault(result, mod);
|
|
429
|
-
return result;
|
|
430
|
-
};
|
|
431
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
432
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
433
|
-
};
|
|
434
|
-
exports.__esModule = true;
|
|
435
|
-
exports.adapter = void 0;
|
|
436
|
-
var path5 = __importStar(__require("path"));
|
|
437
|
-
var os_paths_1 = __importDefault(require_mod_cjs());
|
|
438
|
-
exports.adapter = {
|
|
439
|
-
atImportPermissions: { env: true },
|
|
440
|
-
env: {
|
|
441
|
-
get: /* @__PURE__ */ __name(function(s) {
|
|
442
|
-
return process.env[s];
|
|
443
|
-
}, "get")
|
|
444
|
-
},
|
|
445
|
-
osPaths: os_paths_1["default"],
|
|
446
|
-
path: path5,
|
|
447
|
-
process
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
|
|
452
|
-
// ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js
|
|
453
|
-
var require_mod_cjs2 = __commonJS({
|
|
454
|
-
"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js"(exports, module) {
|
|
455
|
-
var XDG_js_1 = require_XDG();
|
|
456
|
-
var node_js_1 = require_node2();
|
|
457
|
-
module.exports = XDG_js_1.Adapt(node_js_1.adapter).XDG;
|
|
458
|
-
}
|
|
459
|
-
});
|
|
460
|
-
|
|
461
|
-
// ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js
|
|
462
|
-
var require_node3 = __commonJS({
|
|
463
|
-
"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js"(exports) {
|
|
464
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
465
|
-
if (k2 === void 0) k2 = k;
|
|
466
|
-
Object.defineProperty(o, k2, { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
467
|
-
return m[k];
|
|
468
|
-
}, "get") });
|
|
469
|
-
} : function(o, m, k, k2) {
|
|
470
|
-
if (k2 === void 0) k2 = k;
|
|
471
|
-
o[k2] = m[k];
|
|
472
|
-
});
|
|
473
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
474
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
475
|
-
} : function(o, v) {
|
|
476
|
-
o["default"] = v;
|
|
477
|
-
});
|
|
478
|
-
var __importStar = exports && exports.__importStar || function(mod) {
|
|
479
|
-
if (mod && mod.__esModule) return mod;
|
|
480
|
-
var result = {};
|
|
481
|
-
if (mod != null) {
|
|
482
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
483
|
-
}
|
|
484
|
-
__setModuleDefault(result, mod);
|
|
485
|
-
return result;
|
|
486
|
-
};
|
|
487
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
488
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
489
|
-
};
|
|
490
|
-
exports.__esModule = true;
|
|
491
|
-
exports.adapter = void 0;
|
|
492
|
-
var path5 = __importStar(__require("path"));
|
|
493
|
-
var xdg_portable_1 = __importDefault(require_mod_cjs2());
|
|
494
|
-
exports.adapter = {
|
|
495
|
-
atImportPermissions: { env: true, read: true },
|
|
496
|
-
meta: {
|
|
497
|
-
mainFilename: /* @__PURE__ */ __name(function() {
|
|
498
|
-
var requireMain = typeof __require !== "undefined" && __require !== null && __require.main ? __require.main : { filename: void 0 };
|
|
499
|
-
var requireMainFilename = requireMain.filename;
|
|
500
|
-
var filename = (requireMainFilename !== process.execArgv[0] ? requireMainFilename : void 0) || (typeof process._eval === "undefined" ? process.argv[1] : void 0);
|
|
501
|
-
return filename;
|
|
502
|
-
}, "mainFilename"),
|
|
503
|
-
pkgMainFilename: /* @__PURE__ */ __name(function() {
|
|
504
|
-
return process.pkg ? process.execPath : void 0;
|
|
505
|
-
}, "pkgMainFilename")
|
|
506
|
-
},
|
|
507
|
-
path: path5,
|
|
508
|
-
process,
|
|
509
|
-
xdg: xdg_portable_1["default"]
|
|
510
|
-
};
|
|
511
|
-
}
|
|
512
|
-
});
|
|
513
|
-
|
|
514
|
-
// ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js
|
|
515
|
-
var require_mod_cjs3 = __commonJS({
|
|
516
|
-
"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js"(exports, module) {
|
|
517
|
-
var XDGAppPaths_js_1 = require_XDGAppPaths();
|
|
518
|
-
var node_js_1 = require_node3();
|
|
519
|
-
module.exports = XDGAppPaths_js_1.Adapt(node_js_1.adapter).XDGAppPaths;
|
|
520
|
-
}
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
|
|
524
|
-
var require_signals = __commonJS({
|
|
525
|
-
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module) {
|
|
526
|
-
module.exports = [
|
|
527
|
-
"SIGABRT",
|
|
528
|
-
"SIGALRM",
|
|
529
|
-
"SIGHUP",
|
|
530
|
-
"SIGINT",
|
|
531
|
-
"SIGTERM"
|
|
532
|
-
];
|
|
533
|
-
if (process.platform !== "win32") {
|
|
534
|
-
module.exports.push(
|
|
535
|
-
"SIGVTALRM",
|
|
536
|
-
"SIGXCPU",
|
|
537
|
-
"SIGXFSZ",
|
|
538
|
-
"SIGUSR2",
|
|
539
|
-
"SIGTRAP",
|
|
540
|
-
"SIGSYS",
|
|
541
|
-
"SIGQUIT",
|
|
542
|
-
"SIGIOT"
|
|
543
|
-
// should detect profiler and enable/disable accordingly.
|
|
544
|
-
// see #21
|
|
545
|
-
// 'SIGPROF'
|
|
546
|
-
);
|
|
547
|
-
}
|
|
548
|
-
if (process.platform === "linux") {
|
|
549
|
-
module.exports.push(
|
|
550
|
-
"SIGIO",
|
|
551
|
-
"SIGPOLL",
|
|
552
|
-
"SIGPWR",
|
|
553
|
-
"SIGSTKFLT",
|
|
554
|
-
"SIGUNUSED"
|
|
555
|
-
);
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
});
|
|
559
|
-
|
|
560
|
-
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
561
|
-
var require_signal_exit = __commonJS({
|
|
562
|
-
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module) {
|
|
563
|
-
var process2 = global.process;
|
|
564
|
-
var processOk = /* @__PURE__ */ __name(function(process3) {
|
|
565
|
-
return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
|
566
|
-
}, "processOk");
|
|
567
|
-
if (!processOk(process2)) {
|
|
568
|
-
module.exports = function() {
|
|
569
|
-
return function() {
|
|
570
|
-
};
|
|
571
|
-
};
|
|
572
|
-
} else {
|
|
573
|
-
assert3 = __require("assert");
|
|
574
|
-
signals = require_signals();
|
|
575
|
-
isWin = /^win/i.test(process2.platform);
|
|
576
|
-
EE = __require("events");
|
|
577
|
-
if (typeof EE !== "function") {
|
|
578
|
-
EE = EE.EventEmitter;
|
|
579
|
-
}
|
|
580
|
-
if (process2.__signal_exit_emitter__) {
|
|
581
|
-
emitter = process2.__signal_exit_emitter__;
|
|
582
|
-
} else {
|
|
583
|
-
emitter = process2.__signal_exit_emitter__ = new EE();
|
|
584
|
-
emitter.count = 0;
|
|
585
|
-
emitter.emitted = {};
|
|
586
|
-
}
|
|
587
|
-
if (!emitter.infinite) {
|
|
588
|
-
emitter.setMaxListeners(Infinity);
|
|
589
|
-
emitter.infinite = true;
|
|
590
|
-
}
|
|
591
|
-
module.exports = function(cb, opts) {
|
|
592
|
-
if (!processOk(global.process)) {
|
|
593
|
-
return function() {
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
assert3.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
597
|
-
if (loaded === false) {
|
|
598
|
-
load();
|
|
599
|
-
}
|
|
600
|
-
var ev = "exit";
|
|
601
|
-
if (opts && opts.alwaysLast) {
|
|
602
|
-
ev = "afterexit";
|
|
603
|
-
}
|
|
604
|
-
var remove = /* @__PURE__ */ __name(function() {
|
|
605
|
-
emitter.removeListener(ev, cb);
|
|
606
|
-
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
607
|
-
unload();
|
|
608
|
-
}
|
|
609
|
-
}, "remove");
|
|
610
|
-
emitter.on(ev, cb);
|
|
611
|
-
return remove;
|
|
612
|
-
};
|
|
613
|
-
unload = /* @__PURE__ */ __name(function unload2() {
|
|
614
|
-
if (!loaded || !processOk(global.process)) {
|
|
615
|
-
return;
|
|
616
|
-
}
|
|
617
|
-
loaded = false;
|
|
618
|
-
signals.forEach(function(sig) {
|
|
619
|
-
try {
|
|
620
|
-
process2.removeListener(sig, sigListeners[sig]);
|
|
621
|
-
} catch (er) {
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
process2.emit = originalProcessEmit;
|
|
625
|
-
process2.reallyExit = originalProcessReallyExit;
|
|
626
|
-
emitter.count -= 1;
|
|
627
|
-
}, "unload");
|
|
628
|
-
module.exports.unload = unload;
|
|
629
|
-
emit = /* @__PURE__ */ __name(function emit2(event, code, signal) {
|
|
630
|
-
if (emitter.emitted[event]) {
|
|
631
|
-
return;
|
|
632
|
-
}
|
|
633
|
-
emitter.emitted[event] = true;
|
|
634
|
-
emitter.emit(event, code, signal);
|
|
635
|
-
}, "emit");
|
|
636
|
-
sigListeners = {};
|
|
637
|
-
signals.forEach(function(sig) {
|
|
638
|
-
sigListeners[sig] = /* @__PURE__ */ __name(function listener() {
|
|
639
|
-
if (!processOk(global.process)) {
|
|
640
|
-
return;
|
|
641
|
-
}
|
|
642
|
-
var listeners = process2.listeners(sig);
|
|
643
|
-
if (listeners.length === emitter.count) {
|
|
644
|
-
unload();
|
|
645
|
-
emit("exit", null, sig);
|
|
646
|
-
emit("afterexit", null, sig);
|
|
647
|
-
if (isWin && sig === "SIGHUP") {
|
|
648
|
-
sig = "SIGINT";
|
|
649
|
-
}
|
|
650
|
-
process2.kill(process2.pid, sig);
|
|
651
|
-
}
|
|
652
|
-
}, "listener");
|
|
653
|
-
});
|
|
654
|
-
module.exports.signals = function() {
|
|
655
|
-
return signals;
|
|
656
|
-
};
|
|
657
|
-
loaded = false;
|
|
658
|
-
load = /* @__PURE__ */ __name(function load2() {
|
|
659
|
-
if (loaded || !processOk(global.process)) {
|
|
660
|
-
return;
|
|
661
|
-
}
|
|
662
|
-
loaded = true;
|
|
663
|
-
emitter.count += 1;
|
|
664
|
-
signals = signals.filter(function(sig) {
|
|
665
|
-
try {
|
|
666
|
-
process2.on(sig, sigListeners[sig]);
|
|
667
|
-
return true;
|
|
668
|
-
} catch (er) {
|
|
669
|
-
return false;
|
|
670
|
-
}
|
|
671
|
-
});
|
|
672
|
-
process2.emit = processEmit;
|
|
673
|
-
process2.reallyExit = processReallyExit;
|
|
674
|
-
}, "load");
|
|
675
|
-
module.exports.load = load;
|
|
676
|
-
originalProcessReallyExit = process2.reallyExit;
|
|
677
|
-
processReallyExit = /* @__PURE__ */ __name(function processReallyExit2(code) {
|
|
678
|
-
if (!processOk(global.process)) {
|
|
679
|
-
return;
|
|
680
|
-
}
|
|
681
|
-
process2.exitCode = code || /* istanbul ignore next */
|
|
682
|
-
0;
|
|
683
|
-
emit("exit", process2.exitCode, null);
|
|
684
|
-
emit("afterexit", process2.exitCode, null);
|
|
685
|
-
originalProcessReallyExit.call(process2, process2.exitCode);
|
|
686
|
-
}, "processReallyExit");
|
|
687
|
-
originalProcessEmit = process2.emit;
|
|
688
|
-
processEmit = /* @__PURE__ */ __name(function processEmit2(ev, arg) {
|
|
689
|
-
if (ev === "exit" && processOk(global.process)) {
|
|
690
|
-
if (arg !== void 0) {
|
|
691
|
-
process2.exitCode = arg;
|
|
692
|
-
}
|
|
693
|
-
var ret = originalProcessEmit.apply(this, arguments);
|
|
694
|
-
emit("exit", process2.exitCode, null);
|
|
695
|
-
emit("afterexit", process2.exitCode, null);
|
|
696
|
-
return ret;
|
|
697
|
-
} else {
|
|
698
|
-
return originalProcessEmit.apply(this, arguments);
|
|
699
|
-
}
|
|
700
|
-
}, "processEmit");
|
|
701
|
-
}
|
|
702
|
-
var assert3;
|
|
703
|
-
var signals;
|
|
704
|
-
var isWin;
|
|
705
|
-
var EE;
|
|
706
|
-
var emitter;
|
|
707
|
-
var unload;
|
|
708
|
-
var emit;
|
|
709
|
-
var sigListeners;
|
|
710
|
-
var loaded;
|
|
711
|
-
var load;
|
|
712
|
-
var originalProcessReallyExit;
|
|
713
|
-
var processReallyExit;
|
|
714
|
-
var originalProcessEmit;
|
|
715
|
-
var processEmit;
|
|
716
|
-
}
|
|
717
|
-
});
|
|
718
|
-
|
|
719
21
|
// ../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js
|
|
720
22
|
var require_command_exists = __commonJS({
|
|
721
23
|
"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js"(exports, module) {
|
|
@@ -891,7 +193,7 @@ var require_ini = __commonJS({
|
|
|
891
193
|
opt.whitespace = opt.whitespace === true;
|
|
892
194
|
}
|
|
893
195
|
var separator = opt.whitespace ? " = " : "=";
|
|
894
|
-
Object.keys(obj).forEach(function(k,
|
|
196
|
+
Object.keys(obj).forEach(function(k, _, __) {
|
|
895
197
|
var val = obj[k];
|
|
896
198
|
if (val && Array.isArray(val)) {
|
|
897
199
|
val.forEach(function(item) {
|
|
@@ -904,7 +206,7 @@ var require_ini = __commonJS({
|
|
|
904
206
|
});
|
|
905
207
|
if (opt.section && out.length)
|
|
906
208
|
out = "[" + safe(opt.section) + "]" + eol + out;
|
|
907
|
-
children.forEach(function(k,
|
|
209
|
+
children.forEach(function(k, _, __) {
|
|
908
210
|
var nk = dotSplit(k).join("\\.");
|
|
909
211
|
var section = (opt.section ? opt.section + "." : "") + nk;
|
|
910
212
|
var child = encode(obj[k], {
|
|
@@ -930,7 +232,7 @@ var require_ini = __commonJS({
|
|
|
930
232
|
var section = null;
|
|
931
233
|
var re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;
|
|
932
234
|
var lines = str.split(/[\r\n]+/g);
|
|
933
|
-
lines.forEach(function(line,
|
|
235
|
+
lines.forEach(function(line, _, __) {
|
|
934
236
|
if (!line || line.match(/^\s*[;#]/))
|
|
935
237
|
return;
|
|
936
238
|
var match = line.match(re);
|
|
@@ -969,14 +271,14 @@ var require_ini = __commonJS({
|
|
|
969
271
|
else
|
|
970
272
|
p[key] = value;
|
|
971
273
|
});
|
|
972
|
-
Object.keys(out).filter(function(k,
|
|
274
|
+
Object.keys(out).filter(function(k, _, __) {
|
|
973
275
|
if (!out[k] || typeof out[k] !== "object" || Array.isArray(out[k]))
|
|
974
276
|
return false;
|
|
975
277
|
var parts = dotSplit(k);
|
|
976
278
|
var p2 = out;
|
|
977
279
|
var l = parts.pop();
|
|
978
280
|
var nl = l.replace(/\\\./g, ".");
|
|
979
|
-
parts.forEach(function(part,
|
|
281
|
+
parts.forEach(function(part, _2, __2) {
|
|
980
282
|
if (part === "__proto__")
|
|
981
283
|
return;
|
|
982
284
|
if (!p2[part] || typeof p2[part] !== "object")
|
|
@@ -987,7 +289,7 @@ var require_ini = __commonJS({
|
|
|
987
289
|
return false;
|
|
988
290
|
p2[nl] = out[k];
|
|
989
291
|
return true;
|
|
990
|
-
}).forEach(function(del,
|
|
292
|
+
}).forEach(function(del, _, __) {
|
|
991
293
|
delete out[del];
|
|
992
294
|
});
|
|
993
295
|
return out;
|
|
@@ -1008,7 +310,7 @@ var require_ini = __commonJS({
|
|
|
1008
310
|
val = val.substr(1, val.length - 2);
|
|
1009
311
|
try {
|
|
1010
312
|
val = JSON.parse(val);
|
|
1011
|
-
} catch (
|
|
313
|
+
} catch (_) {
|
|
1012
314
|
}
|
|
1013
315
|
} else {
|
|
1014
316
|
var esc = false;
|
|
@@ -1885,6 +1187,7 @@ var defaultWranglerConfig = {
|
|
|
1885
1187
|
/* TOP-LEVEL ONLY FIELDS */
|
|
1886
1188
|
pages_build_output_dir: void 0,
|
|
1887
1189
|
send_metrics: void 0,
|
|
1190
|
+
dependencies_instrumentation: void 0,
|
|
1888
1191
|
dev: {
|
|
1889
1192
|
ip: process.platform === "win32" ? "127.0.0.1" : "localhost",
|
|
1890
1193
|
port: void 0,
|
|
@@ -1999,7 +1302,7 @@ var defaultWranglerConfig = {
|
|
|
1999
1302
|
vpc_networks: []
|
|
2000
1303
|
};
|
|
2001
1304
|
var experimental_patchConfig = /* @__PURE__ */ __name((configPath, patch, isArrayInsertion = true) => {
|
|
2002
|
-
let configString = readFileSync
|
|
1305
|
+
let configString = readFileSync(configPath);
|
|
2003
1306
|
if (configPath.endsWith("toml")) {
|
|
2004
1307
|
if (configString.includes("#")) {
|
|
2005
1308
|
throw new PatchConfigError(
|
|
@@ -2107,7 +1410,7 @@ var util;
|
|
|
2107
1410
|
}
|
|
2108
1411
|
__name(joinValues, "joinValues");
|
|
2109
1412
|
util2.joinValues = joinValues;
|
|
2110
|
-
util2.jsonStringifyReplacer = (
|
|
1413
|
+
util2.jsonStringifyReplacer = (_, value) => {
|
|
2111
1414
|
if (typeof value === "bigint") {
|
|
2112
1415
|
return value.toString();
|
|
2113
1416
|
}
|
|
@@ -5924,44 +5227,13 @@ function isValidWorkflowName(name) {
|
|
|
5924
5227
|
__name(isValidWorkflowName, "isValidWorkflowName");
|
|
5925
5228
|
z.object({
|
|
5926
5229
|
retries: z.object({
|
|
5927
|
-
delay: z.number().gte(0).or(z.string()),
|
|
5230
|
+
delay: z.number().gte(0).or(z.string()).or(z.function()),
|
|
5928
5231
|
limit: z.number().gte(0),
|
|
5929
5232
|
backoff: z.enum(["constant", "linear", "exponential"]).optional()
|
|
5930
5233
|
}).strict().optional(),
|
|
5931
5234
|
timeout: z.number().gte(0).or(z.string()).optional()
|
|
5932
5235
|
}).strict();
|
|
5933
5236
|
|
|
5934
|
-
// ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js
|
|
5935
|
-
var mod_esm_exports = {};
|
|
5936
|
-
__export(mod_esm_exports, {
|
|
5937
|
-
default: () => mod_esm_default
|
|
5938
|
-
});
|
|
5939
|
-
var import_mod_cjs = __toESM(require_mod_cjs3(), 1);
|
|
5940
|
-
__reExport(mod_esm_exports, __toESM(require_mod_cjs3(), 1));
|
|
5941
|
-
var mod_esm_default = import_mod_cjs.default;
|
|
5942
|
-
|
|
5943
|
-
// src/global-wrangler-config-path.ts
|
|
5944
|
-
function getGlobalConfigPath({
|
|
5945
|
-
appName = "wrangler",
|
|
5946
|
-
leadingDot = true,
|
|
5947
|
-
useLegacyHomeDir = true
|
|
5948
|
-
} = {}) {
|
|
5949
|
-
const dirName = `${leadingDot ? "." : ""}${appName}`;
|
|
5950
|
-
const configDir = mod_esm_default(dirName).config();
|
|
5951
|
-
if (useLegacyHomeDir) {
|
|
5952
|
-
const legacyConfigDir = path3.join(os.homedir(), dirName);
|
|
5953
|
-
if (isDirectory(legacyConfigDir)) {
|
|
5954
|
-
return legacyConfigDir;
|
|
5955
|
-
}
|
|
5956
|
-
}
|
|
5957
|
-
return configDir;
|
|
5958
|
-
}
|
|
5959
|
-
__name(getGlobalConfigPath, "getGlobalConfigPath");
|
|
5960
|
-
function getGlobalWranglerConfigPath() {
|
|
5961
|
-
return getGlobalConfigPath();
|
|
5962
|
-
}
|
|
5963
|
-
__name(getGlobalWranglerConfigPath, "getGlobalWranglerConfigPath");
|
|
5964
|
-
|
|
5965
5237
|
// src/environment-variables/factory.ts
|
|
5966
5238
|
function getBooleanEnvironmentVariableFactory(options) {
|
|
5967
5239
|
return () => {
|
|
@@ -6115,7 +5387,7 @@ var getBuildPlatformFromEnv = getEnvironmentVariableFactory({
|
|
|
6115
5387
|
var getRegistryPath = getEnvironmentVariableFactory({
|
|
6116
5388
|
variableName: "WRANGLER_REGISTRY_PATH",
|
|
6117
5389
|
defaultValue() {
|
|
6118
|
-
return
|
|
5390
|
+
return path2.join(getGlobalConfigPath(), "registry");
|
|
6119
5391
|
}
|
|
6120
5392
|
});
|
|
6121
5393
|
var getD1ExtraLocationChoices = getEnvironmentVariableFactory({
|
|
@@ -6578,10 +5850,10 @@ var isRecord = /* @__PURE__ */ __name((value) => typeof value === "object" && va
|
|
|
6578
5850
|
var validateUniqueNameProperty = /* @__PURE__ */ __name((diagnostics, field, value) => {
|
|
6579
5851
|
if (Array.isArray(value)) {
|
|
6580
5852
|
const nameCount = /* @__PURE__ */ new Map();
|
|
6581
|
-
Object.entries(value).forEach(([
|
|
5853
|
+
Object.entries(value).forEach(([_, entry]) => {
|
|
6582
5854
|
nameCount.set(entry.name, (nameCount.get(entry.name) ?? 0) + 1);
|
|
6583
5855
|
});
|
|
6584
|
-
const duplicates = Array.from(nameCount.entries()).filter(([
|
|
5856
|
+
const duplicates = Array.from(nameCount.entries()).filter(([_, count]) => count > 1).map(([name]) => name);
|
|
6585
5857
|
if (duplicates.length > 0) {
|
|
6586
5858
|
const list = duplicates.join('", "');
|
|
6587
5859
|
diagnostics.errors.push(
|
|
@@ -6714,7 +5986,7 @@ function isPagesConfig(rawConfig) {
|
|
|
6714
5986
|
__name(isPagesConfig, "isPagesConfig");
|
|
6715
5987
|
function normalizeAndValidateConfig(rawConfig, configPath, userConfigPath, args, preserveOriginalMain = false) {
|
|
6716
5988
|
const diagnostics = new Diagnostics(
|
|
6717
|
-
`Processing ${configPath ?
|
|
5989
|
+
`Processing ${configPath ? path2.relative(process.cwd(), configPath) : "wrangler"} configuration:`
|
|
6718
5990
|
);
|
|
6719
5991
|
validateOptionalProperty(
|
|
6720
5992
|
diagnostics,
|
|
@@ -6730,6 +6002,31 @@ function normalizeAndValidateConfig(rawConfig, configPath, userConfigPath, args,
|
|
|
6730
6002
|
rawConfig.send_metrics,
|
|
6731
6003
|
"boolean"
|
|
6732
6004
|
);
|
|
6005
|
+
if (validateOptionalProperty(
|
|
6006
|
+
diagnostics,
|
|
6007
|
+
"",
|
|
6008
|
+
"dependencies_instrumentation",
|
|
6009
|
+
rawConfig.dependencies_instrumentation,
|
|
6010
|
+
"object"
|
|
6011
|
+
)) {
|
|
6012
|
+
if (typeof rawConfig.dependencies_instrumentation === "object") {
|
|
6013
|
+
validateOptionalProperty(
|
|
6014
|
+
diagnostics,
|
|
6015
|
+
"dependencies_instrumentation",
|
|
6016
|
+
"enabled",
|
|
6017
|
+
rawConfig.dependencies_instrumentation.enabled,
|
|
6018
|
+
"boolean"
|
|
6019
|
+
);
|
|
6020
|
+
validateAdditionalProperties(
|
|
6021
|
+
diagnostics,
|
|
6022
|
+
"dependencies_instrumentation",
|
|
6023
|
+
Object.keys(
|
|
6024
|
+
rawConfig.dependencies_instrumentation
|
|
6025
|
+
),
|
|
6026
|
+
["enabled"]
|
|
6027
|
+
);
|
|
6028
|
+
}
|
|
6029
|
+
}
|
|
6733
6030
|
validateOptionalProperty(
|
|
6734
6031
|
diagnostics,
|
|
6735
6032
|
"",
|
|
@@ -6858,6 +6155,7 @@ Consider adding an environment configuration section to the ${configFileName(con
|
|
|
6858
6155
|
/** Legacy_env is wrangler environments, as opposed to service environments. Wrangler environments is not legacy. */
|
|
6859
6156
|
legacy_env: !useServiceEnvironments,
|
|
6860
6157
|
send_metrics: rawConfig.send_metrics,
|
|
6158
|
+
dependencies_instrumentation: rawConfig.dependencies_instrumentation,
|
|
6861
6159
|
keep_vars: rawConfig.keep_vars,
|
|
6862
6160
|
...activeEnv,
|
|
6863
6161
|
dev: normalizeAndValidateDev(diagnostics, rawConfig.dev ?? {}, args),
|
|
@@ -6939,13 +6237,13 @@ function normalizeAndValidateBuild(diagnostics, rawEnv, rawBuild, configPath) {
|
|
|
6939
6237
|
// be configured in the Wrangler configuration file, but who knows, that may
|
|
6940
6238
|
// change in the future, so we do a check anyway
|
|
6941
6239
|
command && configPath ? Array.isArray(watch_dir) ? watch_dir.map(
|
|
6942
|
-
(dir) =>
|
|
6240
|
+
(dir) => path2.relative(
|
|
6943
6241
|
process.cwd(),
|
|
6944
|
-
|
|
6242
|
+
path2.join(path2.dirname(configPath), `${dir}`)
|
|
6945
6243
|
)
|
|
6946
|
-
) :
|
|
6244
|
+
) : path2.relative(
|
|
6947
6245
|
process.cwd(),
|
|
6948
|
-
|
|
6246
|
+
path2.join(path2.dirname(configPath), `${watch_dir}`)
|
|
6949
6247
|
) : watch_dir
|
|
6950
6248
|
),
|
|
6951
6249
|
cwd
|
|
@@ -6953,11 +6251,11 @@ function normalizeAndValidateBuild(diagnostics, rawEnv, rawBuild, configPath) {
|
|
|
6953
6251
|
}
|
|
6954
6252
|
__name(normalizeAndValidateBuild, "normalizeAndValidateBuild");
|
|
6955
6253
|
function normalizeAndValidateMainField(configPath, rawMain) {
|
|
6956
|
-
const configDir =
|
|
6254
|
+
const configDir = path2.dirname(configPath ?? "wrangler.toml");
|
|
6957
6255
|
if (rawMain !== void 0) {
|
|
6958
6256
|
if (typeof rawMain === "string") {
|
|
6959
|
-
const directory =
|
|
6960
|
-
return
|
|
6257
|
+
const directory = path2.resolve(configDir);
|
|
6258
|
+
return path2.resolve(directory, rawMain);
|
|
6961
6259
|
} else {
|
|
6962
6260
|
return rawMain;
|
|
6963
6261
|
}
|
|
@@ -6967,11 +6265,11 @@ function normalizeAndValidateMainField(configPath, rawMain) {
|
|
|
6967
6265
|
}
|
|
6968
6266
|
__name(normalizeAndValidateMainField, "normalizeAndValidateMainField");
|
|
6969
6267
|
function normalizeAndValidateBaseDirField(configPath, rawDir) {
|
|
6970
|
-
const configDir =
|
|
6268
|
+
const configDir = path2.dirname(configPath ?? "wrangler.toml");
|
|
6971
6269
|
if (rawDir !== void 0) {
|
|
6972
6270
|
if (typeof rawDir === "string") {
|
|
6973
|
-
const directory =
|
|
6974
|
-
return
|
|
6271
|
+
const directory = path2.resolve(configDir);
|
|
6272
|
+
return path2.resolve(directory, rawDir);
|
|
6975
6273
|
} else {
|
|
6976
6274
|
return rawDir;
|
|
6977
6275
|
}
|
|
@@ -6981,11 +6279,11 @@ function normalizeAndValidateBaseDirField(configPath, rawDir) {
|
|
|
6981
6279
|
}
|
|
6982
6280
|
__name(normalizeAndValidateBaseDirField, "normalizeAndValidateBaseDirField");
|
|
6983
6281
|
function normalizeAndValidatePagesBuildOutputDir(configPath, rawPagesDir) {
|
|
6984
|
-
const configDir =
|
|
6282
|
+
const configDir = path2.dirname(configPath ?? "wrangler.toml");
|
|
6985
6283
|
if (rawPagesDir !== void 0) {
|
|
6986
6284
|
if (typeof rawPagesDir === "string") {
|
|
6987
|
-
const directory =
|
|
6988
|
-
return
|
|
6285
|
+
const directory = path2.resolve(configDir);
|
|
6286
|
+
return path2.resolve(directory, rawPagesDir);
|
|
6989
6287
|
} else {
|
|
6990
6288
|
return rawPagesDir;
|
|
6991
6289
|
}
|
|
@@ -7140,9 +6438,9 @@ function normalizeAndValidateSite(diagnostics, configPath, rawConfig, mainEntryP
|
|
|
7140
6438
|
`site.entry-point`,
|
|
7141
6439
|
`Delete the \`site.entry-point\` field, then add the top level \`main\` field to your configuration file:
|
|
7142
6440
|
\`\`\`
|
|
7143
|
-
main = "${
|
|
6441
|
+
main = "${path2.join(
|
|
7144
6442
|
String(legacySiteEntryPoint) || "workers-site",
|
|
7145
|
-
|
|
6443
|
+
path2.extname(String(legacySiteEntryPoint) || "workers-site") ? "" : "index.js"
|
|
7146
6444
|
)}"
|
|
7147
6445
|
\`\`\``,
|
|
7148
6446
|
false,
|
|
@@ -7167,9 +6465,9 @@ Delete the deprecated \`site.entry-point\` field from your config.`
|
|
|
7167
6465
|
);
|
|
7168
6466
|
}
|
|
7169
6467
|
if (configPath && siteEntryPoint) {
|
|
7170
|
-
siteEntryPoint =
|
|
6468
|
+
siteEntryPoint = path2.relative(
|
|
7171
6469
|
process.cwd(),
|
|
7172
|
-
|
|
6470
|
+
path2.join(path2.dirname(configPath), siteEntryPoint)
|
|
7173
6471
|
);
|
|
7174
6472
|
}
|
|
7175
6473
|
return {
|
|
@@ -7215,9 +6513,9 @@ function normalizeAndValidateModulePaths(diagnostics, configPath, field, rawMapp
|
|
|
7215
6513
|
for (const [name, filePath] of Object.entries(rawMapping)) {
|
|
7216
6514
|
if (isString(diagnostics, `${field}['${name}']`, filePath, void 0)) {
|
|
7217
6515
|
if (configPath) {
|
|
7218
|
-
mapping[name] = configPath ?
|
|
6516
|
+
mapping[name] = configPath ? path2.relative(
|
|
7219
6517
|
process.cwd(),
|
|
7220
|
-
|
|
6518
|
+
path2.join(path2.dirname(configPath), filePath)
|
|
7221
6519
|
) : filePath;
|
|
7222
6520
|
}
|
|
7223
6521
|
}
|
|
@@ -8266,9 +7564,9 @@ function validateAndNormalizeTsconfig(diagnostics, topLevelEnv, rawEnv, configPa
|
|
|
8266
7564
|
isString,
|
|
8267
7565
|
void 0
|
|
8268
7566
|
);
|
|
8269
|
-
return configPath && tsconfig ?
|
|
7567
|
+
return configPath && tsconfig ? path2.relative(
|
|
8270
7568
|
process.cwd(),
|
|
8271
|
-
|
|
7569
|
+
path2.join(path2.dirname(configPath), tsconfig)
|
|
8272
7570
|
) : tsconfig;
|
|
8273
7571
|
}
|
|
8274
7572
|
__name(validateAndNormalizeTsconfig, "validateAndNormalizeTsconfig");
|
|
@@ -9142,9 +8440,9 @@ function validateContainerApp(envName, topLevelName, configPath) {
|
|
|
9142
8440
|
let resolvedBuildContextPath = void 0;
|
|
9143
8441
|
try {
|
|
9144
8442
|
if (isDockerfile(resolvedImage, configPath)) {
|
|
9145
|
-
const baseDir = configPath ?
|
|
9146
|
-
resolvedImage =
|
|
9147
|
-
resolvedBuildContextPath = containerAppOptional.image_build_context ?
|
|
8443
|
+
const baseDir = configPath ? path2.dirname(configPath) : process.cwd();
|
|
8444
|
+
resolvedImage = path2.resolve(baseDir, resolvedImage);
|
|
8445
|
+
resolvedBuildContextPath = containerAppOptional.image_build_context ? path2.resolve(baseDir, containerAppOptional.image_build_context) : path2.dirname(resolvedImage);
|
|
9148
8446
|
}
|
|
9149
8447
|
} catch (err) {
|
|
9150
8448
|
if (err instanceof Error && err.message) {
|
|
@@ -9813,6 +9111,38 @@ var validateD1Binding = /* @__PURE__ */ __name((diagnostics, field, value) => {
|
|
|
9813
9111
|
);
|
|
9814
9112
|
isValid2 = false;
|
|
9815
9113
|
}
|
|
9114
|
+
if (!isOptionalProperty(value, "database_name", "string")) {
|
|
9115
|
+
diagnostics.errors.push(
|
|
9116
|
+
`"${field}" bindings should, optionally, have a string "database_name" field but got ${JSON.stringify(
|
|
9117
|
+
value
|
|
9118
|
+
)}.`
|
|
9119
|
+
);
|
|
9120
|
+
isValid2 = false;
|
|
9121
|
+
}
|
|
9122
|
+
if (!isOptionalProperty(value, "migrations_dir", "string")) {
|
|
9123
|
+
diagnostics.errors.push(
|
|
9124
|
+
`"${field}" bindings should, optionally, have a string "migrations_dir" field but got ${JSON.stringify(
|
|
9125
|
+
value
|
|
9126
|
+
)}.`
|
|
9127
|
+
);
|
|
9128
|
+
isValid2 = false;
|
|
9129
|
+
}
|
|
9130
|
+
if (!isOptionalProperty(value, "migrations_table", "string")) {
|
|
9131
|
+
diagnostics.errors.push(
|
|
9132
|
+
`"${field}" bindings should, optionally, have a string "migrations_table" field but got ${JSON.stringify(
|
|
9133
|
+
value
|
|
9134
|
+
)}.`
|
|
9135
|
+
);
|
|
9136
|
+
isValid2 = false;
|
|
9137
|
+
}
|
|
9138
|
+
if (!isOptionalProperty(value, "database_internal_env", "string")) {
|
|
9139
|
+
diagnostics.errors.push(
|
|
9140
|
+
`"${field}" bindings should, optionally, have a string "database_internal_env" field but got ${JSON.stringify(
|
|
9141
|
+
value
|
|
9142
|
+
)}.`
|
|
9143
|
+
);
|
|
9144
|
+
isValid2 = false;
|
|
9145
|
+
}
|
|
9816
9146
|
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
|
9817
9147
|
"binding",
|
|
9818
9148
|
"database_id",
|
|
@@ -11609,8 +10939,8 @@ function isRemoteValid(targetObject, fieldPath, diagnostics) {
|
|
|
11609
10939
|
}
|
|
11610
10940
|
__name(isRemoteValid, "isRemoteValid");
|
|
11611
10941
|
function isDockerfile(imagePath, configPath) {
|
|
11612
|
-
const baseDir = configPath ?
|
|
11613
|
-
const maybeDockerfile =
|
|
10942
|
+
const baseDir = configPath ? path2.dirname(configPath) : process.cwd();
|
|
10943
|
+
const maybeDockerfile = path2.resolve(baseDir, imagePath);
|
|
11614
10944
|
if (fs2.existsSync(maybeDockerfile)) {
|
|
11615
10945
|
if (isDirectory(maybeDockerfile)) {
|
|
11616
10946
|
throw new UserError(
|
|
@@ -11834,12 +11164,347 @@ Pages requires Durable Object bindings to specify the name of the Worker where t
|
|
|
11834
11164
|
}
|
|
11835
11165
|
}
|
|
11836
11166
|
__name(validateDurableObjectBinding2, "validateDurableObjectBinding");
|
|
11167
|
+
function getPackagePath(packageName, projectPath) {
|
|
11168
|
+
try {
|
|
11169
|
+
return path2.dirname(
|
|
11170
|
+
__require.resolve(`${packageName}/package.json`, {
|
|
11171
|
+
paths: [projectPath]
|
|
11172
|
+
})
|
|
11173
|
+
);
|
|
11174
|
+
} catch {
|
|
11175
|
+
}
|
|
11176
|
+
try {
|
|
11177
|
+
return path2.dirname(
|
|
11178
|
+
__require.resolve(packageName, {
|
|
11179
|
+
paths: [projectPath]
|
|
11180
|
+
})
|
|
11181
|
+
);
|
|
11182
|
+
} catch {
|
|
11183
|
+
}
|
|
11184
|
+
return void 0;
|
|
11185
|
+
}
|
|
11186
|
+
__name(getPackagePath, "getPackagePath");
|
|
11187
|
+
function isPackageInstalled(packageName, projectPath) {
|
|
11188
|
+
return !!getPackagePath(packageName, projectPath);
|
|
11189
|
+
}
|
|
11190
|
+
__name(isPackageInstalled, "isPackageInstalled");
|
|
11191
|
+
function getInstalledPackageVersion(packageName, projectPath, opts = {}) {
|
|
11192
|
+
try {
|
|
11193
|
+
const packagePath = getPackagePath(packageName, projectPath);
|
|
11194
|
+
if (!packagePath) {
|
|
11195
|
+
return void 0;
|
|
11196
|
+
}
|
|
11197
|
+
const lastDir = opts.stopAtProjectPath === true ? projectPath : void 0;
|
|
11198
|
+
const packageJsonPath = findFileUp("package.json", packagePath, lastDir);
|
|
11199
|
+
if (!packageJsonPath) {
|
|
11200
|
+
return void 0;
|
|
11201
|
+
}
|
|
11202
|
+
const packageJson = parsePackageJSON(
|
|
11203
|
+
readFileSync(packageJsonPath),
|
|
11204
|
+
packageJsonPath
|
|
11205
|
+
);
|
|
11206
|
+
if (packageJson.name !== packageName) {
|
|
11207
|
+
const bundledVersion = packageJson.bundledVersions?.[packageName];
|
|
11208
|
+
if (bundledVersion !== void 0) {
|
|
11209
|
+
return bundledVersion;
|
|
11210
|
+
}
|
|
11211
|
+
}
|
|
11212
|
+
return packageJson.version;
|
|
11213
|
+
} catch {
|
|
11214
|
+
}
|
|
11215
|
+
}
|
|
11216
|
+
__name(getInstalledPackageVersion, "getInstalledPackageVersion");
|
|
11217
|
+
function findFileUp(name, startDir, lastDir) {
|
|
11218
|
+
let dir = startDir;
|
|
11219
|
+
const root = path2.parse(dir).root;
|
|
11220
|
+
while (true) {
|
|
11221
|
+
const candidate = path2.join(dir, name);
|
|
11222
|
+
try {
|
|
11223
|
+
if (statSync(candidate).isFile()) {
|
|
11224
|
+
return candidate;
|
|
11225
|
+
}
|
|
11226
|
+
} catch {
|
|
11227
|
+
}
|
|
11228
|
+
if (lastDir !== void 0 && dir === lastDir) {
|
|
11229
|
+
break;
|
|
11230
|
+
}
|
|
11231
|
+
const parent = path2.dirname(dir);
|
|
11232
|
+
if (parent === dir || dir === root) {
|
|
11233
|
+
break;
|
|
11234
|
+
}
|
|
11235
|
+
dir = parent;
|
|
11236
|
+
}
|
|
11237
|
+
return void 0;
|
|
11238
|
+
}
|
|
11239
|
+
__name(findFileUp, "findFileUp");
|
|
11240
|
+
|
|
11241
|
+
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
11242
|
+
var signals = [];
|
|
11243
|
+
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
11244
|
+
if (process.platform !== "win32") {
|
|
11245
|
+
signals.push(
|
|
11246
|
+
"SIGALRM",
|
|
11247
|
+
"SIGABRT",
|
|
11248
|
+
"SIGVTALRM",
|
|
11249
|
+
"SIGXCPU",
|
|
11250
|
+
"SIGXFSZ",
|
|
11251
|
+
"SIGUSR2",
|
|
11252
|
+
"SIGTRAP",
|
|
11253
|
+
"SIGSYS",
|
|
11254
|
+
"SIGQUIT",
|
|
11255
|
+
"SIGIOT"
|
|
11256
|
+
// should detect profiler and enable/disable accordingly.
|
|
11257
|
+
// see #21
|
|
11258
|
+
// 'SIGPROF'
|
|
11259
|
+
);
|
|
11260
|
+
}
|
|
11261
|
+
if (process.platform === "linux") {
|
|
11262
|
+
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
11263
|
+
}
|
|
11264
|
+
|
|
11265
|
+
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
11266
|
+
var processOk = /* @__PURE__ */ __name((process3) => !!process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function", "processOk");
|
|
11267
|
+
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
11268
|
+
var global = globalThis;
|
|
11269
|
+
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
11270
|
+
var Emitter = class {
|
|
11271
|
+
static {
|
|
11272
|
+
__name(this, "Emitter");
|
|
11273
|
+
}
|
|
11274
|
+
emitted = {
|
|
11275
|
+
afterExit: false,
|
|
11276
|
+
exit: false
|
|
11277
|
+
};
|
|
11278
|
+
listeners = {
|
|
11279
|
+
afterExit: [],
|
|
11280
|
+
exit: []
|
|
11281
|
+
};
|
|
11282
|
+
count = 0;
|
|
11283
|
+
id = Math.random();
|
|
11284
|
+
constructor() {
|
|
11285
|
+
if (global[kExitEmitter]) {
|
|
11286
|
+
return global[kExitEmitter];
|
|
11287
|
+
}
|
|
11288
|
+
ObjectDefineProperty(global, kExitEmitter, {
|
|
11289
|
+
value: this,
|
|
11290
|
+
writable: false,
|
|
11291
|
+
enumerable: false,
|
|
11292
|
+
configurable: false
|
|
11293
|
+
});
|
|
11294
|
+
}
|
|
11295
|
+
on(ev, fn) {
|
|
11296
|
+
this.listeners[ev].push(fn);
|
|
11297
|
+
}
|
|
11298
|
+
removeListener(ev, fn) {
|
|
11299
|
+
const list = this.listeners[ev];
|
|
11300
|
+
const i = list.indexOf(fn);
|
|
11301
|
+
if (i === -1) {
|
|
11302
|
+
return;
|
|
11303
|
+
}
|
|
11304
|
+
if (i === 0 && list.length === 1) {
|
|
11305
|
+
list.length = 0;
|
|
11306
|
+
} else {
|
|
11307
|
+
list.splice(i, 1);
|
|
11308
|
+
}
|
|
11309
|
+
}
|
|
11310
|
+
emit(ev, code, signal) {
|
|
11311
|
+
if (this.emitted[ev]) {
|
|
11312
|
+
return false;
|
|
11313
|
+
}
|
|
11314
|
+
this.emitted[ev] = true;
|
|
11315
|
+
let ret = false;
|
|
11316
|
+
for (const fn of this.listeners[ev]) {
|
|
11317
|
+
ret = fn(code, signal) === true || ret;
|
|
11318
|
+
}
|
|
11319
|
+
if (ev === "exit") {
|
|
11320
|
+
ret = this.emit("afterExit", code, signal) || ret;
|
|
11321
|
+
}
|
|
11322
|
+
return ret;
|
|
11323
|
+
}
|
|
11324
|
+
};
|
|
11325
|
+
var SignalExitBase = class {
|
|
11326
|
+
static {
|
|
11327
|
+
__name(this, "SignalExitBase");
|
|
11328
|
+
}
|
|
11329
|
+
};
|
|
11330
|
+
var signalExitWrap = /* @__PURE__ */ __name((handler) => {
|
|
11331
|
+
return {
|
|
11332
|
+
onExit(cb, opts) {
|
|
11333
|
+
return handler.onExit(cb, opts);
|
|
11334
|
+
},
|
|
11335
|
+
load() {
|
|
11336
|
+
return handler.load();
|
|
11337
|
+
},
|
|
11338
|
+
unload() {
|
|
11339
|
+
return handler.unload();
|
|
11340
|
+
}
|
|
11341
|
+
};
|
|
11342
|
+
}, "signalExitWrap");
|
|
11343
|
+
var SignalExitFallback = class extends SignalExitBase {
|
|
11344
|
+
static {
|
|
11345
|
+
__name(this, "SignalExitFallback");
|
|
11346
|
+
}
|
|
11347
|
+
onExit() {
|
|
11348
|
+
return () => {
|
|
11349
|
+
};
|
|
11350
|
+
}
|
|
11351
|
+
load() {
|
|
11352
|
+
}
|
|
11353
|
+
unload() {
|
|
11354
|
+
}
|
|
11355
|
+
};
|
|
11356
|
+
var SignalExit = class extends SignalExitBase {
|
|
11357
|
+
static {
|
|
11358
|
+
__name(this, "SignalExit");
|
|
11359
|
+
}
|
|
11360
|
+
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
11361
|
+
// so use a supported signal instead
|
|
11362
|
+
/* c8 ignore start */
|
|
11363
|
+
#hupSig = process2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
11364
|
+
/* c8 ignore stop */
|
|
11365
|
+
#emitter = new Emitter();
|
|
11366
|
+
#process;
|
|
11367
|
+
#originalProcessEmit;
|
|
11368
|
+
#originalProcessReallyExit;
|
|
11369
|
+
#sigListeners = {};
|
|
11370
|
+
#loaded = false;
|
|
11371
|
+
constructor(process3) {
|
|
11372
|
+
super();
|
|
11373
|
+
this.#process = process3;
|
|
11374
|
+
this.#sigListeners = {};
|
|
11375
|
+
for (const sig of signals) {
|
|
11376
|
+
this.#sigListeners[sig] = () => {
|
|
11377
|
+
const listeners = this.#process.listeners(sig);
|
|
11378
|
+
let { count } = this.#emitter;
|
|
11379
|
+
const p = process3;
|
|
11380
|
+
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
11381
|
+
count += p.__signal_exit_emitter__.count;
|
|
11382
|
+
}
|
|
11383
|
+
if (listeners.length === count) {
|
|
11384
|
+
this.unload();
|
|
11385
|
+
const ret = this.#emitter.emit("exit", null, sig);
|
|
11386
|
+
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
11387
|
+
if (!ret)
|
|
11388
|
+
process3.kill(process3.pid, s);
|
|
11389
|
+
}
|
|
11390
|
+
};
|
|
11391
|
+
}
|
|
11392
|
+
this.#originalProcessReallyExit = process3.reallyExit;
|
|
11393
|
+
this.#originalProcessEmit = process3.emit;
|
|
11394
|
+
}
|
|
11395
|
+
onExit(cb, opts) {
|
|
11396
|
+
if (!processOk(this.#process)) {
|
|
11397
|
+
return () => {
|
|
11398
|
+
};
|
|
11399
|
+
}
|
|
11400
|
+
if (this.#loaded === false) {
|
|
11401
|
+
this.load();
|
|
11402
|
+
}
|
|
11403
|
+
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
11404
|
+
this.#emitter.on(ev, cb);
|
|
11405
|
+
return () => {
|
|
11406
|
+
this.#emitter.removeListener(ev, cb);
|
|
11407
|
+
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
11408
|
+
this.unload();
|
|
11409
|
+
}
|
|
11410
|
+
};
|
|
11411
|
+
}
|
|
11412
|
+
load() {
|
|
11413
|
+
if (this.#loaded) {
|
|
11414
|
+
return;
|
|
11415
|
+
}
|
|
11416
|
+
this.#loaded = true;
|
|
11417
|
+
this.#emitter.count += 1;
|
|
11418
|
+
for (const sig of signals) {
|
|
11419
|
+
try {
|
|
11420
|
+
const fn = this.#sigListeners[sig];
|
|
11421
|
+
if (fn)
|
|
11422
|
+
this.#process.on(sig, fn);
|
|
11423
|
+
} catch (_) {
|
|
11424
|
+
}
|
|
11425
|
+
}
|
|
11426
|
+
this.#process.emit = (ev, ...a) => {
|
|
11427
|
+
return this.#processEmit(ev, ...a);
|
|
11428
|
+
};
|
|
11429
|
+
this.#process.reallyExit = (code) => {
|
|
11430
|
+
return this.#processReallyExit(code);
|
|
11431
|
+
};
|
|
11432
|
+
}
|
|
11433
|
+
unload() {
|
|
11434
|
+
if (!this.#loaded) {
|
|
11435
|
+
return;
|
|
11436
|
+
}
|
|
11437
|
+
this.#loaded = false;
|
|
11438
|
+
signals.forEach((sig) => {
|
|
11439
|
+
const listener = this.#sigListeners[sig];
|
|
11440
|
+
if (!listener) {
|
|
11441
|
+
throw new Error("Listener not defined for signal: " + sig);
|
|
11442
|
+
}
|
|
11443
|
+
try {
|
|
11444
|
+
this.#process.removeListener(sig, listener);
|
|
11445
|
+
} catch (_) {
|
|
11446
|
+
}
|
|
11447
|
+
});
|
|
11448
|
+
this.#process.emit = this.#originalProcessEmit;
|
|
11449
|
+
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
11450
|
+
this.#emitter.count -= 1;
|
|
11451
|
+
}
|
|
11452
|
+
#processReallyExit(code) {
|
|
11453
|
+
if (!processOk(this.#process)) {
|
|
11454
|
+
return 0;
|
|
11455
|
+
}
|
|
11456
|
+
this.#process.exitCode = code || 0;
|
|
11457
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
11458
|
+
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
11459
|
+
}
|
|
11460
|
+
#processEmit(ev, ...args) {
|
|
11461
|
+
const og = this.#originalProcessEmit;
|
|
11462
|
+
if (ev === "exit" && processOk(this.#process)) {
|
|
11463
|
+
if (typeof args[0] === "number") {
|
|
11464
|
+
this.#process.exitCode = args[0];
|
|
11465
|
+
}
|
|
11466
|
+
const ret = og.call(this.#process, ev, ...args);
|
|
11467
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
11468
|
+
return ret;
|
|
11469
|
+
} else {
|
|
11470
|
+
return og.call(this.#process, ev, ...args);
|
|
11471
|
+
}
|
|
11472
|
+
}
|
|
11473
|
+
};
|
|
11474
|
+
var process2 = globalThis.process;
|
|
11475
|
+
var {
|
|
11476
|
+
/**
|
|
11477
|
+
* Called when the process is exiting, whether via signal, explicit
|
|
11478
|
+
* exit, or running out of stuff to do.
|
|
11479
|
+
*
|
|
11480
|
+
* If the global process object is not suitable for instrumentation,
|
|
11481
|
+
* then this will be a no-op.
|
|
11482
|
+
*
|
|
11483
|
+
* Returns a function that may be used to unload signal-exit.
|
|
11484
|
+
*/
|
|
11485
|
+
onExit,
|
|
11486
|
+
/**
|
|
11487
|
+
* Load the listeners. Likely you never need to call this, unless
|
|
11488
|
+
* doing a rather deep integration with signal-exit functionality.
|
|
11489
|
+
* Mostly exposed for the benefit of testing.
|
|
11490
|
+
*
|
|
11491
|
+
* @internal
|
|
11492
|
+
*/
|
|
11493
|
+
load,
|
|
11494
|
+
/**
|
|
11495
|
+
* Unload the listeners. Likely you never need to call this, unless
|
|
11496
|
+
* doing a rather deep integration with signal-exit functionality.
|
|
11497
|
+
* Mostly exposed for the benefit of testing.
|
|
11498
|
+
*
|
|
11499
|
+
* @internal
|
|
11500
|
+
*/
|
|
11501
|
+
unload
|
|
11502
|
+
} = signalExitWrap(processOk(process2) ? new SignalExit(process2) : new SignalExitFallback());
|
|
11837
11503
|
|
|
11838
11504
|
// src/wrangler-tmp-dir.ts
|
|
11839
|
-
var import_signal_exit = __toESM(require_signal_exit());
|
|
11840
11505
|
function getWranglerHiddenDirPath(projectRoot) {
|
|
11841
11506
|
projectRoot ??= process.cwd();
|
|
11842
|
-
return
|
|
11507
|
+
return path2.join(projectRoot, ".wrangler");
|
|
11843
11508
|
}
|
|
11844
11509
|
__name(getWranglerHiddenDirPath, "getWranglerHiddenDirPath");
|
|
11845
11510
|
var STALE_WRANGLER_TMP_DIR_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -11860,7 +11525,7 @@ function sweepStaleWranglerTmpDirs(tmpRoot) {
|
|
|
11860
11525
|
if (!entry.isDirectory()) {
|
|
11861
11526
|
continue;
|
|
11862
11527
|
}
|
|
11863
|
-
const entryPath =
|
|
11528
|
+
const entryPath = path2.join(tmpRoot, entry.name);
|
|
11864
11529
|
try {
|
|
11865
11530
|
if (fs2.statSync(entryPath).mtimeMs < cutoff) {
|
|
11866
11531
|
removeDirSync(entryPath);
|
|
@@ -11871,10 +11536,10 @@ function sweepStaleWranglerTmpDirs(tmpRoot) {
|
|
|
11871
11536
|
}
|
|
11872
11537
|
__name(sweepStaleWranglerTmpDirs, "sweepStaleWranglerTmpDirs");
|
|
11873
11538
|
function getWranglerTmpDir(projectRoot, prefix, cleanup = true) {
|
|
11874
|
-
const tmpRoot =
|
|
11539
|
+
const tmpRoot = path2.join(getWranglerHiddenDirPath(projectRoot), "tmp");
|
|
11875
11540
|
fs2.mkdirSync(tmpRoot, { recursive: true });
|
|
11876
11541
|
sweepStaleWranglerTmpDirs(tmpRoot);
|
|
11877
|
-
const tmpPrefix =
|
|
11542
|
+
const tmpPrefix = path2.join(tmpRoot, `${prefix}-`);
|
|
11878
11543
|
const tmpDir = fs2.realpathSync(fs2.mkdtempSync(tmpPrefix));
|
|
11879
11544
|
const cleanupDir = /* @__PURE__ */ __name(() => {
|
|
11880
11545
|
if (cleanup) {
|
|
@@ -11884,7 +11549,7 @@ function getWranglerTmpDir(projectRoot, prefix, cleanup = true) {
|
|
|
11884
11549
|
}
|
|
11885
11550
|
}
|
|
11886
11551
|
}, "cleanupDir");
|
|
11887
|
-
const removeExitListener = (
|
|
11552
|
+
const removeExitListener = onExit(cleanupDir);
|
|
11888
11553
|
return {
|
|
11889
11554
|
path: tmpDir,
|
|
11890
11555
|
remove() {
|
|
@@ -12279,7 +11944,7 @@ async function downloadAndExtractTarball(response, expectedChecksum, binPath, ca
|
|
|
12279
11944
|
renameSync(extractedPath, binPath);
|
|
12280
11945
|
}
|
|
12281
11946
|
if (expectedChecksum) {
|
|
12282
|
-
const extractedBinary = readFileSync(binPath);
|
|
11947
|
+
const extractedBinary = readFileSync$1(binPath);
|
|
12283
11948
|
const actualSha256 = sha256Hex(extractedBinary);
|
|
12284
11949
|
if (actualSha256 !== expectedChecksum) {
|
|
12285
11950
|
throw new UserError(
|
|
@@ -12438,18 +12103,18 @@ function startTunnel(options) {
|
|
|
12438
12103
|
env: options.token ? { TUNNEL_TOKEN: options.token } : void 0,
|
|
12439
12104
|
skipVersionCheck: true,
|
|
12440
12105
|
logger
|
|
12441
|
-
}).then((
|
|
12442
|
-
cloudflaredProcess =
|
|
12106
|
+
}).then((process3) => {
|
|
12107
|
+
cloudflaredProcess = process3;
|
|
12443
12108
|
if (disposed) {
|
|
12444
|
-
terminateCloudflared(
|
|
12109
|
+
terminateCloudflared(process3);
|
|
12445
12110
|
}
|
|
12446
|
-
return
|
|
12111
|
+
return process3;
|
|
12447
12112
|
});
|
|
12448
|
-
const readyPromise = cloudflaredPromise.then((
|
|
12113
|
+
const readyPromise = cloudflaredPromise.then((process3) => {
|
|
12449
12114
|
if (isNamedTunnel) {
|
|
12450
12115
|
return { mode: "named" };
|
|
12451
12116
|
}
|
|
12452
|
-
return waitForQuickTunnelReady(
|
|
12117
|
+
return waitForQuickTunnelReady(process3, timeoutMs, {
|
|
12453
12118
|
logger,
|
|
12454
12119
|
origin: options.origin
|
|
12455
12120
|
});
|
|
@@ -13207,7 +12872,7 @@ function getWorkerNameFromProject(projectPath) {
|
|
|
13207
12872
|
let packageJsonName;
|
|
13208
12873
|
try {
|
|
13209
12874
|
const packageJson = parsePackageJSON(
|
|
13210
|
-
readFileSync
|
|
12875
|
+
readFileSync(packageJsonPath),
|
|
13211
12876
|
packageJsonPath
|
|
13212
12877
|
);
|
|
13213
12878
|
packageJsonName = packageJson.name;
|
|
@@ -13253,4 +12918,4 @@ safe-buffer/index.js:
|
|
|
13253
12918
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
13254
12919
|
*/
|
|
13255
12920
|
|
|
13256
|
-
export { BunPackageManager, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, Diagnostics, LOGGER_LEVELS, NpmPackageManager, PatchConfigError, PnpmPackageManager, YarnPackageManager, addAuthorizationHeader, bucketFormatMessage, checkWorkerNameValidity, defaultWranglerConfig, experimental_patchConfig, extractAccountTag, extractWAFBlockRayId, fetchInternalBase, fetchKVGetValueBase, fetchLatestNpmVersion, fetchListResultBase, fetchResultBase, formatTime, friendlyBindingNames2 as friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getBrowserRenderingHeadfulFromEnv, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getCloudflaredPathFromEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getDurableObjectExports, getEnvironmentVariableFactory,
|
|
12921
|
+
export { BunPackageManager, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, Diagnostics, LOGGER_LEVELS, NpmPackageManager, PatchConfigError, PnpmPackageManager, YarnPackageManager, addAuthorizationHeader, bucketFormatMessage, checkWorkerNameValidity, defaultWranglerConfig, experimental_patchConfig, extractAccountTag, extractWAFBlockRayId, fetchInternalBase, fetchKVGetValueBase, fetchLatestNpmVersion, fetchListResultBase, fetchResultBase, formatTime, friendlyBindingNames2 as friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getBrowserRenderingHeadfulFromEnv, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getCloudflaredPathFromEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getDurableObjectExports, getEnvironmentVariableFactory, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getLocalExplorerEnabledFromEnv, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getPackagePath, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTraceHeader, getWorkerName, getWorkerNameFromProject, getWorkersCIBranchName, getWranglerCacheDirFromEnv, getWranglerHiddenDirPath, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, getWranglerTmpDir, getZoneFromRoute, hasCursor, hasDurableObjectExports, hasMorePages, hasProperty, isDockerfile, isOptionalProperty, isPackageInstalled, isPagesConfig, isRequiredProperty, isValidR2BucketName, isWAFBlockResponse, maybeAddTraceHeader, normalizeAndValidateConfig, performApiFetchBase, renderError, retryOnAPIFailure, spawnCloudflared, startTunnel, sweepStaleWranglerTmpDirs, throwFetchError, toValidWorkerName, truncate, validatePagesConfig };
|