@vidavidorra/bunyan-pretty-stream 6.0.1 → 6.0.2

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/README.md CHANGED
@@ -1,22 +1,21 @@
1
- # Bunyan pretty stream
1
+ # [**Bunyan**](https://github.com/trentm/node-bunyan) pretty stream <!-- omit in toc -->
2
2
 
3
- Highly configurable Bunyan stream with pretty output.
3
+ Highly configurable [**Bunyan**](https://github.com/trentm/node-bunyan) stream with pretty output.
4
4
 
5
5
  - ...
6
6
 
7
7
  ---
8
8
 
9
- [![Renovate enabled](https://img.shields.io/badge/Renovate-enabled-brightgreen.svg?logo=renovatebot&logoColor&style=flat-square)](https://renovatebot.com)
10
- [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
11
- [![License](https://img.shields.io/github/license/vidavidorra/bunyan-pretty-stream.svg?style=flat-square)](LICENSE.md)
12
-
13
- <a name="toc"></a>
14
-
15
- ## Table of contents
9
+ [![npm version](https://img.shields.io/npm/v/@vidavidorra/bunyan-pretty-stream?logo=npm&style=flat-square)](https://www.npmjs.com/package/@vidavidorra/bunyan-pretty-stream)
10
+ [![npm downloads](https://img.shields.io/npm/dm/@vidavidorra/bunyan-pretty-stream?logo=npm&style=flat-square)](https://www.npmjs.com/package/@vidavidorra/bunyan-pretty-stream)
11
+ [![Node.js version support](https://img.shields.io/node/v/@vidavidorra/bunyan-pretty-stream?logo=node.js&style=flat-square)](https://nodejs.org/en/about/releases/)
12
+ [![Renovate enabled](https://img.shields.io/badge/Renovate-enabled-brightgreen?logo=renovatebot&logoColor&style=flat-square)](https://renovatebot.com)
13
+ [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079?style=flat-square)](https://github.com/semantic-release/semantic-release)
14
+ [![Code coverage](https://img.shields.io/codecov/c/github/vidavidorra/bunyan-pretty-stream?logo=codecov&style=flat-square)](https://codecov.io/gh/vidavidorra/bunyan-pretty-stream)
15
+ [![License](https://img.shields.io/github/license/vidavidorra/bunyan-pretty-stream?style=flat-square)](LICENSE.md)
16
16
 
17
17
  - [Install](#install)
18
18
  - [Usage](#usage)
19
- - [Documentation](#documentation)
20
19
  - [Contributing](#contributing)
21
20
  - [Security policy](#security-policy)
22
21
  - [License](#license)
@@ -31,24 +30,15 @@ npm install @vidavidorra/bunyan-pretty-stream
31
30
 
32
31
  ...
33
32
 
34
- ## Documentation
35
-
36
- ...
37
-
38
33
  ## Contributing
39
34
 
40
- Please [create an issue](https://github.com/vidavidorra/bunyan-pretty-stream/issues/new/choose) if you have a bug report, feature proposal or question that does not yet exist.
41
-
42
- If you like this project, give it a start ⭐ and consider becoming a [sponsor](https://github.com/sponsors/jdbruijn) to support this project.
35
+ Please [create an issue](https://github.com/vidavidorra/bunyan-pretty-stream/issues/new/choose) if you have a bug report or feature proposal, or [create a discussion](https://github.com/vidavidorra/bunyan-pretty-stream/discussions) if you have a question. If you like this project, please consider giving it a star ⭐
43
36
 
44
- Please refer to the [contributing guide](https://github.com/vidavidorra/.github/blob/main/CONTRIBUTING.md) detailed information about other contributions, like pull requests.
37
+ Refer to the [contributing guide](https://github.com/vidavidorra/.github/blob/main/CONTRIBUTING.md) for detailed information about other contributions, like pull requests.
45
38
 
46
- [![Conventional Commits: 1.0.0](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)
47
- [![Code style](https://img.shields.io/badge/code_style-Prettier-ff69b4.svg?logo=prettier&style=flat-square)](https://github.com/prettier/prettier)
48
- [![Linting](https://img.shields.io/badge/linting-ESLint-lightgrey.svg?logo=eslint&style=flat-square)](https://eslint.org)
49
- [![Lint commit messages](https://img.shields.io/github/workflow/status/vidavidorra/bunyan-pretty-stream/Lint%20commit%20messages?logo=github&label=Lint%20commit%20messages&style=flat-square)](https://github.com/vidavidorra/bunyan-pretty-stream/actions)
50
- [![Build](https://img.shields.io/github/workflow/status/vidavidorra/bunyan-pretty-stream/Build?logo=github&label=Build&style=flat-square)](https://github.com/vidavidorra/bunyan-pretty-stream/actions)
51
- [![Coverage](https://img.shields.io/codecov/c/github/vidavidorra/bunyan-pretty-stream?logo=codecov&style=flat-square)](https://codecov.io/gh/vidavidorra/bunyan-pretty-stream)
39
+ [![Conventional Commits: 1.0.0](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow?style=flat-square)](https://conventionalcommits.org)
40
+ [![XO code style](https://shields.io/badge/code_style-5ed9c7?logo=xo&labelColor=gray&style=flat-square)](https://github.com/xojs/xo)
41
+ [![Code style](https://img.shields.io/badge/code_style-Prettier-ff69b4?logo=prettier&style=flat-square)](https://github.com/prettier/prettier)
52
42
 
53
43
  ## Security policy
54
44
 
@@ -58,7 +48,7 @@ Please refer to the [Security Policy on GitHub](https://github.com/vidavidorra/b
58
48
 
59
49
  This project is licensed under the [GPLv3 license](https://www.gnu.org/licenses/gpl.html).
60
50
 
61
- Copyright © 2021-2023 Jeroen de Bruijn
51
+ Copyright © 2021-2024 Jeroen de Bruijn
62
52
 
63
53
  <details><summary>License details.</summary>
64
54
  <p>
@@ -79,3 +69,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
79
69
  The full text of the license is available in the [LICENSE](LICENSE.md) file in this repository and [online](https://www.gnu.org/licenses/gpl.html).
80
70
 
81
71
  </details>
72
+
73
+ <!-- references -->
74
+
75
+ [bunyan]: https://github.com/trentm/node-bunyan
package/dist/options.d.ts CHANGED
@@ -8,18 +8,18 @@ declare const publicSchema: z.ZodObject<{
8
8
  source: z.ZodDefault<z.ZodBoolean>;
9
9
  extras: z.ZodDefault<z.ZodBoolean>;
10
10
  }, "strict", z.ZodTypeAny, {
11
+ time: boolean;
11
12
  source: boolean;
12
13
  name: boolean;
13
- time: boolean;
14
14
  hostname: boolean;
15
15
  pid: boolean;
16
16
  extras: boolean;
17
17
  }, {
18
18
  time?: boolean | undefined;
19
+ source?: boolean | undefined;
19
20
  name?: boolean | undefined;
20
21
  hostname?: boolean | undefined;
21
22
  pid?: boolean | undefined;
22
- source?: boolean | undefined;
23
23
  extras?: boolean | undefined;
24
24
  }>>;
25
25
  extras: z.ZodDefault<z.ZodObject<{
@@ -34,8 +34,8 @@ declare const publicSchema: z.ZodObject<{
34
34
  value: number;
35
35
  }, {
36
36
  key?: number | undefined;
37
- value?: number | undefined;
38
37
  total?: number | undefined;
38
+ value?: number | undefined;
39
39
  }>>;
40
40
  }, "strict", z.ZodTypeAny, {
41
41
  maxLength: {
@@ -48,8 +48,8 @@ declare const publicSchema: z.ZodObject<{
48
48
  key?: string | undefined;
49
49
  maxLength?: {
50
50
  key?: number | undefined;
51
- value?: number | undefined;
52
51
  total?: number | undefined;
52
+ value?: number | undefined;
53
53
  } | undefined;
54
54
  }>>;
55
55
  indent: z.ZodDefault<z.ZodObject<{
@@ -82,24 +82,24 @@ declare const publicSchema: z.ZodObject<{
82
82
  preset: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET";
83
83
  format?: string | undefined;
84
84
  }, {
85
+ format?: string | undefined;
85
86
  utc?: boolean | undefined;
86
87
  preset?: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET" | undefined;
87
- format?: string | undefined;
88
88
  }>>;
89
89
  }, "strict", z.ZodTypeAny, {
90
+ time: {
91
+ utc: boolean;
92
+ preset: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET";
93
+ format?: string | undefined;
94
+ };
90
95
  show: {
96
+ time: boolean;
91
97
  source: boolean;
92
98
  name: boolean;
93
- time: boolean;
94
99
  hostname: boolean;
95
100
  pid: boolean;
96
101
  extras: boolean;
97
102
  };
98
- time: {
99
- utc: boolean;
100
- preset: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET";
101
- format?: string | undefined;
102
- };
103
103
  extras: {
104
104
  maxLength: {
105
105
  key: number;
@@ -113,22 +113,27 @@ declare const publicSchema: z.ZodObject<{
113
113
  json: number;
114
114
  };
115
115
  basePath: string;
116
- newLineCharacter: "\r" | "\n" | "\r\n";
116
+ newLineCharacter: "\n" | "\r" | "\r\n";
117
117
  }, {
118
+ time?: {
119
+ format?: string | undefined;
120
+ utc?: boolean | undefined;
121
+ preset?: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET" | undefined;
122
+ } | undefined;
118
123
  show?: {
119
124
  time?: boolean | undefined;
125
+ source?: boolean | undefined;
120
126
  name?: boolean | undefined;
121
127
  hostname?: boolean | undefined;
122
128
  pid?: boolean | undefined;
123
- source?: boolean | undefined;
124
129
  extras?: boolean | undefined;
125
130
  } | undefined;
126
131
  extras?: {
127
132
  key?: string | undefined;
128
133
  maxLength?: {
129
134
  key?: number | undefined;
130
- value?: number | undefined;
131
135
  total?: number | undefined;
136
+ value?: number | undefined;
132
137
  } | undefined;
133
138
  } | undefined;
134
139
  indent?: {
@@ -136,15 +141,10 @@ declare const publicSchema: z.ZodObject<{
136
141
  json?: number | undefined;
137
142
  } | undefined;
138
143
  basePath?: unknown;
139
- newLineCharacter?: "\r" | "\n" | "\r\n" | undefined;
140
- time?: {
141
- utc?: boolean | undefined;
142
- preset?: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET" | undefined;
143
- format?: string | undefined;
144
- } | undefined;
144
+ newLineCharacter?: "\n" | "\r" | "\r\n" | undefined;
145
145
  }>;
146
146
  type PublicOptions = z.input<typeof publicSchema>;
147
- declare const schema: z.ZodObject<{
147
+ declare const schema: z.ZodObject<z.objectUtil.extendShape<{
148
148
  show: z.ZodDefault<z.ZodObject<{
149
149
  time: z.ZodDefault<z.ZodBoolean>;
150
150
  name: z.ZodDefault<z.ZodBoolean>;
@@ -153,20 +153,62 @@ declare const schema: z.ZodObject<{
153
153
  source: z.ZodDefault<z.ZodBoolean>;
154
154
  extras: z.ZodDefault<z.ZodBoolean>;
155
155
  }, "strict", z.ZodTypeAny, {
156
+ time: boolean;
156
157
  source: boolean;
157
158
  name: boolean;
158
- time: boolean;
159
159
  hostname: boolean;
160
160
  pid: boolean;
161
161
  extras: boolean;
162
162
  }, {
163
163
  time?: boolean | undefined;
164
+ source?: boolean | undefined;
164
165
  name?: boolean | undefined;
165
166
  hostname?: boolean | undefined;
166
167
  pid?: boolean | undefined;
167
- source?: boolean | undefined;
168
168
  extras?: boolean | undefined;
169
169
  }>>;
170
+ extras: z.ZodDefault<z.ZodObject<{
171
+ key: z.ZodOptional<z.ZodString>;
172
+ maxLength: z.ZodDefault<z.ZodObject<{
173
+ key: z.ZodDefault<z.ZodNumber>;
174
+ value: z.ZodDefault<z.ZodNumber>;
175
+ total: z.ZodDefault<z.ZodNumber>;
176
+ }, "strict", z.ZodTypeAny, {
177
+ key: number;
178
+ total: number;
179
+ value: number;
180
+ }, {
181
+ key?: number | undefined;
182
+ total?: number | undefined;
183
+ value?: number | undefined;
184
+ }>>;
185
+ }, "strict", z.ZodTypeAny, {
186
+ maxLength: {
187
+ key: number;
188
+ total: number;
189
+ value: number;
190
+ };
191
+ key?: string | undefined;
192
+ }, {
193
+ key?: string | undefined;
194
+ maxLength?: {
195
+ key?: number | undefined;
196
+ total?: number | undefined;
197
+ value?: number | undefined;
198
+ } | undefined;
199
+ }>>;
200
+ indent: z.ZodDefault<z.ZodObject<{
201
+ details: z.ZodDefault<z.ZodNumber>;
202
+ json: z.ZodDefault<z.ZodNumber>;
203
+ }, "strict", z.ZodTypeAny, {
204
+ details: number;
205
+ json: number;
206
+ }, {
207
+ details?: number | undefined;
208
+ json?: number | undefined;
209
+ }>>;
210
+ basePath: z.ZodDefault<z.ZodEffects<z.ZodString, string, unknown>>;
211
+ newLineCharacter: z.ZodDefault<z.ZodEnum<["\r", "\n", "\r\n"]>>;
170
212
  time: z.ZodDefault<z.ZodObject<{
171
213
  utc: z.ZodDefault<z.ZodBoolean>;
172
214
  /**
@@ -185,23 +227,12 @@ declare const schema: z.ZodObject<{
185
227
  preset: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET";
186
228
  format?: string | undefined;
187
229
  }, {
230
+ format?: string | undefined;
188
231
  utc?: boolean | undefined;
189
232
  preset?: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET" | undefined;
190
- format?: string | undefined;
191
233
  }>>;
192
- indent: z.ZodDefault<z.ZodObject<{
193
- details: z.ZodDefault<z.ZodNumber>;
194
- json: z.ZodDefault<z.ZodNumber>;
195
- }, "strict", z.ZodTypeAny, {
196
- details: number;
197
- json: number;
198
- }, {
199
- details?: number | undefined;
200
- json?: number | undefined;
201
- }>>;
202
- basePath: z.ZodDefault<z.ZodEffects<z.ZodString, string, unknown>>;
203
- newLineCharacter: z.ZodDefault<z.ZodEnum<["\r", "\n", "\r\n"]>>;
204
- extras: z.ZodDefault<z.ZodObject<{
234
+ }, {
235
+ extras: z.ZodDefault<z.ZodObject<z.objectUtil.extendShape<{
205
236
  key: z.ZodOptional<z.ZodString>;
206
237
  maxLength: z.ZodDefault<z.ZodObject<{
207
238
  key: z.ZodDefault<z.ZodNumber>;
@@ -213,9 +244,10 @@ declare const schema: z.ZodObject<{
213
244
  value: number;
214
245
  }, {
215
246
  key?: number | undefined;
216
- value?: number | undefined;
217
247
  total?: number | undefined;
248
+ value?: number | undefined;
218
249
  }>>;
250
+ }, {
219
251
  formatCharacters: z.ZodDefault<z.ZodObject<{
220
252
  start: z.ZodDefault<z.ZodString>;
221
253
  end: z.ZodDefault<z.ZodString>;
@@ -227,12 +259,12 @@ declare const schema: z.ZodObject<{
227
259
  keyValueSeparator: string;
228
260
  separator: string;
229
261
  }, {
230
- start?: string | undefined;
231
262
  end?: string | undefined;
263
+ start?: string | undefined;
232
264
  keyValueSeparator?: string | undefined;
233
265
  separator?: string | undefined;
234
266
  }>>;
235
- }, "strict", z.ZodTypeAny, {
267
+ }>, "strict", z.ZodTypeAny, {
236
268
  maxLength: {
237
269
  key: number;
238
270
  total: number;
@@ -249,30 +281,30 @@ declare const schema: z.ZodObject<{
249
281
  key?: string | undefined;
250
282
  maxLength?: {
251
283
  key?: number | undefined;
252
- value?: number | undefined;
253
284
  total?: number | undefined;
285
+ value?: number | undefined;
254
286
  } | undefined;
255
287
  formatCharacters?: {
256
- start?: string | undefined;
257
288
  end?: string | undefined;
289
+ start?: string | undefined;
258
290
  keyValueSeparator?: string | undefined;
259
291
  separator?: string | undefined;
260
292
  } | undefined;
261
293
  }>>;
262
- }, "strict", z.ZodTypeAny, {
294
+ }>, "strict", z.ZodTypeAny, {
295
+ time: {
296
+ utc: boolean;
297
+ preset: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET";
298
+ format?: string | undefined;
299
+ };
263
300
  show: {
301
+ time: boolean;
264
302
  source: boolean;
265
303
  name: boolean;
266
- time: boolean;
267
304
  hostname: boolean;
268
305
  pid: boolean;
269
306
  extras: boolean;
270
307
  };
271
- time: {
272
- utc: boolean;
273
- preset: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET";
274
- format?: string | undefined;
275
- };
276
308
  extras: {
277
309
  maxLength: {
278
310
  key: number;
@@ -292,41 +324,41 @@ declare const schema: z.ZodObject<{
292
324
  json: number;
293
325
  };
294
326
  basePath: string;
295
- newLineCharacter: "\r" | "\n" | "\r\n";
327
+ newLineCharacter: "\n" | "\r" | "\r\n";
296
328
  }, {
329
+ time?: {
330
+ format?: string | undefined;
331
+ utc?: boolean | undefined;
332
+ preset?: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET" | undefined;
333
+ } | undefined;
297
334
  show?: {
298
335
  time?: boolean | undefined;
336
+ source?: boolean | undefined;
299
337
  name?: boolean | undefined;
300
338
  hostname?: boolean | undefined;
301
339
  pid?: boolean | undefined;
302
- source?: boolean | undefined;
303
340
  extras?: boolean | undefined;
304
341
  } | undefined;
305
- time?: {
306
- utc?: boolean | undefined;
307
- preset?: "DATE_SHORT" | "DATE_MED" | "DATE_MED_WITH_WEEKDAY" | "DATE_FULL" | "DATE_HUGE" | "TIME_SIMPLE" | "TIME_WITH_SECONDS" | "TIME_WITH_SHORT_OFFSET" | "TIME_WITH_LONG_OFFSET" | "TIME_24_SIMPLE" | "TIME_24_WITH_SECONDS" | "TIME_24_WITH_SHORT_OFFSET" | "TIME_24_WITH_LONG_OFFSET" | "DATETIME_SHORT" | "DATETIME_MED" | "DATETIME_FULL" | "DATETIME_HUGE" | "DATETIME_SHORT_WITH_SECONDS" | "DATETIME_MED_WITH_SECONDS" | "DATETIME_FULL_WITH_SECONDS" | "DATETIME_HUGE_WITH_SECONDS" | "TIME_ISO_8601" | "TIME_ISO_8601_OFFSET" | "DATETIME_ISO_8601" | "DATETIME_ISO_8601_OFFSET" | undefined;
308
- format?: string | undefined;
309
- } | undefined;
310
- indent?: {
311
- details?: number | undefined;
312
- json?: number | undefined;
313
- } | undefined;
314
- basePath?: unknown;
315
- newLineCharacter?: "\r" | "\n" | "\r\n" | undefined;
316
342
  extras?: {
317
343
  key?: string | undefined;
318
344
  maxLength?: {
319
345
  key?: number | undefined;
320
- value?: number | undefined;
321
346
  total?: number | undefined;
347
+ value?: number | undefined;
322
348
  } | undefined;
323
349
  formatCharacters?: {
324
- start?: string | undefined;
325
350
  end?: string | undefined;
351
+ start?: string | undefined;
326
352
  keyValueSeparator?: string | undefined;
327
353
  separator?: string | undefined;
328
354
  } | undefined;
329
355
  } | undefined;
356
+ indent?: {
357
+ details?: number | undefined;
358
+ json?: number | undefined;
359
+ } | undefined;
360
+ basePath?: unknown;
361
+ newLineCharacter?: "\n" | "\r" | "\r\n" | undefined;
330
362
  }>;
331
363
  type Options = z.infer<typeof schema>;
332
364
  export { type PublicOptions, type Options, schema };
package/dist/options.js CHANGED
@@ -40,7 +40,9 @@ const publicSchema = z
40
40
  .strict()
41
41
  .default({}),
42
42
  basePath: z
43
- .preprocess((arg) => typeof arg === 'string' && arg.length > 0 ? normalisePath(arg) : arg, z.string().min(1))
43
+ .preprocess((value) => typeof value === 'string' && value.length > 0
44
+ ? normalisePath(value)
45
+ : value, z.string().min(1))
44
46
  .default('/'),
45
47
  newLineCharacter: z.enum(['\r', '\n', '\r\n']).default('\n'),
46
48
  time: z
package/package.json CHANGED
@@ -1,31 +1,7 @@
1
1
  {
2
2
  "name": "@vidavidorra/bunyan-pretty-stream",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "Highly configurable Bunyan stream with pretty output",
5
- "type": "module",
6
- "exports": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
- "files": [
12
- "./dist/**/!(*.test).{js,d.ts}"
13
- ],
14
- "scripts": {
15
- "prepare": "husky install .github/husky",
16
- "lint": "run-p format:check xo",
17
- "lint:fix": "run-p format 'xo -- --fix'",
18
- "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",
19
- "format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",
20
- "xo": "xo",
21
- "build": "tsc",
22
- "build:check": "tsc --noEmit",
23
- "test": "c8 ava"
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com/vidavidorra/bunyan-pretty-stream.git"
28
- },
29
5
  "keywords": [
30
6
  "bunyan-stream",
31
7
  "bunyan",
@@ -34,89 +10,42 @@
34
10
  "pretty",
35
11
  "stream"
36
12
  ],
37
- "author": "Jeroen de Bruijn",
38
- "license": "GPL-3.0-or-later",
13
+ "homepage": "https://github.com/vidavidorra/bunyan-pretty-stream#readme",
39
14
  "bugs": {
40
15
  "url": "https://github.com/vidavidorra/bunyan-pretty-stream/issues"
41
16
  },
42
- "homepage": "https://github.com/vidavidorra/bunyan-pretty-stream#readme",
43
- "engines": {
44
- "node": ">=18"
45
- },
46
- "devDependencies": {
47
- "@ava/typescript": "4.0.0",
48
- "@commitlint/cli": "17.4.4",
49
- "@semantic-release/changelog": "6.0.3",
50
- "@semantic-release/exec": "6.0.3",
51
- "@semantic-release/git": "10.0.1",
52
- "@types/bunyan": "1.8.8",
53
- "@types/luxon": "3.3.0",
54
- "@types/node": "18.15.0",
55
- "@vidavidorra/commitlint-config": "4.0.17",
56
- "ava": "5.2.0",
57
- "bunyan": "*",
58
- "bunyan-1.x": "npm:bunyan@1.8.15",
59
- "bunyan-2.x": "npm:bunyan@2.0.5",
60
- "c8": "7.13.0",
61
- "deepmerge": "4.3.0",
62
- "dot-prop": "7.2.0",
63
- "husky": "8.0.3",
64
- "lint-staged": "13.2.0",
65
- "npm-run-all": "4.1.5",
66
- "prettier": "2.8.4",
67
- "semantic-release": "21.0.1",
68
- "strip-ansi": "7.0.1",
69
- "typescript": "5.0.3",
70
- "xo": "0.53.1"
71
- },
72
- "peerDependencies": {
73
- "bunyan": ">=1.8.15 <3"
74
- },
75
- "dependencies": {
76
- "@sindresorhus/is": "5.3.0",
77
- "chalk": "5.2.0",
78
- "json-stringify-pretty-compact": "4.0.0",
79
- "luxon": "3.3.0",
80
- "zod": "3.21.4"
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/vidavidorra/bunyan-pretty-stream.git"
81
20
  },
82
- "ava": {
83
- "files": [
84
- "!worktrees",
85
- "src/**/*.test.ts"
86
- ],
87
- "typescript": {
88
- "rewritePaths": {
89
- "src/": "dist/"
90
- },
91
- "compile": "tsc"
92
- }
21
+ "license": "GPL-3.0-or-later",
22
+ "author": "Jeroen de Bruijn",
23
+ "type": "module",
24
+ "exports": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
26
+ "files": [
27
+ "./dist/**/!(*.test).{js,d.ts}"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsc",
31
+ "format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
32
+ "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
33
+ "lint": "npm run format:check && xo",
34
+ "lint:fix": "npm run format && xo --fix",
35
+ "prepare": "husky .github/husky",
36
+ "test": "c8 ava"
93
37
  },
94
- "c8": {
95
- "include": [
96
- "dist/**/*.js"
97
- ],
98
- "reporter": [
99
- "cobertura",
100
- "html",
101
- "lcovonly",
102
- "text-summary"
38
+ "commitlint": {
39
+ "extends": [
40
+ "@vidavidorra"
103
41
  ]
104
42
  },
105
43
  "xo": {
106
44
  "prettier": true,
107
- "rules": {
108
- "object-curly-spacing": "off"
109
- },
110
45
  "space": true
111
46
  },
112
- "commitlint": {
113
- "extends": [
114
- "@vidavidorra"
115
- ]
116
- },
117
47
  "prettier": {
118
- "singleQuote": true,
119
- "trailingComma": "all"
48
+ "singleQuote": true
120
49
  },
121
50
  "release": {
122
51
  "branches": [
@@ -238,5 +167,71 @@
238
167
  }
239
168
  ]
240
169
  }
170
+ },
171
+ "ava": {
172
+ "files": [
173
+ "!worktrees",
174
+ "src/**/*.test.ts"
175
+ ],
176
+ "typescript": {
177
+ "rewritePaths": {
178
+ "src/": "dist/"
179
+ },
180
+ "compile": "tsc"
181
+ }
182
+ },
183
+ "c8": {
184
+ "all": true,
185
+ "include": [
186
+ "dist/**/*.js"
187
+ ],
188
+ "reporter": [
189
+ "cobertura",
190
+ "html",
191
+ "lcovonly",
192
+ "text-summary"
193
+ ]
194
+ },
195
+ "dependencies": {
196
+ "@sindresorhus/is": "6.3.0",
197
+ "chalk": "5.3.0",
198
+ "json-stringify-pretty-compact": "4.0.0",
199
+ "luxon": "3.4.4",
200
+ "zod": "3.23.8"
201
+ },
202
+ "devDependencies": {
203
+ "@ava/typescript": "5.0.0",
204
+ "@commitlint/cli": "19.3.0",
205
+ "@semantic-release/changelog": "6.0.3",
206
+ "@semantic-release/exec": "6.0.3",
207
+ "@semantic-release/git": "10.0.1",
208
+ "@types/bunyan": "1.8.11",
209
+ "@types/luxon": "3.4.2",
210
+ "@types/node": "20.12.11",
211
+ "@vidavidorra/commitlint-config": "7.0.6",
212
+ "ava": "6.1.3",
213
+ "bunyan": "1.8.15",
214
+ "bunyan-1.x": "npm:bunyan@1.8.15",
215
+ "bunyan-2.x": "npm:bunyan@2.0.5",
216
+ "c8": "9.1.0",
217
+ "deepmerge": "4.3.1",
218
+ "dot-prop": "9.0.0",
219
+ "husky": "9.0.11",
220
+ "lint-staged": "15.2.2",
221
+ "npm-run-all": "4.1.5",
222
+ "prettier": "3.2.5",
223
+ "semantic-release": "23.0.8",
224
+ "strip-ansi": "7.1.0",
225
+ "typescript": "5.4.5",
226
+ "xo": "0.58.0"
227
+ },
228
+ "peerDependencies": {
229
+ "bunyan": ">=1.8.15 <3"
230
+ },
231
+ "engines": {
232
+ "node": ">=18"
233
+ },
234
+ "publishConfig": {
235
+ "access": "public"
241
236
  }
242
237
  }