create-cloudflare 2.29.0 → 2.29.1
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 +36 -26
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -74090,7 +74090,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
74090
74090
|
var yargs_default = Yargs;
|
|
74091
74091
|
|
|
74092
74092
|
// package.json
|
|
74093
|
-
var version = "2.29.
|
|
74093
|
+
var version = "2.29.1";
|
|
74094
74094
|
|
|
74095
74095
|
// src/metrics.ts
|
|
74096
74096
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -74381,18 +74381,24 @@ var SPARROW_URL = "https://sparrow.cloudflare.com";
|
|
|
74381
74381
|
function hasSparrowSourceKey() {
|
|
74382
74382
|
return SPARROW_SOURCE_KEY !== "";
|
|
74383
74383
|
}
|
|
74384
|
-
async function sendEvent(payload) {
|
|
74385
|
-
if (
|
|
74384
|
+
async function sendEvent(payload, enableLog) {
|
|
74385
|
+
if (enableLog) {
|
|
74386
74386
|
console.log("[telemetry]", JSON.stringify(payload, null, 2));
|
|
74387
74387
|
}
|
|
74388
|
-
|
|
74389
|
-
|
|
74390
|
-
|
|
74391
|
-
|
|
74392
|
-
|
|
74393
|
-
|
|
74394
|
-
|
|
74395
|
-
|
|
74388
|
+
try {
|
|
74389
|
+
await (0, import_undici.fetch)(`${SPARROW_URL}/api/v1/event`, {
|
|
74390
|
+
method: "POST",
|
|
74391
|
+
headers: {
|
|
74392
|
+
"Content-Type": "application/json",
|
|
74393
|
+
"Sparrow-Source-Key": SPARROW_SOURCE_KEY
|
|
74394
|
+
},
|
|
74395
|
+
body: JSON.stringify(payload)
|
|
74396
|
+
});
|
|
74397
|
+
} catch (error2) {
|
|
74398
|
+
if (enableLog) {
|
|
74399
|
+
console.log("[telemetry]", error2);
|
|
74400
|
+
}
|
|
74401
|
+
}
|
|
74396
74402
|
}
|
|
74397
74403
|
|
|
74398
74404
|
// src/metrics.ts
|
|
@@ -74431,25 +74437,29 @@ function createReporter() {
|
|
|
74431
74437
|
const packageManager = detectPackageManager();
|
|
74432
74438
|
const platform3 = getPlatform();
|
|
74433
74439
|
const amplitude_session_id = Date.now();
|
|
74440
|
+
const enableLog = process.env.CREATE_CLOUDFLARE_TELEMETRY_DEBUG === "1";
|
|
74434
74441
|
let amplitude_event_id = 0;
|
|
74435
74442
|
function sendEvent2(name, properties) {
|
|
74436
74443
|
if (!isEnabled) {
|
|
74437
74444
|
return;
|
|
74438
74445
|
}
|
|
74439
|
-
const request2 = sendEvent(
|
|
74440
|
-
|
|
74441
|
-
|
|
74442
|
-
|
|
74443
|
-
|
|
74444
|
-
|
|
74445
|
-
|
|
74446
|
-
|
|
74447
|
-
|
|
74448
|
-
|
|
74449
|
-
|
|
74450
|
-
|
|
74451
|
-
|
|
74452
|
-
|
|
74446
|
+
const request2 = sendEvent(
|
|
74447
|
+
{
|
|
74448
|
+
event: name,
|
|
74449
|
+
deviceId,
|
|
74450
|
+
timestamp: Date.now(),
|
|
74451
|
+
properties: {
|
|
74452
|
+
amplitude_session_id,
|
|
74453
|
+
amplitude_event_id: amplitude_event_id++,
|
|
74454
|
+
platform: platform3,
|
|
74455
|
+
c3Version: version,
|
|
74456
|
+
isFirstUsage,
|
|
74457
|
+
packageManager: packageManager.name,
|
|
74458
|
+
...properties
|
|
74459
|
+
}
|
|
74460
|
+
},
|
|
74461
|
+
enableLog
|
|
74462
|
+
);
|
|
74453
74463
|
events.push(request2);
|
|
74454
74464
|
}
|
|
74455
74465
|
function isTelemetryEnabled() {
|
|
@@ -74828,7 +74838,7 @@ var usesEslint = (ctx) => {
|
|
|
74828
74838
|
var import_node_path3 = require("node:path");
|
|
74829
74839
|
|
|
74830
74840
|
// ../wrangler/package.json
|
|
74831
|
-
var version2 = "3.78.
|
|
74841
|
+
var version2 = "3.78.12";
|
|
74832
74842
|
|
|
74833
74843
|
// src/git.ts
|
|
74834
74844
|
var offerGit = async (ctx) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.1",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"xdg-app-paths": "^8.3.0",
|
|
68
68
|
"yargs": "^17.7.2",
|
|
69
69
|
"@cloudflare/cli": "1.1.1",
|
|
70
|
-
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
71
70
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
72
|
-
"
|
|
71
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
72
|
+
"wrangler": "3.78.12"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=18.14.1"
|