@platformatic/nitro 3.73.0-alpha.0 → 3.74.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.
Files changed (3) hide show
  1. package/config.d.ts +16 -0
  2. package/package.json +7 -7
  3. package/schema.json +21 -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
  };
@@ -256,6 +264,14 @@ export interface PlatformaticNitroConfig {
256
264
  [k: string]: unknown;
257
265
  } | null;
258
266
  messageKey?: string;
267
+ /**
268
+ * The key used for the timestamp in emitted logs. Defaults to time.
269
+ */
270
+ timestampKey?: string;
271
+ /**
272
+ * The key used for the level in emitted logs. Defaults to level.
273
+ */
274
+ levelKey?: string;
259
275
  customLevels?: {
260
276
  [k: string]: unknown;
261
277
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/nitro",
3
- "version": "3.73.0-alpha.0",
3
+ "version": "3.74.0",
4
4
  "description": "Platformatic Nitro Capability",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -29,16 +29,16 @@
29
29
  },
30
30
  "homepage": "https://github.com/platformatic/platformatic#readme",
31
31
  "dependencies": {
32
- "@platformatic/basic": "3.73.0-alpha.0",
33
- "@platformatic/foundation": "3.73.0-alpha.0",
34
- "@platformatic/globals": "3.73.0-alpha.0",
35
- "@platformatic/vite": "3.73.0-alpha.0",
32
+ "@platformatic/basic": "3.74.0",
33
+ "@platformatic/foundation": "3.74.0",
34
+ "@platformatic/globals": "3.74.0",
35
+ "@platformatic/vite": "3.74.0",
36
36
  "light-my-request": "^6.6.0",
37
37
  "semver": "^7.6.3"
38
38
  },
39
39
  "devDependencies": {
40
- "@platformatic/gateway": "3.73.0-alpha.0",
41
- "@platformatic/service": "3.73.0-alpha.0",
40
+ "@platformatic/gateway": "3.74.0",
41
+ "@platformatic/service": "3.74.0",
42
42
  "cleaner-spec-reporter": "^2.0.0",
43
43
  "eslint": "9",
44
44
  "json-schema-to-typescript": "^15.0.1",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/nitro/3.73.0-alpha.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/nitro/3.74.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
@@ -1181,6 +1191,16 @@
1181
1191
  "messageKey": {
1182
1192
  "type": "string"
1183
1193
  },
1194
+ "timestampKey": {
1195
+ "type": "string",
1196
+ "minLength": 1,
1197
+ "description": "The key used for the timestamp in emitted logs. Defaults to time."
1198
+ },
1199
+ "levelKey": {
1200
+ "type": "string",
1201
+ "minLength": 1,
1202
+ "description": "The key used for the level in emitted logs. Defaults to level."
1203
+ },
1184
1204
  "customLevels": {
1185
1205
  "type": "object",
1186
1206
  "additionalProperties": true