create-tina-app 2.1.0 → 2.1.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/index.js +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -458,7 +458,7 @@ import { Command } from "commander";
|
|
|
458
458
|
|
|
459
459
|
// package.json
|
|
460
460
|
var name = "create-tina-app";
|
|
461
|
-
var version = "2.1.
|
|
461
|
+
var version = "2.1.1";
|
|
462
462
|
|
|
463
463
|
// src/util/packageManagers.ts
|
|
464
464
|
var PKG_MANAGERS = ["npm", "yarn", "pnpm", "bun"];
|
|
@@ -869,7 +869,7 @@ async function fetchPostHogConfig(endpointUrl) {
|
|
|
869
869
|
// src/index.ts
|
|
870
870
|
import { osInfo as getOsSystemInfo } from "systeminformation";
|
|
871
871
|
var posthogClient = null;
|
|
872
|
-
async function initializePostHog(configEndpoint) {
|
|
872
|
+
async function initializePostHog(configEndpoint, disableGeoip) {
|
|
873
873
|
let apiKey;
|
|
874
874
|
let endpoint;
|
|
875
875
|
if (configEndpoint) {
|
|
@@ -884,7 +884,8 @@ async function initializePostHog(configEndpoint) {
|
|
|
884
884
|
return null;
|
|
885
885
|
}
|
|
886
886
|
return new PostHog(apiKey, {
|
|
887
|
-
host: endpoint
|
|
887
|
+
host: endpoint,
|
|
888
|
+
disableGeoip: disableGeoip ?? true
|
|
888
889
|
});
|
|
889
890
|
}
|
|
890
891
|
function formatTemplateChoice(template) {
|
|
@@ -933,7 +934,8 @@ No personal or project-specific code is ever collected. You can opt out at any t
|
|
|
933
934
|
`
|
|
934
935
|
);
|
|
935
936
|
posthogClient = await initializePostHog(
|
|
936
|
-
"https://identity-v2.tinajs.io/v2/posthog-token"
|
|
937
|
+
"https://identity-v2.tinajs.io/v2/posthog-token",
|
|
938
|
+
false
|
|
937
939
|
);
|
|
938
940
|
const osInfo = await getOsSystemInfo();
|
|
939
941
|
telemetryData["os-platform"] = osInfo.platform;
|