@pgpmjs/types 2.14.0 → 2.15.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/esm/pgpm.js CHANGED
@@ -80,6 +80,18 @@ export const pgpmDefaults = {
80
80
  pollInterval: 1000,
81
81
  gracefulShutdown: true
82
82
  }
83
+ },
84
+ errorOutput: {
85
+ queryHistoryLimit: 30,
86
+ maxLength: 10000,
87
+ verbose: false
88
+ },
89
+ smtp: {
90
+ port: 587,
91
+ secure: false,
92
+ pool: false,
93
+ logger: false,
94
+ debug: false
83
95
  }
84
96
  };
85
97
  export function getGitConfigInfo() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/types",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM types",
6
6
  "main": "index.js",
@@ -29,7 +29,7 @@
29
29
  "test:watch": "jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "pg-env": "^1.2.5"
32
+ "pg-env": "^1.3.0"
33
33
  },
34
34
  "keywords": [
35
35
  "types",
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "makage": "^0.1.10"
44
44
  },
45
- "gitHead": "f2f9c9851beff3214790dfca371e4ca7f6c1373f"
45
+ "gitHead": "481b3a50b4eec2da6b376c4cd1868065e1e28edb"
46
46
  }
package/pgpm.d.ts CHANGED
@@ -117,6 +117,41 @@ export interface CDNOptions {
117
117
  /** MinIO endpoint URL for local development (only used when provider is 'minio') */
118
118
  minioEndpoint?: string;
119
119
  }
120
+ /**
121
+ * SMTP email configuration options
122
+ */
123
+ export interface SmtpOptions {
124
+ /** SMTP server hostname */
125
+ host?: string;
126
+ /** SMTP server port (defaults to 587 for non-secure, 465 for secure) */
127
+ port?: number;
128
+ /** Use TLS/SSL connection (defaults based on port: true for 465, false otherwise) */
129
+ secure?: boolean;
130
+ /** SMTP authentication username */
131
+ user?: string;
132
+ /** SMTP authentication password */
133
+ pass?: string;
134
+ /** Default sender email address */
135
+ from?: string;
136
+ /** Default reply-to email address */
137
+ replyTo?: string;
138
+ /** Require TLS upgrade via STARTTLS */
139
+ requireTLS?: boolean;
140
+ /** Reject unauthorized TLS certificates */
141
+ tlsRejectUnauthorized?: boolean;
142
+ /** Use connection pooling for multiple emails */
143
+ pool?: boolean;
144
+ /** Maximum number of pooled connections */
145
+ maxConnections?: number;
146
+ /** Maximum messages per connection before reconnecting */
147
+ maxMessages?: number;
148
+ /** SMTP client hostname for EHLO/HELO */
149
+ name?: string;
150
+ /** Enable nodemailer logging */
151
+ logger?: boolean;
152
+ /** Enable nodemailer debug output */
153
+ debug?: boolean;
154
+ }
120
155
  /**
121
156
  * Code generation settings
122
157
  */
@@ -131,6 +166,17 @@ export interface MigrationOptions {
131
166
  /** Code generation settings */
132
167
  codegen?: CodegenOptions;
133
168
  }
169
+ /**
170
+ * Error output formatting options for controlling verbosity of error messages
171
+ */
172
+ export interface ErrorOutputOptions {
173
+ /** Maximum number of queries to show in error output (default: 30) */
174
+ queryHistoryLimit?: number;
175
+ /** Maximum total characters for error output before truncation (default: 10000) */
176
+ maxLength?: number;
177
+ /** When true, disables all limiting and shows full error output (default: false) */
178
+ verbose?: boolean;
179
+ }
134
180
  /**
135
181
  * Configuration for PGPM workspace
136
182
  */
@@ -189,6 +235,10 @@ export interface PgpmOptions {
189
235
  migrations?: MigrationOptions;
190
236
  /** Job system configuration */
191
237
  jobs?: JobsConfig;
238
+ /** Error output formatting options */
239
+ errorOutput?: ErrorOutputOptions;
240
+ /** SMTP email configuration */
241
+ smtp?: SmtpOptions;
192
242
  }
193
243
  /**
194
244
  * Default configuration values for PGPM framework
package/pgpm.js CHANGED
@@ -84,6 +84,18 @@ exports.pgpmDefaults = {
84
84
  pollInterval: 1000,
85
85
  gracefulShutdown: true
86
86
  }
87
+ },
88
+ errorOutput: {
89
+ queryHistoryLimit: 30,
90
+ maxLength: 10000,
91
+ verbose: false
92
+ },
93
+ smtp: {
94
+ port: 587,
95
+ secure: false,
96
+ pool: false,
97
+ logger: false,
98
+ debug: false
87
99
  }
88
100
  };
89
101
  function getGitConfigInfo() {