@platformatic/vite 2.62.1 → 2.63.1

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 CHANGED
@@ -40,6 +40,14 @@ export interface PlatformaticViteStackable {
40
40
  [k: string]: unknown;
41
41
  };
42
42
  };
43
+ formatters?: {
44
+ path: string;
45
+ };
46
+ timestamp?: "epochTime" | "unixTime" | "nullTime" | "isoTime";
47
+ redact?: {
48
+ paths: string[];
49
+ censor?: string;
50
+ };
43
51
  [k: string]: unknown;
44
52
  };
45
53
  server?: {
package/index.js CHANGED
@@ -250,7 +250,7 @@ export class ViteStackable extends BaseStackable {
250
250
  return this.url
251
251
  }
252
252
 
253
- this.#app = fastify({ logger: { level: 'info' } })
253
+ this.#app = fastify({ loggerInstance: this.logger })
254
254
 
255
255
  const outputDirectory = resolve(this.root, config.application.outputDirectory)
256
256
  this.verifyOutputDirectory(outputDirectory)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/vite",
3
- "version": "2.62.1",
3
+ "version": "2.63.1",
4
4
  "description": "Platformatic Vite Stackable",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,14 +18,14 @@
18
18
  "@fastify/static": "^8.0.0",
19
19
  "fastify": "^5.0.0",
20
20
  "semver": "^7.6.3",
21
- "@platformatic/basic": "2.62.1",
22
- "@platformatic/config": "2.62.1",
23
- "@platformatic/node": "2.62.1",
24
- "@platformatic/utils": "2.62.1"
21
+ "@platformatic/node": "2.63.1",
22
+ "@platformatic/basic": "2.63.1",
23
+ "@platformatic/utils": "2.63.1",
24
+ "@platformatic/config": "2.63.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@fastify/vite": "^7.0.1",
28
- "borp": "^0.19.0",
28
+ "borp": "^0.20.0",
29
29
  "eslint": "9",
30
30
  "json-schema-to-typescript": "^15.0.1",
31
31
  "neostandard": "^0.12.0",
@@ -34,8 +34,8 @@
34
34
  "typescript": "^5.5.4",
35
35
  "vite": "^5.4.0",
36
36
  "ws": "^8.18.0",
37
- "@platformatic/composer": "2.62.1",
38
- "@platformatic/service": "2.62.1"
37
+ "@platformatic/composer": "2.63.1",
38
+ "@platformatic/service": "2.63.1"
39
39
  },
40
40
  "scripts": {
41
41
  "test": "npm run lint && borp --concurrency=1 --no-timeout",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/vite/2.62.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/vite/2.63.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Vite Stackable",
5
5
  "type": "object",
@@ -95,6 +95,46 @@
95
95
  }
96
96
  },
97
97
  "additionalProperties": false
98
+ },
99
+ "formatters": {
100
+ "type": "object",
101
+ "properties": {
102
+ "path": {
103
+ "type": "string",
104
+ "resolvePath": true
105
+ }
106
+ },
107
+ "required": [
108
+ "path"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ "timestamp": {
113
+ "enum": [
114
+ "epochTime",
115
+ "unixTime",
116
+ "nullTime",
117
+ "isoTime"
118
+ ]
119
+ },
120
+ "redact": {
121
+ "type": "object",
122
+ "properties": {
123
+ "paths": {
124
+ "type": "array",
125
+ "items": {
126
+ "type": "string"
127
+ }
128
+ },
129
+ "censor": {
130
+ "type": "string",
131
+ "default": "[redacted]"
132
+ }
133
+ },
134
+ "required": [
135
+ "paths"
136
+ ],
137
+ "additionalProperties": false
98
138
  }
99
139
  },
100
140
  "required": [