@ooneex/cli 1.11.2 → 1.11.3
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 +28 -49
- package/dist/index.js.map +4 -4
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -5890,37 +5890,7 @@ var biome_jsonc_default = `{
|
|
|
5890
5890
|
|
|
5891
5891
|
// src/templates/app/bunfig.toml.txt
|
|
5892
5892
|
var bunfig_toml_default = `[test]
|
|
5893
|
-
coverage = true
|
|
5894
|
-
|
|
5895
|
-
[workspace]
|
|
5896
|
-
packages = ["modules/*"]
|
|
5897
|
-
|
|
5898
|
-
[install]
|
|
5899
|
-
hoistPattern = [
|
|
5900
|
-
"@ooneex/*",
|
|
5901
|
-
"@biomejs/biome",
|
|
5902
|
-
"@nx/js",
|
|
5903
|
-
"@swc-node/register",
|
|
5904
|
-
"@swc/core",
|
|
5905
|
-
"@swc/helpers",
|
|
5906
|
-
"husky",
|
|
5907
|
-
"nx",
|
|
5908
|
-
"typescript",
|
|
5909
|
-
"@typescript/native-preview",
|
|
5910
|
-
"undici-types",
|
|
5911
|
-
"react",
|
|
5912
|
-
"@types/*",
|
|
5913
|
-
"pg",
|
|
5914
|
-
"typeorm",
|
|
5915
|
-
"apache-arrow",
|
|
5916
|
-
"reflect-metadata",
|
|
5917
|
-
]
|
|
5918
|
-
external = false
|
|
5919
|
-
buildDependencies = [
|
|
5920
|
-
"@swc/core",
|
|
5921
|
-
"nx",
|
|
5922
|
-
]
|
|
5923
|
-
`;
|
|
5893
|
+
coverage = true`;
|
|
5924
5894
|
|
|
5925
5895
|
// src/templates/app/Dockerfile.txt
|
|
5926
5896
|
var Dockerfile_default = `# use the official Bun image
|
|
@@ -5978,7 +5948,7 @@ var docker_compose_yml_default = `services:
|
|
|
5978
5948
|
# Docs: https://www.postgresql.org/docs/
|
|
5979
5949
|
# Connection: postgresql://ooneex:ooneex@localhost:5432/ooneex
|
|
5980
5950
|
postgres:
|
|
5981
|
-
image: postgres:
|
|
5951
|
+
image: postgres:18.3-alpine3.23
|
|
5982
5952
|
container_name: {{NAME}}_db
|
|
5983
5953
|
restart: "on-failure"
|
|
5984
5954
|
ports:
|
|
@@ -6037,20 +6007,20 @@ EXTERNAL_API_URLS=
|
|
|
6037
6007
|
# Database URL for storing application logs
|
|
6038
6008
|
LOGS_DATABASE_URL=
|
|
6039
6009
|
# Logtail source token for Better Stack logging
|
|
6040
|
-
|
|
6010
|
+
BETTERSTACK_LOGGER_SOURCE_TOKEN=
|
|
6041
6011
|
# Logtail ingestion endpoint URL (optional)
|
|
6042
|
-
|
|
6012
|
+
BETTERSTACK_LOGGER_INGESTING_HOST=
|
|
6043
6013
|
# Better Stack application token for exception tracking (Sentry)
|
|
6044
|
-
|
|
6014
|
+
BETTERSTACK_EXCEPTION_LOGGER_APPLICATION_TOKEN=
|
|
6045
6015
|
# Better Stack ingesting endpoint hostname for Sentry DSN
|
|
6046
|
-
|
|
6016
|
+
BETTERSTACK_EXCEPTION_LOGGER_INGESTING_HOST=
|
|
6047
6017
|
|
|
6048
6018
|
# =============================================================================
|
|
6049
6019
|
# Analytics
|
|
6050
6020
|
# =============================================================================
|
|
6051
6021
|
|
|
6052
6022
|
# PostHog API key for event tracking
|
|
6053
|
-
|
|
6023
|
+
ANALYTICS_POSTHOG_PROJECT_TOKEN=
|
|
6054
6024
|
# PostHog server host URL
|
|
6055
6025
|
ANALYTICS_POSTHOG_HOST="https://eu.i.posthog.com"
|
|
6056
6026
|
|
|
@@ -6060,6 +6030,10 @@ ANALYTICS_POSTHOG_HOST="https://eu.i.posthog.com"
|
|
|
6060
6030
|
|
|
6061
6031
|
# Redis connection URL for caching
|
|
6062
6032
|
CACHE_REDIS_URL=
|
|
6033
|
+
# Upstash Redis REST URL for serverless caching
|
|
6034
|
+
CACHE_UPSTASH_REDIS_REST_URL=
|
|
6035
|
+
# Upstash Redis REST token for serverless caching
|
|
6036
|
+
CACHE_UPSTASH_REDIS_REST_TOKEN=
|
|
6063
6037
|
|
|
6064
6038
|
# =============================================================================
|
|
6065
6039
|
# Pub/Sub
|
|
@@ -6074,6 +6048,10 @@ PUBSUB_REDIS_URL=
|
|
|
6074
6048
|
|
|
6075
6049
|
# Redis connection URL for rate limiting
|
|
6076
6050
|
RATE_LIMIT_REDIS_URL=
|
|
6051
|
+
# Upstash Redis REST URL for serverless rate limiting
|
|
6052
|
+
RATE_LIMIT_UPSTASH_REDIS_URL=
|
|
6053
|
+
# Upstash Redis REST token for serverless rate limiting
|
|
6054
|
+
RATE_LIMIT_UPSTASH_REDIS_TOKEN=
|
|
6077
6055
|
|
|
6078
6056
|
# =============================================================================
|
|
6079
6057
|
# CORS
|
|
@@ -6216,11 +6194,11 @@ ADMIN_USERS=
|
|
|
6216
6194
|
// src/templates/app/index.ts.txt
|
|
6217
6195
|
var index_ts_default = `import { PostHogAnalytics } from "@ooneex/analytics";
|
|
6218
6196
|
import { App } from "@ooneex/app";
|
|
6219
|
-
import {
|
|
6220
|
-
import {
|
|
6197
|
+
import { UpstashRedisCache } from "@ooneex/cache";
|
|
6198
|
+
import { BetterstackLogger, BetterstackExceptionLogger, TerminalLogger } from "@ooneex/logger";
|
|
6221
6199
|
import { ResendMailer } from "@ooneex/mailer";
|
|
6222
6200
|
import { CorsMiddleware } from "@ooneex/middleware";
|
|
6223
|
-
import {
|
|
6201
|
+
import { UpstashRedisRateLimiter } from "@ooneex/rate-limit";
|
|
6224
6202
|
import { BunnyStorage } from "@ooneex/storage";
|
|
6225
6203
|
import { AppModule } from "./AppModule";
|
|
6226
6204
|
import { AppDatabase } from "./databases/AppDatabase";
|
|
@@ -6232,13 +6210,13 @@ const app = new App({
|
|
|
6232
6210
|
check: {
|
|
6233
6211
|
health: "/api/v1/healthcheck",
|
|
6234
6212
|
},
|
|
6235
|
-
loggers: [
|
|
6236
|
-
onException:
|
|
6213
|
+
loggers: [BetterstackLogger, TerminalLogger],
|
|
6214
|
+
onException: BetterstackExceptionLogger,
|
|
6237
6215
|
analytics: PostHogAnalytics,
|
|
6238
|
-
cache:
|
|
6216
|
+
cache: UpstashRedisCache,
|
|
6239
6217
|
storage: BunnyStorage,
|
|
6240
6218
|
mailer: ResendMailer,
|
|
6241
|
-
rateLimiter:
|
|
6219
|
+
rateLimiter: UpstashRedisRateLimiter,
|
|
6242
6220
|
middlewares: AppModule.middlewares,
|
|
6243
6221
|
cors: CorsMiddleware,
|
|
6244
6222
|
cronJobs: AppModule.cronJobs,
|
|
@@ -6286,8 +6264,8 @@ var nx_json_default = `{
|
|
|
6286
6264
|
var package_json_default = `{
|
|
6287
6265
|
"name": "{{NAME}}",
|
|
6288
6266
|
"scripts": {
|
|
6289
|
-
"dev": "
|
|
6290
|
-
"build": "
|
|
6267
|
+
"dev": "bunx nx run-many -t dev --output-style=stream --verbose",
|
|
6268
|
+
"build": "bunx nx run-many -t build --output-style=stream --verbose",
|
|
6291
6269
|
"fmt": "bunx biome check --write",
|
|
6292
6270
|
"lint": "bunx nx run-many -t lint --output-style=stream --verbose",
|
|
6293
6271
|
"test": "bunx nx run-many -t test --output-style=stream --verbose",
|
|
@@ -6615,7 +6593,8 @@ var askConfirm = async (config) => {
|
|
|
6615
6593
|
const response = await import_enquirer3.prompt({
|
|
6616
6594
|
type: "confirm",
|
|
6617
6595
|
name: "confirm",
|
|
6618
|
-
message: config.message
|
|
6596
|
+
message: config.message,
|
|
6597
|
+
initial: config.initial
|
|
6619
6598
|
});
|
|
6620
6599
|
return response.confirm;
|
|
6621
6600
|
};
|
|
@@ -9669,7 +9648,7 @@ class MakeReleaseCommand {
|
|
|
9669
9648
|
return;
|
|
9670
9649
|
}
|
|
9671
9650
|
logger.success(`${releasedCount} package(s) released`, undefined, logOptions);
|
|
9672
|
-
const shouldPush = await askConfirm({ message: "Push commits and tags to remote?" });
|
|
9651
|
+
const shouldPush = await askConfirm({ message: "Push commits and tags to remote?", initial: true });
|
|
9673
9652
|
if (shouldPush) {
|
|
9674
9653
|
try {
|
|
9675
9654
|
await $`git push && git push --tags`;
|
|
@@ -11314,4 +11293,4 @@ try {
|
|
|
11314
11293
|
process.exit(1);
|
|
11315
11294
|
}
|
|
11316
11295
|
|
|
11317
|
-
//# debugId=
|
|
11296
|
+
//# debugId=66642B525FB9C1FC64756E2164756E21
|