@vidavidorra/bunyan-pretty-stream 3.0.2 → 3.0.5

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.
@@ -27,7 +27,8 @@ class Extras {
27
27
  * @returns `true` if the key-value was valid and is added, false otherwise.
28
28
  */
29
29
  parseAndAdd(key, value) {
30
- if (typeof value === 'object' || typeof value === 'function') {
30
+ if ((typeof value === 'object' && value !== null) ||
31
+ typeof value === 'function') {
31
32
  return false;
32
33
  }
33
34
  const extra = this.formatExtra(key, value);
@@ -8,18 +8,18 @@ declare const schema: z.ZodObject<{
8
8
  source: z.ZodDefault<z.ZodBoolean>;
9
9
  extras: z.ZodDefault<z.ZodBoolean>;
10
10
  }, "strict", z.ZodTypeAny, {
11
- source: boolean;
12
- name: boolean;
13
11
  time: boolean;
12
+ name: boolean;
14
13
  hostname: boolean;
15
14
  pid: boolean;
15
+ source: boolean;
16
16
  extras: boolean;
17
17
  }, {
18
- source?: boolean | undefined;
19
- name?: boolean | undefined;
20
18
  time?: boolean | undefined;
19
+ name?: boolean | undefined;
21
20
  hostname?: boolean | undefined;
22
21
  pid?: boolean | undefined;
22
+ source?: boolean | undefined;
23
23
  extras?: boolean | undefined;
24
24
  }>>;
25
25
  extras: z.ZodDefault<z.ZodObject<{
@@ -30,26 +30,26 @@ declare const schema: z.ZodObject<{
30
30
  total: z.ZodDefault<z.ZodNumber>;
31
31
  }, "strict", z.ZodTypeAny, {
32
32
  key: number;
33
- total: number;
34
33
  value: number;
34
+ total: number;
35
35
  }, {
36
36
  key?: number | undefined;
37
- total?: number | undefined;
38
37
  value?: number | undefined;
38
+ total?: number | undefined;
39
39
  }>>;
40
40
  }, "strict", z.ZodTypeAny, {
41
41
  key?: string | undefined;
42
42
  maxLength: {
43
43
  key: number;
44
- total: number;
45
44
  value: number;
45
+ total: number;
46
46
  };
47
47
  }, {
48
48
  key?: string | undefined;
49
49
  maxLength?: {
50
50
  key?: number | undefined;
51
- total?: number | undefined;
52
51
  value?: number | undefined;
52
+ total?: number | undefined;
53
53
  } | undefined;
54
54
  }>>;
55
55
  indent: z.ZodDefault<z.ZodObject<{
@@ -82,33 +82,28 @@ declare const schema: z.ZodObject<{
82
82
  format: z.ZodDefault<z.ZodString>;
83
83
  }, "strict", z.ZodTypeAny, {
84
84
  type: "long" | "short" | "format";
85
- format: string;
86
85
  local: boolean;
86
+ format: string;
87
87
  }, {
88
88
  type?: "long" | "short" | "format" | undefined;
89
- format?: string | undefined;
90
89
  local?: boolean | undefined;
90
+ format?: string | undefined;
91
91
  }>>;
92
92
  }, "strict", z.ZodTypeAny, {
93
93
  show: {
94
- source: boolean;
95
- name: boolean;
96
94
  time: boolean;
95
+ name: boolean;
97
96
  hostname: boolean;
98
97
  pid: boolean;
98
+ source: boolean;
99
99
  extras: boolean;
100
100
  };
101
- time: {
102
- type: "long" | "short" | "format";
103
- format: string;
104
- local: boolean;
105
- };
106
101
  extras: {
107
102
  key?: string | undefined;
108
103
  maxLength: {
109
104
  key: number;
110
- total: number;
111
105
  value: number;
106
+ total: number;
112
107
  };
113
108
  };
114
109
  indent: {
@@ -117,26 +112,26 @@ declare const schema: z.ZodObject<{
117
112
  };
118
113
  basePath: string;
119
114
  newLineCharacter: "\r" | "\n" | "\r\n";
115
+ time: {
116
+ type: "long" | "short" | "format";
117
+ local: boolean;
118
+ format: string;
119
+ };
120
120
  }, {
121
121
  show?: {
122
- source?: boolean | undefined;
123
- name?: boolean | undefined;
124
122
  time?: boolean | undefined;
123
+ name?: boolean | undefined;
125
124
  hostname?: boolean | undefined;
126
125
  pid?: boolean | undefined;
126
+ source?: boolean | undefined;
127
127
  extras?: boolean | undefined;
128
128
  } | undefined;
129
- time?: {
130
- type?: "long" | "short" | "format" | undefined;
131
- format?: string | undefined;
132
- local?: boolean | undefined;
133
- } | undefined;
134
129
  extras?: {
135
130
  key?: string | undefined;
136
131
  maxLength?: {
137
132
  key?: number | undefined;
138
- total?: number | undefined;
139
133
  value?: number | undefined;
134
+ total?: number | undefined;
140
135
  } | undefined;
141
136
  } | undefined;
142
137
  indent?: {
@@ -145,6 +140,11 @@ declare const schema: z.ZodObject<{
145
140
  } | undefined;
146
141
  basePath?: string | undefined;
147
142
  newLineCharacter?: "\r" | "\n" | "\r\n" | undefined;
143
+ time?: {
144
+ type?: "long" | "short" | "format" | undefined;
145
+ local?: boolean | undefined;
146
+ format?: string | undefined;
147
+ } | undefined;
148
148
  }>;
149
149
  declare type Options = z.input<typeof schema>;
150
150
  declare type ParsedOptions = z.infer<typeof schema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidavidorra/bunyan-pretty-stream",
3
- "version": "3.0.2",
3
+ "version": "3.0.5",
4
4
  "description": "Highly configurable Bunyan stream with pretty output.",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -51,36 +51,36 @@
51
51
  "node": ">=14.0.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@commitlint/cli": "16.2.3",
54
+ "@commitlint/cli": "16.2.4",
55
55
  "@jest/globals": "27.5.1",
56
56
  "@semantic-release/changelog": "6.0.1",
57
57
  "@semantic-release/exec": "6.0.3",
58
58
  "@semantic-release/git": "10.0.1",
59
59
  "@types/bunyan": "1.8.8",
60
60
  "@types/clone": "2.1.1",
61
- "@types/node": "16.11.26",
62
- "@typescript-eslint/eslint-plugin": "5.17.0",
63
- "@typescript-eslint/parser": "5.17.0",
64
- "@vidavidorra/commitlint-config": "3.2.5",
61
+ "@types/node": "16.11.33",
62
+ "@typescript-eslint/eslint-plugin": "5.22.0",
63
+ "@typescript-eslint/parser": "5.22.0",
64
+ "@vidavidorra/commitlint-config": "3.2.7",
65
65
  "bunyan": "*",
66
66
  "bunyan-1.x": "npm:bunyan@1.8.15",
67
67
  "bunyan-2.x": "npm:bunyan@2.0.5",
68
68
  "clone": "2.1.2",
69
69
  "dot-prop": "6.0.1",
70
- "eslint": "8.12.0",
70
+ "eslint": "8.14.0",
71
71
  "eslint-config-prettier": "8.5.0",
72
- "eslint-plugin-jest": "26.1.3",
72
+ "eslint-plugin-jest": "26.1.5",
73
73
  "eslint-plugin-json": "3.1.0",
74
74
  "eslint-plugin-prettier": "4.0.0",
75
75
  "husky": "7.0.4",
76
76
  "jest": "27.5.1",
77
- "lint-staged": "12.3.7",
77
+ "lint-staged": "12.4.1",
78
78
  "npm-run-all": "4.1.5",
79
79
  "prettier": "2.6.2",
80
80
  "semantic-release": "19.0.2",
81
81
  "strip-ansi": "6.0.1",
82
82
  "ts-jest": "27.1.4",
83
- "typescript": "4.6.3"
83
+ "typescript": "4.6.4"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "bunyan": "1.8.15"
@@ -89,7 +89,7 @@
89
89
  "@sindresorhus/is": "4.6.0",
90
90
  "chalk": "4.1.2",
91
91
  "json-stringify-pretty-compact": "3.0.0",
92
- "moment": "2.29.2",
93
- "zod": "3.14.4"
92
+ "moment": "2.29.3",
93
+ "zod": "3.15.1"
94
94
  }
95
95
  }