create-prisma 0.9.2-pr.63.233.1 → 0.9.2-pr.63.234.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.mjs
CHANGED
|
@@ -41,7 +41,7 @@ async function getAnonymousId() {
|
|
|
41
41
|
}
|
|
42
42
|
function getCommonProperties() {
|
|
43
43
|
return {
|
|
44
|
-
"cli-version": "0.9.2-pr.63.
|
|
44
|
+
"cli-version": "0.9.2-pr.63.234.1",
|
|
45
45
|
"node-version": process.version,
|
|
46
46
|
platform: process.platform,
|
|
47
47
|
arch: process.arch
|
|
@@ -660,7 +660,7 @@ async function installProjectDependencies(packageManager, projectDir = process.c
|
|
|
660
660
|
//#endregion
|
|
661
661
|
//#region src/tasks/deploy-with-composer.ts
|
|
662
662
|
function redactSecrets(message) {
|
|
663
|
-
return message.replace(/\b((?:prisma\+)?postgres(?:ql)
|
|
663
|
+
return message.replace(/\b((?:(?:prisma\+)?postgres(?:ql)?|mongodb(?:\+srv)?):\/\/)[^\s'"]+/gi, "$1<redacted>").replace(/\b([A-Z0-9_]*(?:MONGODB_(?:URL|URI)|DATABASE_URL|TOKEN|SECRET|PASSWORD|API_KEY|PRIVATE_KEY)[A-Z0-9_]*\s*=\s*)(?:"[^"]*"|'[^']*'|[^\s]+)/gi, "$1<redacted>").replace(/(\bAuthorization\s*:\s*Bearer\s+)[^\s'"]+/gi, "$1<redacted>");
|
|
664
664
|
}
|
|
665
665
|
function getErrorMessage(error) {
|
|
666
666
|
if (error instanceof Error) return redactSecrets(error.message);
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as PackageManagerSchema, r as CreateCommandInputSchema, t as runCreateCommand } from "./create-
|
|
2
|
+
import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as PackageManagerSchema, r as CreateCommandInputSchema, t as runCreateCommand } from "./create-D_6j6lE8.mjs";
|
|
3
3
|
import { os } from "@orpc/server";
|
|
4
4
|
import { createCli } from "trpc-cli";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/index.ts
|
|
8
|
-
const CLI_VERSION = "0.9.2-pr.63.
|
|
8
|
+
const CLI_VERSION = "0.9.2-pr.63.234.1";
|
|
9
9
|
const CreateCliInputSchema = z.tuple([z.string().trim().min(1, "Please enter a valid project name").optional().describe("Project name / directory"), CreateCommandInputSchema]);
|
|
10
10
|
function normalizeCreateCliInput(input) {
|
|
11
11
|
const [projectName, options] = input;
|
package/package.json
CHANGED