@platformatic/nitro 3.73.0 → 3.75.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/config.d.ts +135 -4
- package/package.json +8 -8
- package/schema.json +41 -1
package/config.d.ts
CHANGED
|
@@ -54,6 +54,14 @@ export interface PlatformaticNitroConfig {
|
|
|
54
54
|
[k: string]: unknown;
|
|
55
55
|
} | null;
|
|
56
56
|
messageKey?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The key used for the timestamp in emitted logs. Defaults to time.
|
|
59
|
+
*/
|
|
60
|
+
timestampKey?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The key used for the level in emitted logs. Defaults to level.
|
|
63
|
+
*/
|
|
64
|
+
levelKey?: string;
|
|
57
65
|
customLevels?: {
|
|
58
66
|
[k: string]: unknown;
|
|
59
67
|
};
|
|
@@ -114,6 +122,14 @@ export interface PlatformaticNitroConfig {
|
|
|
114
122
|
* The maximum length of the queue of pending connections
|
|
115
123
|
*/
|
|
116
124
|
backlog?: number;
|
|
125
|
+
/**
|
|
126
|
+
* The number of milliseconds of inactivity a server needs to wait for additional incoming data, after it has finished writing the last response, before a socket will be destroyed. When running behind a load balancer, set it higher than the load balancer idle timeout.
|
|
127
|
+
*/
|
|
128
|
+
keepAliveTimeout?: number;
|
|
129
|
+
/**
|
|
130
|
+
* The number of milliseconds to wait to receive the complete HTTP headers from the client. It should be greater than keepAliveTimeout.
|
|
131
|
+
*/
|
|
132
|
+
headersTimeout?: number;
|
|
117
133
|
https?: {
|
|
118
134
|
allowHTTP1?: boolean;
|
|
119
135
|
key:
|
|
@@ -148,8 +164,8 @@ export interface PlatformaticNitroConfig {
|
|
|
148
164
|
/**
|
|
149
165
|
* @minItems 1
|
|
150
166
|
*/
|
|
151
|
-
allow?: [string, ...string[]];
|
|
152
|
-
ignore?: string[];
|
|
167
|
+
allow?: [string, ...string[]] | null;
|
|
168
|
+
ignore?: string[] | null;
|
|
153
169
|
}
|
|
154
170
|
| boolean
|
|
155
171
|
| string;
|
|
@@ -190,9 +206,108 @@ export interface PlatformaticNitroConfig {
|
|
|
190
206
|
}
|
|
191
207
|
)[];
|
|
192
208
|
basePath?: string;
|
|
193
|
-
services?: {
|
|
209
|
+
services?: ({
|
|
194
210
|
[k: string]: unknown;
|
|
195
|
-
}
|
|
211
|
+
} & {
|
|
212
|
+
id?: string;
|
|
213
|
+
enabled?:
|
|
214
|
+
| boolean
|
|
215
|
+
| string
|
|
216
|
+
| {
|
|
217
|
+
[k: string]: boolean;
|
|
218
|
+
};
|
|
219
|
+
path?: string;
|
|
220
|
+
config?: string;
|
|
221
|
+
url?: string;
|
|
222
|
+
gitBranch?: string;
|
|
223
|
+
useHttp?: boolean;
|
|
224
|
+
websocket?: boolean;
|
|
225
|
+
reuseTcpPorts?: boolean;
|
|
226
|
+
workers?:
|
|
227
|
+
| number
|
|
228
|
+
| string
|
|
229
|
+
| {
|
|
230
|
+
static?: number;
|
|
231
|
+
minimum?: number;
|
|
232
|
+
maximum?: number;
|
|
233
|
+
scaleUpELU?: number;
|
|
234
|
+
scaleDownELU?: number;
|
|
235
|
+
[k: string]: unknown;
|
|
236
|
+
};
|
|
237
|
+
health?: {
|
|
238
|
+
enabled?: boolean | string;
|
|
239
|
+
interval?: number | string;
|
|
240
|
+
gracePeriod?: number | string;
|
|
241
|
+
maxUnhealthyChecks?: number | string;
|
|
242
|
+
maxELU?: number | string;
|
|
243
|
+
maxEventLoopDelay?: number | string;
|
|
244
|
+
maxEventLoopDelayP99?: number | string;
|
|
245
|
+
maxHeapUsed?: number | string;
|
|
246
|
+
maxHeapTotal?: number | string;
|
|
247
|
+
maxYoungGeneration?: number | string;
|
|
248
|
+
codeRangeSize?: number | string;
|
|
249
|
+
bufferPoolSize?: number | string;
|
|
250
|
+
defaultHighWaterMark?: number | string;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.
|
|
254
|
+
*/
|
|
255
|
+
restartOnError?: boolean | number;
|
|
256
|
+
dependencies?: string[];
|
|
257
|
+
arguments?: string[];
|
|
258
|
+
env?: {
|
|
259
|
+
[k: string]: string;
|
|
260
|
+
};
|
|
261
|
+
envfile?: string;
|
|
262
|
+
sourceMaps?: boolean;
|
|
263
|
+
nodeModulesSourceMaps?: string[];
|
|
264
|
+
packageManager?: "npm" | "pnpm" | "yarn";
|
|
265
|
+
preload?: string | string[];
|
|
266
|
+
nodeOptions?: string;
|
|
267
|
+
execArgv?: string[];
|
|
268
|
+
permissions?: {
|
|
269
|
+
fs?: {
|
|
270
|
+
read?: string[];
|
|
271
|
+
write?: string[];
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
telemetry?: {
|
|
275
|
+
/**
|
|
276
|
+
* An array of instrumentations loaded if telemetry is enabled
|
|
277
|
+
*/
|
|
278
|
+
instrumentations?: (
|
|
279
|
+
| string
|
|
280
|
+
| {
|
|
281
|
+
package: string;
|
|
282
|
+
exportName?: string;
|
|
283
|
+
options?: {
|
|
284
|
+
[k: string]: unknown;
|
|
285
|
+
};
|
|
286
|
+
[k: string]: unknown;
|
|
287
|
+
}
|
|
288
|
+
)[];
|
|
289
|
+
[k: string]: unknown;
|
|
290
|
+
};
|
|
291
|
+
compileCache?:
|
|
292
|
+
| boolean
|
|
293
|
+
| {
|
|
294
|
+
/**
|
|
295
|
+
* Enable Node.js module compile cache for faster startup
|
|
296
|
+
*/
|
|
297
|
+
enabled?: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Directory to store compile cache. Defaults to .plt/compile-cache in app root
|
|
300
|
+
*/
|
|
301
|
+
directory?: string;
|
|
302
|
+
};
|
|
303
|
+
management?:
|
|
304
|
+
| boolean
|
|
305
|
+
| {
|
|
306
|
+
enabled?: boolean;
|
|
307
|
+
operations?: string[];
|
|
308
|
+
};
|
|
309
|
+
[k: string]: unknown;
|
|
310
|
+
})[];
|
|
196
311
|
workers?:
|
|
197
312
|
| number
|
|
198
313
|
| string
|
|
@@ -256,6 +371,14 @@ export interface PlatformaticNitroConfig {
|
|
|
256
371
|
[k: string]: unknown;
|
|
257
372
|
} | null;
|
|
258
373
|
messageKey?: string;
|
|
374
|
+
/**
|
|
375
|
+
* The key used for the timestamp in emitted logs. Defaults to time.
|
|
376
|
+
*/
|
|
377
|
+
timestampKey?: string;
|
|
378
|
+
/**
|
|
379
|
+
* The key used for the level in emitted logs. Defaults to level.
|
|
380
|
+
*/
|
|
381
|
+
levelKey?: string;
|
|
259
382
|
customLevels?: {
|
|
260
383
|
[k: string]: unknown;
|
|
261
384
|
};
|
|
@@ -316,6 +439,14 @@ export interface PlatformaticNitroConfig {
|
|
|
316
439
|
* The maximum length of the queue of pending connections
|
|
317
440
|
*/
|
|
318
441
|
backlog?: number;
|
|
442
|
+
/**
|
|
443
|
+
* The number of milliseconds of inactivity a server needs to wait for additional incoming data, after it has finished writing the last response, before a socket will be destroyed. When running behind a load balancer, set it higher than the load balancer idle timeout.
|
|
444
|
+
*/
|
|
445
|
+
keepAliveTimeout?: number;
|
|
446
|
+
/**
|
|
447
|
+
* The number of milliseconds to wait to receive the complete HTTP headers from the client. It should be greater than keepAliveTimeout.
|
|
448
|
+
*/
|
|
449
|
+
headersTimeout?: number;
|
|
319
450
|
http2?: boolean;
|
|
320
451
|
https?: {
|
|
321
452
|
allowHTTP1?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/nitro",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.75.0",
|
|
4
4
|
"description": "Platformatic Nitro Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/platformatic/platformatic#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@platformatic/basic": "3.
|
|
33
|
-
"@platformatic/foundation": "3.
|
|
34
|
-
"@platformatic/globals": "3.
|
|
35
|
-
"@platformatic/vite": "3.
|
|
32
|
+
"@platformatic/basic": "3.75.0",
|
|
33
|
+
"@platformatic/foundation": "3.75.0",
|
|
34
|
+
"@platformatic/globals": "3.75.0",
|
|
35
|
+
"@platformatic/vite": "3.75.0",
|
|
36
36
|
"light-my-request": "^6.6.0",
|
|
37
37
|
"semver": "^7.6.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@platformatic/gateway": "3.
|
|
41
|
-
"@platformatic/service": "3.
|
|
40
|
+
"@platformatic/gateway": "3.75.0",
|
|
41
|
+
"@platformatic/service": "3.75.0",
|
|
42
42
|
"cleaner-spec-reporter": "^2.0.0",
|
|
43
43
|
"eslint": "9",
|
|
44
|
-
"json-schema-to-typescript": "^
|
|
44
|
+
"json-schema-to-typescript": "^16.0.0",
|
|
45
45
|
"neostandard": "^0.14.0",
|
|
46
46
|
"nitro": "^3.0.260610-beta",
|
|
47
47
|
"nitropack": "^2.12.9",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/nitro/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/nitro/3.75.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Nitro Config",
|
|
5
5
|
"type": "object",
|
|
@@ -141,6 +141,16 @@
|
|
|
141
141
|
"messageKey": {
|
|
142
142
|
"type": "string"
|
|
143
143
|
},
|
|
144
|
+
"timestampKey": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"minLength": 1,
|
|
147
|
+
"description": "The key used for the timestamp in emitted logs. Defaults to time."
|
|
148
|
+
},
|
|
149
|
+
"levelKey": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"minLength": 1,
|
|
152
|
+
"description": "The key used for the level in emitted logs. Defaults to level."
|
|
153
|
+
},
|
|
144
154
|
"customLevels": {
|
|
145
155
|
"type": "object",
|
|
146
156
|
"additionalProperties": true
|
|
@@ -270,6 +280,16 @@
|
|
|
270
280
|
"type": "integer",
|
|
271
281
|
"description": "The maximum length of the queue of pending connections"
|
|
272
282
|
},
|
|
283
|
+
"keepAliveTimeout": {
|
|
284
|
+
"type": "integer",
|
|
285
|
+
"minimum": 0,
|
|
286
|
+
"description": "The number of milliseconds of inactivity a server needs to wait for additional incoming data, after it has finished writing the last response, before a socket will be destroyed. When running behind a load balancer, set it higher than the load balancer idle timeout."
|
|
287
|
+
},
|
|
288
|
+
"headersTimeout": {
|
|
289
|
+
"type": "integer",
|
|
290
|
+
"minimum": 0,
|
|
291
|
+
"description": "The number of milliseconds to wait to receive the complete HTTP headers from the client. It should be greater than keepAliveTimeout."
|
|
292
|
+
},
|
|
273
293
|
"https": {
|
|
274
294
|
"type": "object",
|
|
275
295
|
"properties": {
|
|
@@ -1181,6 +1201,16 @@
|
|
|
1181
1201
|
"messageKey": {
|
|
1182
1202
|
"type": "string"
|
|
1183
1203
|
},
|
|
1204
|
+
"timestampKey": {
|
|
1205
|
+
"type": "string",
|
|
1206
|
+
"minLength": 1,
|
|
1207
|
+
"description": "The key used for the timestamp in emitted logs. Defaults to time."
|
|
1208
|
+
},
|
|
1209
|
+
"levelKey": {
|
|
1210
|
+
"type": "string",
|
|
1211
|
+
"minLength": 1,
|
|
1212
|
+
"description": "The key used for the level in emitted logs. Defaults to level."
|
|
1213
|
+
},
|
|
1184
1214
|
"customLevels": {
|
|
1185
1215
|
"type": "object",
|
|
1186
1216
|
"additionalProperties": true
|
|
@@ -1310,6 +1340,16 @@
|
|
|
1310
1340
|
"type": "integer",
|
|
1311
1341
|
"description": "The maximum length of the queue of pending connections"
|
|
1312
1342
|
},
|
|
1343
|
+
"keepAliveTimeout": {
|
|
1344
|
+
"type": "integer",
|
|
1345
|
+
"minimum": 0,
|
|
1346
|
+
"description": "The number of milliseconds of inactivity a server needs to wait for additional incoming data, after it has finished writing the last response, before a socket will be destroyed. When running behind a load balancer, set it higher than the load balancer idle timeout."
|
|
1347
|
+
},
|
|
1348
|
+
"headersTimeout": {
|
|
1349
|
+
"type": "integer",
|
|
1350
|
+
"minimum": 0,
|
|
1351
|
+
"description": "The number of milliseconds to wait to receive the complete HTTP headers from the client. It should be greater than keepAliveTimeout."
|
|
1352
|
+
},
|
|
1313
1353
|
"http2": {
|
|
1314
1354
|
"type": "boolean"
|
|
1315
1355
|
},
|