@ooneex/cli 1.26.3 → 1.27.0
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 +12 -3
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34662,7 +34662,7 @@ MakeAnalyticsCommand = __legacyDecorateClassTS([
|
|
|
34662
34662
|
import { join as join11 } from "path";
|
|
34663
34663
|
import { decorator as decorator11 } from "@ooneex/command";
|
|
34664
34664
|
import { TerminalLogger as TerminalLogger10 } from "@ooneex/logger";
|
|
34665
|
-
import { toKebabCase as toKebabCase2, toSnakeCase } from "@ooneex/utils";
|
|
34665
|
+
import { random, toKebabCase as toKebabCase2, toSnakeCase } from "@ooneex/utils";
|
|
34666
34666
|
|
|
34667
34667
|
// src/prompts/askDestination.ts
|
|
34668
34668
|
var import_enquirer2 = __toESM(require_enquirer(), 1);
|
|
@@ -35345,6 +35345,13 @@ RESEND_API_KEY=
|
|
|
35345
35345
|
# Secret key for HS256 JWT signing and verification
|
|
35346
35346
|
JWT_SECRET=
|
|
35347
35347
|
|
|
35348
|
+
# =============================================================================
|
|
35349
|
+
# CSRF
|
|
35350
|
+
# =============================================================================
|
|
35351
|
+
|
|
35352
|
+
# Secret key for CSRF token generation and verification
|
|
35353
|
+
CSRF_SECRET=
|
|
35354
|
+
|
|
35348
35355
|
# =============================================================================
|
|
35349
35356
|
# AI
|
|
35350
35357
|
# =============================================================================
|
|
@@ -35832,7 +35839,7 @@ class MakeAppCommand {
|
|
|
35832
35839
|
const appModulePackagePath = join11(destination, "modules", "app", "package.json");
|
|
35833
35840
|
const appModulePackageJson = await Bun.file(appModulePackagePath).json();
|
|
35834
35841
|
await Bun.write(appModulePackagePath, JSON.stringify(appModulePackageJson, null, 2));
|
|
35835
|
-
const envContent = env_default.replace(/^DATABASE_URL=/m, 'DATABASE_URL="postgresql://ooneex:ooneex@localhost:5432/ooneex"').replace(/^CACHE_REDIS_URL=/m, 'CACHE_REDIS_URL="redis://localhost:6379"').replace(/^PUBSUB_REDIS_URL=/m, 'PUBSUB_REDIS_URL="redis://localhost:6379"').replace(/^RATE_LIMIT_REDIS_URL=/m, 'RATE_LIMIT_REDIS_URL="redis://localhost:6379"').replace(/^DATABASE_REDIS_URL=/m, 'DATABASE_REDIS_URL="redis://localhost:6379"');
|
|
35842
|
+
const envContent = env_default.replace(/^DATABASE_URL=/m, 'DATABASE_URL="postgresql://ooneex:ooneex@localhost:5432/ooneex"').replace(/^CACHE_REDIS_URL=/m, 'CACHE_REDIS_URL="redis://localhost:6379"').replace(/^PUBSUB_REDIS_URL=/m, 'PUBSUB_REDIS_URL="redis://localhost:6379"').replace(/^RATE_LIMIT_REDIS_URL=/m, 'RATE_LIMIT_REDIS_URL="redis://localhost:6379"').replace(/^DATABASE_REDIS_URL=/m, 'DATABASE_REDIS_URL="redis://localhost:6379"').replace(/^CSRF_SECRET=/m, `CSRF_SECRET="${random.nanoid(20)}"`);
|
|
35836
35843
|
await Bun.write(join11(destination, "modules", "app", ".env"), envContent);
|
|
35837
35844
|
await Bun.write(join11(destination, "modules", "app", ".env.example"), env_default);
|
|
35838
35845
|
await Bun.write(join11(destination, "modules", "app", "src", "index.ts"), index_ts_default);
|
|
@@ -38176,9 +38183,11 @@ describe("{{NAME}}Mailer", () => {
|
|
|
38176
38183
|
|
|
38177
38184
|
// src/templates/mailer/mailer.txt
|
|
38178
38185
|
var mailer_default = `import { inject } from "@ooneex/container";
|
|
38186
|
+
import { decorator } from "@ooneex/mailer";
|
|
38179
38187
|
import type { IMailer } from "@ooneex/mailer";
|
|
38180
38188
|
import { type {{NAME}}MailerPropsType, {{NAME}}MailerTemplate } from "./{{NAME}}MailerTemplate";
|
|
38181
38189
|
|
|
38190
|
+
@decorator.mailer()
|
|
38182
38191
|
export class {{NAME}}Mailer implements IMailer {
|
|
38183
38192
|
constructor(
|
|
38184
38193
|
@inject("mailer")
|
|
@@ -50719,4 +50728,4 @@ SeedRunCommand = __legacyDecorateClassTS([
|
|
|
50719
50728
|
// src/index.ts
|
|
50720
50729
|
await run();
|
|
50721
50730
|
|
|
50722
|
-
//# debugId=
|
|
50731
|
+
//# debugId=6FD20A60137D728764756E2164756E21
|