@platformatic/astro 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 PlatformaticAstroStackable {
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
@@ -270,7 +270,7 @@ export class AstroStackable extends BaseStackable {
270
270
  return this.url
271
271
  }
272
272
 
273
- this.#app = fastify({ logger: { level: this.logger.level } })
273
+ this.#app = fastify({ loggerInstance: this.logger })
274
274
 
275
275
  const root = resolve(this.root, outputDirectory)
276
276
  this.verifyOutputDirectory(root)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/astro",
3
- "version": "2.62.1",
3
+ "version": "2.63.1",
4
4
  "description": "Platformatic Astro Stackable",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -19,14 +19,14 @@
19
19
  "@fastify/static": "^8.0.0",
20
20
  "fastify": "^5.0.0",
21
21
  "semver": "^7.6.3",
22
- "@platformatic/basic": "2.62.1",
23
- "@platformatic/config": "2.62.1",
24
- "@platformatic/utils": "2.62.1"
22
+ "@platformatic/basic": "2.63.1",
23
+ "@platformatic/config": "2.63.1",
24
+ "@platformatic/utils": "2.63.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@astrojs/node": "^9.2.0",
28
28
  "astro": "^5.7.1",
29
- "borp": "^0.19.0",
29
+ "borp": "^0.20.0",
30
30
  "eslint": "9",
31
31
  "json-schema-to-typescript": "^15.0.1",
32
32
  "minimatch": "^10.0.1",
@@ -34,8 +34,8 @@
34
34
  "typescript": "^5.5.4",
35
35
  "vite": "^5.4.4",
36
36
  "ws": "^8.18.0",
37
- "@platformatic/service": "2.62.1",
38
- "@platformatic/composer": "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/astro/2.62.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/astro/2.63.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Astro 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": [