@bsb/syslog 9.1.3 → 9.6.14

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "observable-syslog",
3
3
  "name": "observable-syslog",
4
- "version": "9.1.3",
4
+ "version": "9.6.14",
5
5
  "description": "Syslog client observable plugin for forwarding logs to syslog servers",
6
6
  "category": "observable",
7
7
  "tags": [
@@ -23,37 +23,37 @@
23
23
  "image": "./assets/syslog-icon.png",
24
24
  "configSchema": {
25
25
  "anyvaliVersion": "1.0",
26
- "schemaVersion": "1",
26
+ "schemaVersion": "1.1",
27
27
  "root": {
28
28
  "kind": "object",
29
29
  "properties": {
30
30
  "host": {
31
- "kind": "optional",
32
- "inner": {
33
- "kind": "string"
34
- },
35
- "default": "localhost"
31
+ "kind": "string",
32
+ "default": "localhost",
33
+ "metadata": {
34
+ "description": "Syslog server hostname"
35
+ }
36
36
  },
37
37
  "port": {
38
- "kind": "optional",
39
- "inner": {
40
- "kind": "int32",
41
- "min": 1,
42
- "max": 65535
43
- },
44
- "default": 514
38
+ "kind": "int32",
39
+ "min": 1,
40
+ "max": 65535,
41
+ "default": 514,
42
+ "metadata": {
43
+ "description": "Syslog server port"
44
+ }
45
45
  },
46
46
  "protocol": {
47
- "kind": "optional",
48
- "inner": {
49
- "kind": "enum",
50
- "values": [
51
- "udp",
52
- "tcp",
53
- "tls"
54
- ]
55
- },
56
- "default": "udp"
47
+ "kind": "enum",
48
+ "values": [
49
+ "udp",
50
+ "tcp",
51
+ "tls"
52
+ ],
53
+ "default": "udp",
54
+ "metadata": {
55
+ "description": "Transport protocol used to send syslog messages"
56
+ }
57
57
  },
58
58
  "tls": {
59
59
  "kind": "optional",
@@ -61,108 +61,142 @@
61
61
  "kind": "object",
62
62
  "properties": {
63
63
  "rejectUnauthorized": {
64
- "kind": "optional",
65
- "inner": {
66
- "kind": "bool"
67
- },
68
- "default": true
64
+ "kind": "bool",
65
+ "default": true,
66
+ "metadata": {
67
+ "description": "Whether TLS certificate validation rejects unauthorized certificates"
68
+ }
69
69
  },
70
70
  "ca": {
71
71
  "kind": "optional",
72
72
  "inner": {
73
73
  "kind": "string"
74
+ },
75
+ "metadata": {
76
+ "description": "Optional TLS certificate authority data"
74
77
  }
75
78
  },
76
79
  "cert": {
77
80
  "kind": "optional",
78
81
  "inner": {
79
82
  "kind": "string"
83
+ },
84
+ "metadata": {
85
+ "description": "Optional TLS client certificate data"
80
86
  }
81
87
  },
82
88
  "key": {
83
89
  "kind": "optional",
84
90
  "inner": {
85
91
  "kind": "string"
92
+ },
93
+ "metadata": {
94
+ "description": "Optional TLS client private key data"
86
95
  }
87
96
  }
88
97
  },
89
- "required": [],
90
- "unknownKeys": "strip"
98
+ "required": [
99
+ "rejectUnauthorized"
100
+ ],
101
+ "unknownKeys": "strip",
102
+ "metadata": {
103
+ "description": "TLS connection settings for syslog transport"
104
+ }
91
105
  }
92
106
  },
93
107
  "facility": {
94
- "kind": "optional",
95
- "inner": {
96
- "kind": "int32",
97
- "min": 0,
98
- "max": 23
99
- },
100
- "default": 16
108
+ "kind": "int32",
109
+ "min": 0,
110
+ "max": 23,
111
+ "default": 16,
112
+ "metadata": {
113
+ "description": "Syslog facility code"
114
+ }
101
115
  },
102
116
  "hostname": {
103
117
  "kind": "optional",
104
118
  "inner": {
105
119
  "kind": "string"
120
+ },
121
+ "metadata": {
122
+ "description": "Hostname reported in syslog messages, defaulting to the local hostname"
106
123
  }
107
124
  },
108
125
  "appName": {
109
- "kind": "optional",
110
- "inner": {
111
- "kind": "string"
112
- },
113
- "default": "bsb-app"
126
+ "kind": "string",
127
+ "default": "bsb-app",
128
+ "metadata": {
129
+ "description": "Application name reported in syslog messages"
130
+ }
114
131
  },
115
132
  "rfc": {
116
- "kind": "optional",
117
- "inner": {
118
- "kind": "enum",
119
- "values": [
120
- "3164",
121
- "5424"
122
- ]
123
- },
124
- "default": "5424"
133
+ "kind": "enum",
134
+ "values": [
135
+ "3164",
136
+ "5424"
137
+ ],
138
+ "default": "5424",
139
+ "metadata": {
140
+ "description": "Syslog message format RFC"
141
+ }
125
142
  },
126
143
  "levels": {
127
144
  "kind": "object",
128
145
  "properties": {
129
146
  "debug": {
130
- "kind": "optional",
131
- "inner": {
132
- "kind": "bool"
133
- },
134
- "default": true
147
+ "kind": "bool",
148
+ "default": true,
149
+ "metadata": {
150
+ "description": "Whether debug logs are sent to syslog"
151
+ }
135
152
  },
136
153
  "info": {
137
- "kind": "optional",
138
- "inner": {
139
- "kind": "bool"
140
- },
141
- "default": true
154
+ "kind": "bool",
155
+ "default": true,
156
+ "metadata": {
157
+ "description": "Whether info logs are sent to syslog"
158
+ }
142
159
  },
143
160
  "warn": {
144
- "kind": "optional",
145
- "inner": {
146
- "kind": "bool"
147
- },
148
- "default": true
161
+ "kind": "bool",
162
+ "default": true,
163
+ "metadata": {
164
+ "description": "Whether warning logs are sent to syslog"
165
+ }
149
166
  },
150
167
  "error": {
151
- "kind": "optional",
152
- "inner": {
153
- "kind": "bool"
154
- },
155
- "default": true
168
+ "kind": "bool",
169
+ "default": true,
170
+ "metadata": {
171
+ "description": "Whether error logs are sent to syslog"
172
+ }
156
173
  }
157
174
  },
158
- "required": [],
159
- "unknownKeys": "strip"
175
+ "required": [
176
+ "debug",
177
+ "info",
178
+ "warn",
179
+ "error"
180
+ ],
181
+ "unknownKeys": "strip",
182
+ "metadata": {
183
+ "description": "Log level enablement"
184
+ }
160
185
  }
161
186
  },
162
187
  "required": [
188
+ "host",
189
+ "port",
190
+ "protocol",
191
+ "facility",
192
+ "appName",
193
+ "rfc",
163
194
  "levels"
164
195
  ],
165
- "unknownKeys": "strip"
196
+ "unknownKeys": "strip",
197
+ "metadata": {
198
+ "description": "Syslog client observable plugin configuration"
199
+ }
166
200
  },
167
201
  "definitions": {},
168
202
  "extensions": {}
@@ -7,7 +7,7 @@
7
7
  "description": "Syslog message received from client",
8
8
  "inputSchema": {
9
9
  "anyvaliVersion": "1.0",
10
- "schemaVersion": "1",
10
+ "schemaVersion": "1.1",
11
11
  "root": {
12
12
  "kind": "object",
13
13
  "properties": {
@@ -46,39 +46,46 @@
46
46
  "outputSchema": null
47
47
  }
48
48
  },
49
- "version": "9.1.3",
49
+ "version": "9.6.14",
50
50
  "configSchema": {
51
51
  "anyvaliVersion": "1.0",
52
- "schemaVersion": "1",
52
+ "schemaVersion": "1.1",
53
53
  "root": {
54
54
  "kind": "object",
55
55
  "properties": {
56
56
  "port": {
57
- "kind": "optional",
58
- "inner": {
59
- "kind": "int32",
60
- "min": 1,
61
- "max": 65535
62
- },
63
- "default": 514
57
+ "kind": "int32",
58
+ "min": 1,
59
+ "max": 65535,
60
+ "default": 514,
61
+ "metadata": {
62
+ "description": "UDP port the syslog server listens on"
63
+ }
64
64
  },
65
65
  "address": {
66
- "kind": "optional",
67
- "inner": {
68
- "kind": "string"
69
- },
70
- "default": "0.0.0.0"
66
+ "kind": "string",
67
+ "default": "0.0.0.0",
68
+ "metadata": {
69
+ "description": "Network address the syslog server binds to"
70
+ }
71
71
  },
72
72
  "exclusive": {
73
- "kind": "optional",
74
- "inner": {
75
- "kind": "bool"
76
- },
77
- "default": false
73
+ "kind": "bool",
74
+ "default": false,
75
+ "metadata": {
76
+ "description": "Whether the server requests exclusive address binding"
77
+ }
78
78
  }
79
79
  },
80
- "required": [],
81
- "unknownKeys": "strip"
80
+ "required": [
81
+ "port",
82
+ "address",
83
+ "exclusive"
84
+ ],
85
+ "unknownKeys": "strip",
86
+ "metadata": {
87
+ "description": "Syslog server plugin configuration"
88
+ }
82
89
  },
83
90
  "definitions": {},
84
91
  "extensions": {}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "service-syslog-server",
3
3
  "name": "service-syslog-server",
4
- "version": "9.1.3",
4
+ "version": "9.6.14",
5
5
  "description": "Syslog server service plugin that receives messages and emits events",
6
6
  "category": "service",
7
7
  "tags": [
@@ -23,36 +23,43 @@
23
23
  "image": "./assets/syslog-icon.png",
24
24
  "configSchema": {
25
25
  "anyvaliVersion": "1.0",
26
- "schemaVersion": "1",
26
+ "schemaVersion": "1.1",
27
27
  "root": {
28
28
  "kind": "object",
29
29
  "properties": {
30
30
  "port": {
31
- "kind": "optional",
32
- "inner": {
33
- "kind": "int32",
34
- "min": 1,
35
- "max": 65535
36
- },
37
- "default": 514
31
+ "kind": "int32",
32
+ "min": 1,
33
+ "max": 65535,
34
+ "default": 514,
35
+ "metadata": {
36
+ "description": "UDP port the syslog server listens on"
37
+ }
38
38
  },
39
39
  "address": {
40
- "kind": "optional",
41
- "inner": {
42
- "kind": "string"
43
- },
44
- "default": "0.0.0.0"
40
+ "kind": "string",
41
+ "default": "0.0.0.0",
42
+ "metadata": {
43
+ "description": "Network address the syslog server binds to"
44
+ }
45
45
  },
46
46
  "exclusive": {
47
- "kind": "optional",
48
- "inner": {
49
- "kind": "bool"
50
- },
51
- "default": false
47
+ "kind": "bool",
48
+ "default": false,
49
+ "metadata": {
50
+ "description": "Whether the server requests exclusive address binding"
51
+ }
52
52
  }
53
53
  },
54
- "required": [],
55
- "unknownKeys": "strip"
54
+ "required": [
55
+ "port",
56
+ "address",
57
+ "exclusive"
58
+ ],
59
+ "unknownKeys": "strip",
60
+ "metadata": {
61
+ "description": "Syslog server plugin configuration"
62
+ }
56
63
  },
57
64
  "definitions": {},
58
65
  "extensions": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsb/syslog",
3
- "version": "9.1.3",
3
+ "version": "9.6.14",
4
4
  "type": "module",
5
5
  "license": "(AGPL-3.0-only OR Commercial)",
6
6
  "author": {
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://github.com/BetterCorp/better-service-base.git",
22
+ "url": "https://github.com/BetterCorp/better-service-base",
23
23
  "directory": "plugins/nodejs/syslog"
24
24
  },
25
25
  "main": "lib/index.js",
@@ -39,21 +39,21 @@
39
39
  "prepublishOnly": "npm run build"
40
40
  },
41
41
  "peerDependencies": {
42
- "@bsb/base": "^9.1.6"
42
+ "@bsb/base": "^9.6.14"
43
43
  },
44
44
  "dependencies": {
45
- "@anyvali/js": "^0.2.0",
45
+ "anyvali": "^1.0.6",
46
46
  "syslog-client": "^1.1.1",
47
47
  "syslog-server": "^1.0.1"
48
48
  },
49
49
  "devDependencies": {
50
- "@bsb/base": "^9.1.6",
50
+ "@bsb/base": "^9.6.14",
51
51
  "@types/node": "^25.6.0",
52
- "mocha": "^11.0.0",
53
- "typescript": "^5.9.0"
52
+ "mocha": "^11.7.6",
53
+ "typescript": "^6.0.3"
54
54
  },
55
55
  "engines": {
56
- "node": ">=23.0.0",
56
+ "node": ">=24.0.0",
57
57
  "npm": ">=11.0.0"
58
58
  },
59
59
  "homepage": "https://io.bsbcode.dev/packages/nodejs/@bsb/syslog"