create-prisma 0.14.2-pr.128.422.1 → 0.14.2
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.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-C7ad6vya.mjs → src-Cg1gEAgT.mjs} +10 -4
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as ApplicationLayer, i as runCreatePrismaCli } from "./src-
|
|
2
|
+
import { a as ApplicationLayer, i as runCreatePrismaCli } from "./src-Cg1gEAgT.mjs";
|
|
3
3
|
import { Effect } from "effect";
|
|
4
4
|
import { NodeRuntime } from "@effect/platform-node-shared";
|
|
5
5
|
//#region src/cli.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as AgentSkillTargetSchema, d as CreateTemplateSchema, f as DatabaseProviderSchema, i as runCreatePrismaCli, l as AuthoringStyleSchema, n as createCreatePrismaCli, o as CREATE_PRISMA_RESULT_SCHEMA_VERSION, p as PackageManagerSchema, r as createPrismaCommand, s as CreateCommandResultSchema, t as create, u as CreateCommandInputSchema } from "./src-
|
|
2
|
+
import { c as AgentSkillTargetSchema, d as CreateTemplateSchema, f as DatabaseProviderSchema, i as runCreatePrismaCli, l as AuthoringStyleSchema, n as createCreatePrismaCli, o as CREATE_PRISMA_RESULT_SCHEMA_VERSION, p as PackageManagerSchema, r as createPrismaCommand, s as CreateCommandResultSchema, t as create, u as CreateCommandInputSchema } from "./src-Cg1gEAgT.mjs";
|
|
3
3
|
export { AgentSkillTargetSchema, AuthoringStyleSchema, CREATE_PRISMA_RESULT_SCHEMA_VERSION, CreateCommandInputSchema, CreateCommandResultSchema, CreateTemplateSchema, DatabaseProviderSchema, PackageManagerSchema, create, createCreatePrismaCli, createPrismaCommand, runCreatePrismaCli };
|
|
@@ -464,14 +464,20 @@ function getPackageManagerErrorCode(command, output) {
|
|
|
464
464
|
}
|
|
465
465
|
//#endregion
|
|
466
466
|
//#region src/telemetry/client.ts
|
|
467
|
-
const TELEMETRY_API_KEY = "";
|
|
467
|
+
const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
|
|
468
468
|
const TELEMETRY_HOST = "https://us.i.posthog.com";
|
|
469
469
|
const TELEMETRY_CONFIG_FILE = "telemetry.json";
|
|
470
470
|
const TELEMETRY_TIMEOUT_MS = 2e3;
|
|
471
471
|
const AnonymousId = Schema.String.check(Schema.isUUID(4));
|
|
472
472
|
const decodeAnonymousId = Schema.decodeUnknownExit(AnonymousId);
|
|
473
|
+
const isTruthyEnvValue = (value) => [
|
|
474
|
+
"1",
|
|
475
|
+
"true",
|
|
476
|
+
"yes",
|
|
477
|
+
"on"
|
|
478
|
+
].includes(String(value ?? "").trim().toLowerCase());
|
|
473
479
|
function shouldDisableTelemetry() {
|
|
474
|
-
return
|
|
480
|
+
return isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS) || process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
|
|
475
481
|
}
|
|
476
482
|
function getTelemetryConfigDir() {
|
|
477
483
|
if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
|
|
@@ -495,7 +501,7 @@ const getAnonymousIdEffect = Effect.fn("Telemetry.getAnonymousId")(function* ()
|
|
|
495
501
|
return anonymousId;
|
|
496
502
|
});
|
|
497
503
|
const getCommonProperties = () => ({
|
|
498
|
-
"cli-version": "0.14.2
|
|
504
|
+
"cli-version": "0.14.2",
|
|
499
505
|
"node-version": process.version,
|
|
500
506
|
platform: process.platform,
|
|
501
507
|
arch: process.arch
|
|
@@ -2790,7 +2796,7 @@ function isJsonOutputRequested(argv) {
|
|
|
2790
2796
|
const writeJsonResult = Effect.fn("JsonOutput.write")((result) => Effect.sync(() => process.stdout.write(`${JSON.stringify(result)}\n`)));
|
|
2791
2797
|
//#endregion
|
|
2792
2798
|
//#region src/index.ts
|
|
2793
|
-
const CLI_VERSION = "0.14.2
|
|
2799
|
+
const CLI_VERSION = "0.14.2";
|
|
2794
2800
|
const optionalArgument = (name, description) => Argument.String(name).pipe(Argument.withDescription(description), Argument.optional, Argument.map(Option.getOrUndefined));
|
|
2795
2801
|
const optionalBoolean = (name, description) => Flag.Boolean(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
|
|
2796
2802
|
const optionalString = (name, description) => Flag.String(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
|
package/package.json
CHANGED