create-cloudflare 2.74.9 → 2.74.11
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/cli.js +181 -61
- package/package.json +5 -5
- package/templates/svelte/workers/c3.ts +1 -1
- package/templates/tanstack-start/c3.ts +1 -0
package/dist/cli.js
CHANGED
|
@@ -27356,11 +27356,11 @@ function detectPlatformBinary({ [platform]: platformBinary }, { wsl } = {}) {
|
|
|
27356
27356
|
}
|
|
27357
27357
|
return detectArchBinary(platformBinary);
|
|
27358
27358
|
}
|
|
27359
|
-
var
|
|
27359
|
+
var import_node_module14, import_node_process7, import_node_path4, import_node_url, import_node_child_process, import_promises, import_node_util2, import_node_os4, import_node_fs3, import_node_buffer, import_meta14, isDockerCached, cachedResult, hasContainerEnv, isWsl, is_wsl_default, execFile, powerShellPath, executePowerShell, execFile2, wslDrivesMountPoint, powerShellPathFromWsl, powerShellPath2, canAccessPowerShellPromise, canAccessPowerShell, wslDefaultBrowser, convertWslPathToWindows, execFileAsync, execFileAsync2, execFileAsync3, windowsBrowserProgIds, _windowsBrowserProgIdMap, UnknownBrowserError, execFileAsync4, titleize, isInSsh, is_in_ssh_default, fallbackAttemptSymbol, __dirname$1, localXdgOpenPath, platform, arch, tryEachApp, baseOpen, open2, openApp, apps, open_default;
|
|
27360
27360
|
var init_open_PCXX3ZDZ = __esm({
|
|
27361
27361
|
"../workers-utils/dist/open-PCXX3ZDZ.mjs"() {
|
|
27362
27362
|
"use strict";
|
|
27363
|
-
|
|
27363
|
+
import_node_module14 = require("node:module");
|
|
27364
27364
|
init_chunk_U6NEESU5();
|
|
27365
27365
|
import_node_process7 = __toESM(require("node:process"), 1);
|
|
27366
27366
|
import_node_path4 = __toESM(require("node:path"), 1);
|
|
@@ -27371,8 +27371,8 @@ var init_open_PCXX3ZDZ = __esm({
|
|
|
27371
27371
|
import_node_os4 = __toESM(require("node:os"), 1);
|
|
27372
27372
|
import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
27373
27373
|
import_node_buffer = require("node:buffer");
|
|
27374
|
-
|
|
27375
|
-
(0,
|
|
27374
|
+
import_meta14 = {};
|
|
27375
|
+
(0, import_node_module14.createRequire)(import_meta14.url || (typeof __filename === "string" ? __filename : "/"));
|
|
27376
27376
|
__name(hasDockerEnv, "hasDockerEnv");
|
|
27377
27377
|
__name(hasDockerCGroup, "hasDockerCGroup");
|
|
27378
27378
|
__name(isDocker, "isDocker");
|
|
@@ -27533,7 +27533,7 @@ var init_open_PCXX3ZDZ = __esm({
|
|
|
27533
27533
|
isInSsh = Boolean(import_node_process7.default.env.SSH_CONNECTION || import_node_process7.default.env.SSH_CLIENT || import_node_process7.default.env.SSH_TTY);
|
|
27534
27534
|
is_in_ssh_default = isInSsh;
|
|
27535
27535
|
fallbackAttemptSymbol = /* @__PURE__ */ Symbol("fallbackAttempt");
|
|
27536
|
-
__dirname$1 =
|
|
27536
|
+
__dirname$1 = import_meta14.url ? import_node_path4.default.dirname((0, import_node_url.fileURLToPath)(import_meta14.url)) : "";
|
|
27537
27537
|
localXdgOpenPath = import_node_path4.default.join(__dirname$1, "xdg-open");
|
|
27538
27538
|
({ platform, arch } = import_node_process7.default);
|
|
27539
27539
|
tryEachApp = /* @__PURE__ */ __name(async (apps22, opener) => {
|
|
@@ -78595,7 +78595,7 @@ var import_node_fs5 = require("node:fs");
|
|
|
78595
78595
|
var import_node_path6 = require("node:path");
|
|
78596
78596
|
|
|
78597
78597
|
// ../workers-utils/dist/index.mjs
|
|
78598
|
-
var
|
|
78598
|
+
var import_node_module15 = require("node:module");
|
|
78599
78599
|
|
|
78600
78600
|
// ../workers-utils/dist/chunk-2Q77CKVU.mjs
|
|
78601
78601
|
var import_node_module4 = require("node:module");
|
|
@@ -78641,11 +78641,40 @@ function stripRedundantNodejsCompatFlags(compatibilityDate, compatibilityFlags)
|
|
|
78641
78641
|
}
|
|
78642
78642
|
__name(stripRedundantNodejsCompatFlags, "stripRedundantNodejsCompatFlags");
|
|
78643
78643
|
|
|
78644
|
-
// ../workers-utils/dist/chunk-
|
|
78644
|
+
// ../workers-utils/dist/chunk-K5SN2X7U.mjs
|
|
78645
78645
|
var import_node_module5 = require("node:module");
|
|
78646
78646
|
init_chunk_U6NEESU5();
|
|
78647
78647
|
var import_meta5 = {};
|
|
78648
78648
|
(0, import_node_module5.createRequire)(import_meta5.url || (typeof __filename === "string" ? __filename : "/"));
|
|
78649
|
+
var safeHeaders = /* @__PURE__ */ new Set([
|
|
78650
|
+
"accept",
|
|
78651
|
+
"accept-encoding",
|
|
78652
|
+
"content-type",
|
|
78653
|
+
"content-length",
|
|
78654
|
+
"content-encoding",
|
|
78655
|
+
"transfer-encoding",
|
|
78656
|
+
"user-agent",
|
|
78657
|
+
"cf-ray",
|
|
78658
|
+
"date",
|
|
78659
|
+
"server",
|
|
78660
|
+
"retry-after",
|
|
78661
|
+
"retry-after-ms"
|
|
78662
|
+
]);
|
|
78663
|
+
function sanitizeHeaders(headers) {
|
|
78664
|
+
return Object.fromEntries(
|
|
78665
|
+
Array.from(headers, ([name3, value]) => [
|
|
78666
|
+
name3,
|
|
78667
|
+
safeHeaders.has(name3.toLowerCase()) ? value : "[REDACTED]"
|
|
78668
|
+
])
|
|
78669
|
+
);
|
|
78670
|
+
}
|
|
78671
|
+
__name(sanitizeHeaders, "sanitizeHeaders");
|
|
78672
|
+
|
|
78673
|
+
// ../workers-utils/dist/chunk-XEBMRQST.mjs
|
|
78674
|
+
var import_node_module6 = require("node:module");
|
|
78675
|
+
init_chunk_U6NEESU5();
|
|
78676
|
+
var import_meta6 = {};
|
|
78677
|
+
(0, import_node_module6.createRequire)(import_meta6.url || (typeof __filename === "string" ? __filename : "/"));
|
|
78649
78678
|
var external_exports = {};
|
|
78650
78679
|
__export2(external_exports, {
|
|
78651
78680
|
$brand: () => $brand,
|
|
@@ -98832,13 +98861,13 @@ function formatZodError(error62) {
|
|
|
98832
98861
|
__name(formatZodError, "formatZodError");
|
|
98833
98862
|
|
|
98834
98863
|
// ../workers-utils/dist/chunk-AAQI36FL.mjs
|
|
98835
|
-
var
|
|
98864
|
+
var import_node_module8 = require("node:module");
|
|
98836
98865
|
|
|
98837
98866
|
// ../workers-utils/dist/chunk-M3RITKR3.mjs
|
|
98838
|
-
var
|
|
98867
|
+
var import_node_module7 = require("node:module");
|
|
98839
98868
|
init_chunk_U6NEESU5();
|
|
98840
|
-
var
|
|
98841
|
-
(0,
|
|
98869
|
+
var import_meta7 = {};
|
|
98870
|
+
(0, import_node_module7.createRequire)(import_meta7.url || (typeof __filename === "string" ? __filename : "/"));
|
|
98842
98871
|
function dedent(templ) {
|
|
98843
98872
|
var values = [];
|
|
98844
98873
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -98884,8 +98913,8 @@ var esm_default = dedent;
|
|
|
98884
98913
|
init_chunk_U6NEESU5();
|
|
98885
98914
|
var import_node_fs = require("node:fs");
|
|
98886
98915
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
98887
|
-
var
|
|
98888
|
-
(0,
|
|
98916
|
+
var import_meta8 = {};
|
|
98917
|
+
(0, import_node_module8.createRequire)(import_meta8.url || (typeof __filename === "string" ? __filename : "/"));
|
|
98889
98918
|
function hasKnownExportType(entry) {
|
|
98890
98919
|
const type = entry?.type;
|
|
98891
98920
|
return type === "durable-object" || type === "worker" || type === "workflow";
|
|
@@ -101956,13 +101985,13 @@ function formatConfigSnippet(snippet, configPath, formatted = true) {
|
|
|
101956
101985
|
__name(formatConfigSnippet, "formatConfigSnippet");
|
|
101957
101986
|
|
|
101958
101987
|
// ../workers-utils/dist/chunk-FR75DWDU.mjs
|
|
101959
|
-
var
|
|
101988
|
+
var import_node_module12 = require("node:module");
|
|
101960
101989
|
|
|
101961
101990
|
// ../workers-utils/dist/chunk-QSRIB43D.mjs
|
|
101962
|
-
var
|
|
101991
|
+
var import_node_module9 = require("node:module");
|
|
101963
101992
|
init_chunk_U6NEESU5();
|
|
101964
|
-
var
|
|
101965
|
-
(0,
|
|
101993
|
+
var import_meta9 = {};
|
|
101994
|
+
(0, import_node_module9.createRequire)(import_meta9.url || (typeof __filename === "string" ? __filename : "/"));
|
|
101966
101995
|
function getBooleanEnvironmentVariableFactory(options) {
|
|
101967
101996
|
return () => {
|
|
101968
101997
|
if (!(options.variableName in process.env) || process.env[options.variableName] === void 0) {
|
|
@@ -102030,14 +102059,14 @@ var getDockerPath = getEnvironmentVariableFactory({
|
|
|
102030
102059
|
});
|
|
102031
102060
|
|
|
102032
102061
|
// ../workers-utils/dist/chunk-MV2OJK3L.mjs
|
|
102033
|
-
var
|
|
102062
|
+
var import_node_module11 = require("node:module");
|
|
102034
102063
|
|
|
102035
102064
|
// ../workers-utils/dist/chunk-MIA26B4M.mjs
|
|
102036
|
-
var
|
|
102065
|
+
var import_node_module10 = require("node:module");
|
|
102037
102066
|
init_chunk_U6NEESU5();
|
|
102038
102067
|
var import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
102039
|
-
var
|
|
102040
|
-
(0,
|
|
102068
|
+
var import_meta10 = {};
|
|
102069
|
+
(0, import_node_module10.createRequire)(import_meta10.url || (typeof __filename === "string" ? __filename : "/"));
|
|
102041
102070
|
function isDirectory(path9) {
|
|
102042
102071
|
return import_node_fs2.default.statSync(path9, { throwIfNoEntry: false })?.isDirectory() ?? false;
|
|
102043
102072
|
}
|
|
@@ -102071,8 +102100,8 @@ __name(removeDirSync, "removeDirSync");
|
|
|
102071
102100
|
init_chunk_U6NEESU5();
|
|
102072
102101
|
var import_node_os3 = __toESM(require("node:os"), 1);
|
|
102073
102102
|
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
102074
|
-
var
|
|
102075
|
-
(0,
|
|
102103
|
+
var import_meta11 = {};
|
|
102104
|
+
(0, import_node_module11.createRequire)(import_meta11.url || (typeof __filename === "string" ? __filename : "/"));
|
|
102076
102105
|
function isWindows() {
|
|
102077
102106
|
return /^win/i.test(process.platform);
|
|
102078
102107
|
}
|
|
@@ -102223,8 +102252,8 @@ __name(getGlobalWranglerCachePath, "getGlobalWranglerCachePath");
|
|
|
102223
102252
|
// ../workers-utils/dist/chunk-FR75DWDU.mjs
|
|
102224
102253
|
init_chunk_U6NEESU5();
|
|
102225
102254
|
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
102226
|
-
var
|
|
102227
|
-
(0,
|
|
102255
|
+
var import_meta12 = {};
|
|
102256
|
+
(0, import_node_module12.createRequire)(import_meta12.url || (typeof __filename === "string" ? __filename : "/"));
|
|
102228
102257
|
var getC3CommandFromEnv = getEnvironmentVariableFactory({
|
|
102229
102258
|
variableName: "WRANGLER_C3_COMMAND",
|
|
102230
102259
|
defaultValue: /* @__PURE__ */ __name(() => "create cloudflare", "defaultValue")
|
|
@@ -102401,6 +102430,80 @@ var getCloudflaredPathFromEnv = getEnvironmentVariableFactory({
|
|
|
102401
102430
|
variableName: "CLOUDFLARED_PATH"
|
|
102402
102431
|
});
|
|
102403
102432
|
|
|
102433
|
+
// ../workers-utils/dist/chunk-BRZKTVPN.mjs
|
|
102434
|
+
var import_node_module13 = require("node:module");
|
|
102435
|
+
init_chunk_U6NEESU5();
|
|
102436
|
+
var import_node_http = require("node:http");
|
|
102437
|
+
var import_meta13 = {};
|
|
102438
|
+
(0, import_node_module13.createRequire)(import_meta13.url || (typeof __filename === "string" ? __filename : "/"));
|
|
102439
|
+
var protectedHeaders = /* @__PURE__ */ new Set([
|
|
102440
|
+
"host",
|
|
102441
|
+
"content-type",
|
|
102442
|
+
"content-encoding",
|
|
102443
|
+
"content-length",
|
|
102444
|
+
"connection",
|
|
102445
|
+
"transfer-encoding",
|
|
102446
|
+
"upgrade",
|
|
102447
|
+
"te",
|
|
102448
|
+
"trailer"
|
|
102449
|
+
]);
|
|
102450
|
+
function configurationError(message) {
|
|
102451
|
+
return new UserError(`CLOUDFLARE_API_HEADERS ${message}`, {
|
|
102452
|
+
telemetryMessage: "cfetch custom api headers invalid configuration"
|
|
102453
|
+
});
|
|
102454
|
+
}
|
|
102455
|
+
__name(configurationError, "configurationError");
|
|
102456
|
+
function getCustomApiHeaders() {
|
|
102457
|
+
const raw = process.env.CLOUDFLARE_API_HEADERS;
|
|
102458
|
+
if (!raw) {
|
|
102459
|
+
return {};
|
|
102460
|
+
}
|
|
102461
|
+
let parsed;
|
|
102462
|
+
try {
|
|
102463
|
+
parsed = JSON.parse(raw);
|
|
102464
|
+
} catch {
|
|
102465
|
+
throw configurationError("must be a JSON object with string values.");
|
|
102466
|
+
}
|
|
102467
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
102468
|
+
throw configurationError("must be a JSON object with string values.");
|
|
102469
|
+
}
|
|
102470
|
+
const headers = {};
|
|
102471
|
+
for (const [name3, value] of Object.entries(parsed)) {
|
|
102472
|
+
if (typeof value !== "string") {
|
|
102473
|
+
throw configurationError("must contain only string values.");
|
|
102474
|
+
}
|
|
102475
|
+
try {
|
|
102476
|
+
(0, import_node_http.validateHeaderName)(name3);
|
|
102477
|
+
(0, import_node_http.validateHeaderValue)(name3, value);
|
|
102478
|
+
} catch {
|
|
102479
|
+
throw configurationError(
|
|
102480
|
+
"contains an invalid HTTP header name or value."
|
|
102481
|
+
);
|
|
102482
|
+
}
|
|
102483
|
+
const key = name3.toLowerCase();
|
|
102484
|
+
if (protectedHeaders.has(key)) {
|
|
102485
|
+
throw configurationError(`cannot set the protected header "${name3}".`);
|
|
102486
|
+
}
|
|
102487
|
+
if (Object.hasOwn(headers, key)) {
|
|
102488
|
+
throw configurationError(`contains duplicate header "${name3}".`);
|
|
102489
|
+
}
|
|
102490
|
+
Object.defineProperty(headers, key, {
|
|
102491
|
+
value,
|
|
102492
|
+
enumerable: true,
|
|
102493
|
+
configurable: true,
|
|
102494
|
+
writable: true
|
|
102495
|
+
});
|
|
102496
|
+
}
|
|
102497
|
+
return headers;
|
|
102498
|
+
}
|
|
102499
|
+
__name(getCustomApiHeaders, "getCustomApiHeaders");
|
|
102500
|
+
function addCustomApiHeaders(headers) {
|
|
102501
|
+
for (const [name3, value] of Object.entries(getCustomApiHeaders())) {
|
|
102502
|
+
headers.set(name3, value);
|
|
102503
|
+
}
|
|
102504
|
+
}
|
|
102505
|
+
__name(addCustomApiHeaders, "addCustomApiHeaders");
|
|
102506
|
+
|
|
102404
102507
|
// ../workers-utils/dist/index.mjs
|
|
102405
102508
|
init_chunk_U6NEESU5();
|
|
102406
102509
|
var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
@@ -102416,8 +102519,8 @@ var import_node_os5 = require("node:os");
|
|
|
102416
102519
|
var import_promises2 = require("node:fs/promises");
|
|
102417
102520
|
var timersPromises = __toESM(require("node:timers/promises"), 1);
|
|
102418
102521
|
var import_promises3 = require("node:timers/promises");
|
|
102419
|
-
var
|
|
102420
|
-
(0,
|
|
102522
|
+
var import_meta15 = {};
|
|
102523
|
+
(0, import_node_module15.createRequire)(import_meta15.url || (typeof __filename === "string" ? __filename : "/"));
|
|
102421
102524
|
var require_vendors2 = __commonJS2({
|
|
102422
102525
|
"../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/vendors.json"(exports$1, module2) {
|
|
102423
102526
|
module2.exports = [
|
|
@@ -108409,6 +108512,14 @@ var validateD1Binding = /* @__PURE__ */ __name((diagnostics, field, value) => {
|
|
|
108409
108512
|
);
|
|
108410
108513
|
isValid = false;
|
|
108411
108514
|
}
|
|
108515
|
+
if (!isOptionalProperty(value, "jurisdiction", "string")) {
|
|
108516
|
+
diagnostics.errors.push(
|
|
108517
|
+
`"${field}" bindings should, optionally, have a string "jurisdiction" field but got ${JSON.stringify(
|
|
108518
|
+
value
|
|
108519
|
+
)}.`
|
|
108520
|
+
);
|
|
108521
|
+
isValid = false;
|
|
108522
|
+
}
|
|
108412
108523
|
if (!isOptionalProperty(value, "migrations_dir", "string")) {
|
|
108413
108524
|
diagnostics.errors.push(
|
|
108414
108525
|
`"${field}" bindings should, optionally, have a string "migrations_dir" field but got ${JSON.stringify(
|
|
@@ -108438,6 +108549,7 @@ var validateD1Binding = /* @__PURE__ */ __name((diagnostics, field, value) => {
|
|
|
108438
108549
|
"database_id",
|
|
108439
108550
|
"database_internal_env",
|
|
108440
108551
|
"database_name",
|
|
108552
|
+
"jurisdiction",
|
|
108441
108553
|
"migrations_dir",
|
|
108442
108554
|
"migrations_pattern",
|
|
108443
108555
|
"migrations_table",
|
|
@@ -111682,7 +111794,7 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
111682
111794
|
}, {});
|
|
111683
111795
|
}
|
|
111684
111796
|
__name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
111685
|
-
var DEFAULT_COMPAT_DATE = "2026-11-
|
|
111797
|
+
var DEFAULT_COMPAT_DATE = "2026-11-10";
|
|
111686
111798
|
function constructWranglerConfig(config50) {
|
|
111687
111799
|
const mappedBindings = mapWorkerMetadataBindings(config50.bindings);
|
|
111688
111800
|
const durableObjectClassNames = config50.bindings.filter(
|
|
@@ -113357,11 +113469,9 @@ function maybeThrowFriendlyError(error62) {
|
|
|
113357
113469
|
}
|
|
113358
113470
|
__name(maybeThrowFriendlyError, "maybeThrowFriendlyError");
|
|
113359
113471
|
function logHeaders(headers, logger) {
|
|
113360
|
-
const clone2 = cloneHeaders(headers);
|
|
113361
|
-
clone2.delete("Authorization");
|
|
113362
113472
|
logger.debugWithSanitization?.(
|
|
113363
113473
|
"HEADERS:",
|
|
113364
|
-
JSON.stringify(
|
|
113474
|
+
JSON.stringify(sanitizeHeaders(headers), null, 2)
|
|
113365
113475
|
);
|
|
113366
113476
|
}
|
|
113367
113477
|
__name(logHeaders, "logHeaders");
|
|
@@ -113376,17 +113486,25 @@ async function performApiFetchBase(complianceConfig, resource, init = {}, userAg
|
|
|
113376
113486
|
addAuthorizationHeader(headers, credentials);
|
|
113377
113487
|
headers.set("User-Agent", userAgent);
|
|
113378
113488
|
maybeAddTraceHeader(headers);
|
|
113489
|
+
addCustomApiHeaders(headers);
|
|
113379
113490
|
const queryString = queryParams ? `?${queryParams.toString()}` : "";
|
|
113380
113491
|
logger.debug(
|
|
113381
113492
|
`-- START CF API REQUEST: ${method} ${getCloudflareApiBaseUrl(complianceConfig)}${resource}`
|
|
113382
113493
|
);
|
|
113383
113494
|
logger.debugWithSanitization?.("QUERY STRING:", queryString);
|
|
113384
113495
|
logHeaders(headers, logger);
|
|
113385
|
-
logger.debugWithSanitization?.(
|
|
113386
|
-
|
|
113496
|
+
logger.debugWithSanitization?.(
|
|
113497
|
+
"INIT:",
|
|
113498
|
+
JSON.stringify(
|
|
113499
|
+
{ ...init, headers: sanitizeHeaders(new import_undici.Headers(init.headers)) },
|
|
113500
|
+
null,
|
|
113501
|
+
2
|
|
113502
|
+
)
|
|
113503
|
+
);
|
|
113504
|
+
if (logger.debugWithSanitization !== void 0 && init.body instanceof import_undici.FormData && (logger.loggerLevel === void 0 || logger.loggerLevel === "debug")) {
|
|
113387
113505
|
logger.debugWithSanitization?.(
|
|
113388
113506
|
"BODY:",
|
|
113389
|
-
await new import_undici.Response(init.body).text(),
|
|
113507
|
+
getSanitizeLogs() ? "<multipart body>" : await new import_undici.Response(init.body).text(),
|
|
113390
113508
|
null,
|
|
113391
113509
|
2
|
|
113392
113510
|
);
|
|
@@ -113710,6 +113828,7 @@ async function fetchKVGetValueBase(complianceConfig, accountId, namespaceId, key
|
|
|
113710
113828
|
addAuthorizationHeader(headers, credentials);
|
|
113711
113829
|
headers.set("User-Agent", userAgent);
|
|
113712
113830
|
maybeAddTraceHeader(headers);
|
|
113831
|
+
addCustomApiHeaders(headers);
|
|
113713
113832
|
const resource = `${getCloudflareApiBaseUrl(complianceConfig)}/accounts/${accountId}/storage/kv/namespaces/${namespaceId}/values/${key}`;
|
|
113714
113833
|
logger.debug(`-- START CF API REQUEST: GET ${resource}`);
|
|
113715
113834
|
logger.debug("-- END CF API REQUEST");
|
|
@@ -116973,12 +117092,12 @@ var y18n2 = (opts) => {
|
|
|
116973
117092
|
var y18n_default = y18n2;
|
|
116974
117093
|
|
|
116975
117094
|
// ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/lib/platform-shims/esm.mjs
|
|
116976
|
-
var
|
|
117095
|
+
var import_meta16 = {};
|
|
116977
117096
|
var REQUIRE_ERROR = "require is not supported by ESM";
|
|
116978
117097
|
var REQUIRE_DIRECTORY_ERROR = "loading a directory of commands is not supported yet for ESM";
|
|
116979
117098
|
var __dirname2;
|
|
116980
117099
|
try {
|
|
116981
|
-
__dirname2 = (0, import_url.fileURLToPath)(
|
|
117100
|
+
__dirname2 = (0, import_url.fileURLToPath)(import_meta16.url);
|
|
116982
117101
|
} catch (e) {
|
|
116983
117102
|
__dirname2 = process.cwd();
|
|
116984
117103
|
}
|
|
@@ -120305,7 +120424,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
120305
120424
|
var yargs_default = Yargs;
|
|
120306
120425
|
|
|
120307
120426
|
// package.json
|
|
120308
|
-
var version2 = "2.74.
|
|
120427
|
+
var version2 = "2.74.11";
|
|
120309
120428
|
|
|
120310
120429
|
// src/metrics.ts
|
|
120311
120430
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -120317,9 +120436,9 @@ var import_node_fs6 = require("node:fs");
|
|
|
120317
120436
|
var import_node_path7 = __toESM(require("node:path"));
|
|
120318
120437
|
|
|
120319
120438
|
// ../workers-utils/dist/global-wrangler-config-path.mjs
|
|
120320
|
-
var
|
|
120321
|
-
var
|
|
120322
|
-
(0,
|
|
120439
|
+
var import_node_module16 = require("node:module");
|
|
120440
|
+
var import_meta17 = {};
|
|
120441
|
+
(0, import_node_module16.createRequire)(import_meta17.url || (typeof __filename === "string" ? __filename : "/"));
|
|
120323
120442
|
|
|
120324
120443
|
// src/helpers/metrics-config.ts
|
|
120325
120444
|
function writeMetricsConfig(config50) {
|
|
@@ -120442,9 +120561,9 @@ function quoteShellArgs(args) {
|
|
|
120442
120561
|
}
|
|
120443
120562
|
|
|
120444
120563
|
// ../workers-utils/dist/fs-helpers.mjs
|
|
120445
|
-
var
|
|
120446
|
-
var
|
|
120447
|
-
(0,
|
|
120564
|
+
var import_node_module17 = require("node:module");
|
|
120565
|
+
var import_meta18 = {};
|
|
120566
|
+
(0, import_node_module17.createRequire)(import_meta18.url || (typeof __filename === "string" ? __filename : "/"));
|
|
120448
120567
|
|
|
120449
120568
|
// src/helpers/packageManagers.ts
|
|
120450
120569
|
var import_semver = __toESM(require_semver2());
|
|
@@ -122571,9 +122690,9 @@ var isInSsh2 = Boolean(import_node_process13.default.env.SSH_CONNECTION || impor
|
|
|
122571
122690
|
var is_in_ssh_default2 = isInSsh2;
|
|
122572
122691
|
|
|
122573
122692
|
// ../../node_modules/.pnpm/open@11.0.0/node_modules/open/index.js
|
|
122574
|
-
var
|
|
122693
|
+
var import_meta19 = {};
|
|
122575
122694
|
var fallbackAttemptSymbol2 = /* @__PURE__ */ Symbol("fallbackAttempt");
|
|
122576
|
-
var __dirname3 =
|
|
122695
|
+
var __dirname3 = import_meta19.url ? import_node_path13.default.dirname((0, import_node_url3.fileURLToPath)(import_meta19.url)) : "";
|
|
122577
122696
|
var localXdgOpenPath2 = import_node_path13.default.join(__dirname3, "xdg-open");
|
|
122578
122697
|
var { platform: platform2, arch: arch3 } = import_node_process14.default;
|
|
122579
122698
|
var tryEachApp2 = async (apps3, opener) => {
|
|
@@ -122912,20 +123031,20 @@ var WRANGLER_DEFAULTS = {
|
|
|
122912
123031
|
};
|
|
122913
123032
|
|
|
122914
123033
|
// ../shared-ast-primitives/dist/index.mjs
|
|
122915
|
-
var
|
|
123034
|
+
var import_node_module18 = require("node:module");
|
|
122916
123035
|
var import_node_fs15 = require("node:fs");
|
|
122917
123036
|
var import_node_path14 = __toESM(require("node:path"), 1);
|
|
122918
123037
|
var recast = __toESM(require_main2(), 1);
|
|
122919
123038
|
var import_recast = __toESM(require_main2(), 1);
|
|
122920
|
-
var
|
|
123039
|
+
var babelParser = __toESM(require_babel2(), 1);
|
|
122921
123040
|
var typescriptParser = __toESM(require_typescript2(), 1);
|
|
122922
|
-
var
|
|
122923
|
-
(0,
|
|
123041
|
+
var import_meta20 = {};
|
|
123042
|
+
(0, import_node_module18.createRequire)(import_meta20.url || (typeof __filename === "string" ? __filename : "/"));
|
|
122924
123043
|
var __defProp3 = Object.defineProperty;
|
|
122925
123044
|
var __name2 = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
|
122926
123045
|
function parseJs(src) {
|
|
122927
123046
|
try {
|
|
122928
|
-
return recast.parse(src, { parser:
|
|
123047
|
+
return recast.parse(src, { parser: babelParser });
|
|
122929
123048
|
} catch {
|
|
122930
123049
|
throw new Error("Error parsing js template.");
|
|
122931
123050
|
}
|
|
@@ -122941,7 +123060,7 @@ function parseTs(src) {
|
|
|
122941
123060
|
__name2(parseTs, "parseTs");
|
|
122942
123061
|
function parseFile(filePath) {
|
|
122943
123062
|
const lang = import_node_path14.default.extname(filePath).slice(1);
|
|
122944
|
-
const parser2 = lang === "js" ?
|
|
123063
|
+
const parser2 = lang === "js" ? babelParser : typescriptParser;
|
|
122945
123064
|
try {
|
|
122946
123065
|
const fileContents = (0, import_node_fs15.readFileSync)(import_node_path14.default.resolve(filePath), "utf-8");
|
|
122947
123066
|
if (fileContents) {
|
|
@@ -123017,25 +123136,25 @@ var import_semver3 = __toESM(require_semver2());
|
|
|
123017
123136
|
var package_default = {
|
|
123018
123137
|
name: "frameworks_clis_info",
|
|
123019
123138
|
dependencies: {
|
|
123020
|
-
"@angular/create": "22.2.
|
|
123021
|
-
"@tanstack/cli": "0.72.
|
|
123022
|
-
"create-analog": "2.9.
|
|
123139
|
+
"@angular/create": "22.2.6",
|
|
123140
|
+
"@tanstack/cli": "0.72.16",
|
|
123141
|
+
"create-analog": "2.9.6",
|
|
123023
123142
|
"create-astro": "5.3.1",
|
|
123024
123143
|
"create-docusaurus": "3.10.2",
|
|
123025
123144
|
"create-hono": "0.19.5",
|
|
123026
|
-
"create-next-app": "16.4.
|
|
123145
|
+
"create-next-app": "16.4.5",
|
|
123027
123146
|
"create-qwik": "1.20.3",
|
|
123028
123147
|
"create-react-router": "8.5.1",
|
|
123029
123148
|
"create-rwsdk": "3.1.3",
|
|
123030
123149
|
"create-solid": "0.12.0",
|
|
123031
|
-
"create-vike": "0.0.
|
|
123150
|
+
"create-vike": "0.0.692",
|
|
123032
123151
|
"create-vinext-app": "1.1.0",
|
|
123033
|
-
"create-vite": "9.3.
|
|
123152
|
+
"create-vite": "9.3.4",
|
|
123034
123153
|
"create-vue": "3.24.0",
|
|
123035
123154
|
"create-waku": "0.12.5-1.0.0-alpha.10-0",
|
|
123036
123155
|
gatsby: "5.16.1",
|
|
123037
|
-
nuxi: "4.0.
|
|
123038
|
-
sv: "1.
|
|
123156
|
+
nuxi: "4.0.3",
|
|
123157
|
+
sv: "1.3.0"
|
|
123039
123158
|
},
|
|
123040
123159
|
info: [
|
|
123041
123160
|
"This package.json is only used to keep track of the frameworks cli dependencies",
|
|
@@ -125427,7 +125546,7 @@ var config40 = {
|
|
|
125427
125546
|
if (usesTypescript(ctx)) {
|
|
125428
125547
|
scripts = {
|
|
125429
125548
|
...scripts,
|
|
125430
|
-
"cf-typegen": `wrangler types ${typesPath3}`
|
|
125549
|
+
"cf-typegen": `wrangler types --include-main-module=false ${typesPath3}`
|
|
125431
125550
|
};
|
|
125432
125551
|
}
|
|
125433
125552
|
return { scripts };
|
|
@@ -125470,6 +125589,7 @@ var config42 = {
|
|
|
125470
125589
|
platform: "workers",
|
|
125471
125590
|
languages: ["ts"],
|
|
125472
125591
|
frameworkCli: "@tanstack/cli",
|
|
125592
|
+
frameworkCliNodeVersion: "^20.17.0 || >=22.9.0",
|
|
125473
125593
|
displayName: "TanStack Start",
|
|
125474
125594
|
generate: generate25,
|
|
125475
125595
|
transformPackageJson: async () => ({
|
|
@@ -125801,7 +125921,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
|
|
|
125801
125921
|
var import_node_assert7 = __toESM(require("node:assert"));
|
|
125802
125922
|
|
|
125803
125923
|
// ../wrangler/package.json
|
|
125804
|
-
var version3 = "4.
|
|
125924
|
+
var version3 = "4.160.0";
|
|
125805
125925
|
|
|
125806
125926
|
// src/git.ts
|
|
125807
125927
|
var offerGit = async (ctx) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.74.
|
|
3
|
+
"version": "2.74.11",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@babel/types": "^7.21.4",
|
|
33
33
|
"@clack/prompts": "^1.2.0",
|
|
34
34
|
"@cloudflare/vite-plugin": "npm:@cloudflare/vite-plugin@1.63.2",
|
|
35
|
-
"@cloudflare/workers-types": "^5.
|
|
35
|
+
"@cloudflare/workers-types": "^5.20261110.1",
|
|
36
36
|
"@types/command-exists": "^1.2.0",
|
|
37
37
|
"@types/cross-spawn": "^6.0.2",
|
|
38
38
|
"@types/deepmerge": "^2.2.0",
|
|
@@ -71,12 +71,12 @@
|
|
|
71
71
|
"which-pm-runs": "^1.1.0",
|
|
72
72
|
"wrap-ansi": "^9.0.0",
|
|
73
73
|
"yargs": "^17.7.2",
|
|
74
|
-
"@cloudflare/cli-shared-helpers": "0.3.
|
|
74
|
+
"@cloudflare/cli-shared-helpers": "0.3.6",
|
|
75
75
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
76
76
|
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
77
77
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
78
|
-
"@cloudflare/workers-utils": "0.
|
|
79
|
-
"wrangler": "4.
|
|
78
|
+
"@cloudflare/workers-utils": "0.53.0",
|
|
79
|
+
"wrangler": "4.160.0"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22.0.0"
|