@n8n/syslog-client 1.1.0

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/LICENSE.md ADDED
@@ -0,0 +1,88 @@
1
+ # License
2
+
3
+ Portions of this software are licensed as follows:
4
+
5
+ - Content of branches other than the main branch (i.e. "master") are not licensed.
6
+ - Source code files that contain ".ee." in their filename or ".ee" in their dirname are NOT licensed under
7
+ the Sustainable Use License.
8
+ To use source code files that contain ".ee." in their filename or ".ee" in their dirname you must hold a
9
+ valid n8n Enterprise License specifically allowing you access to such source code files and as defined
10
+ in "LICENSE_EE.md".
11
+ - All third party components incorporated into the n8n Software are licensed under the original license
12
+ provided by the owner of the applicable component.
13
+ - Content outside of the above mentioned files or restrictions is available under the "Sustainable Use
14
+ License" as defined below.
15
+
16
+ ## Sustainable Use License
17
+
18
+ Version 1.0
19
+
20
+ ### Acceptance
21
+
22
+ By using the software, you agree to all of the terms and conditions below.
23
+
24
+ ### Copyright License
25
+
26
+ The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license
27
+ to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject
28
+ to the limitations below.
29
+
30
+ ### Limitations
31
+
32
+ You may use or modify the software only for your own internal business purposes or for non-commercial or
33
+ personal use. You may distribute the software or provide it to others only if you do so free of charge for
34
+ non-commercial purposes. You may not alter, remove, or obscure any licensing, copyright, or other notices of
35
+ the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
36
+
37
+ ### Patents
38
+
39
+ The licensor grants you a license, under any patent claims the licensor can license, or becomes able to
40
+ license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case
41
+ subject to the limitations and conditions in this license. This license does not cover any patent claims that
42
+ you cause to be infringed by modifications or additions to the software. If you or your company make any
43
+ written claim that the software infringes or contributes to infringement of any patent, your patent license
44
+ for the software granted under these terms ends immediately. If your company makes such a claim, your patent
45
+ license ends immediately for work on behalf of your company.
46
+
47
+ ### Notices
48
+
49
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these
50
+ terms. If you modify the software, you must include in any modified copies of the software a prominent notice
51
+ stating that you have modified the software.
52
+
53
+ ### No Other Rights
54
+
55
+ These terms do not imply any licenses other than those expressly granted in these terms.
56
+
57
+ ### Termination
58
+
59
+ If you use the software in violation of these terms, such use is not licensed, and your license will
60
+ automatically terminate. If the licensor provides you with a notice of your violation, and you cease all
61
+ violation of this license no later than 30 days after you receive that notice, your license will be reinstated
62
+ retroactively. However, if you violate these terms after such reinstatement, any additional violation of these
63
+ terms will cause your license to terminate automatically and permanently.
64
+
65
+ ### No Liability
66
+
67
+ As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will
68
+ not be liable to you for any damages arising out of these terms or the use or nature of the software, under
69
+ any kind of legal claim.
70
+
71
+ ### Definitions
72
+
73
+ The “licensor” is the entity offering these terms.
74
+
75
+ The “software” is the software the licensor makes available under these terms, including any portion of it.
76
+
77
+ “You” refers to the individual or entity agreeing to these terms.
78
+
79
+ “Your company” is any legal entity, sole proprietorship, or other kind of organization that you work for, plus
80
+ all organizations that have control over, are under the control of, or are under common control with that
81
+ organization. Control means ownership of substantially all the assets of an entity, or the power to direct its
82
+ management and policies by vote, contract, or otherwise. Control can be direct or indirect.
83
+
84
+ “Your license” is the license granted to you for the software under these terms.
85
+
86
+ “Use” means anything you do with the software requiring your license.
87
+
88
+ “Trademark” means trademarks, service marks, and similar rights.
package/LICENSE_EE.md ADDED
@@ -0,0 +1,27 @@
1
+ # The n8n Enterprise License (the “Enterprise License”)
2
+
3
+ Copyright (c) 2022-present n8n GmbH.
4
+
5
+ With regard to the n8n Software:
6
+
7
+ This software and associated documentation files (the "Software") may only be used in production, if
8
+ you (and any entity that you represent) hold a valid n8n Enterprise license corresponding to your
9
+ usage. Subject to the foregoing sentence, you are free to modify this Software and publish patches
10
+ to the Software. You agree that n8n and/or its licensors (as applicable) retain all right, title and
11
+ interest in and to all such modifications and/or patches, and all such modifications and/or patches
12
+ may only be used, copied, modified, displayed, distributed, or otherwise exploited with a valid n8n
13
+ Enterprise license for the corresponding usage. Notwithstanding the foregoing, you may copy and
14
+ modify the Software for development and testing purposes, without requiring a subscription. You
15
+ agree that n8n and/or its licensors (as applicable) retain all right, title and interest in and to
16
+ all such modifications. You are not granted any other rights beyond what is expressly stated herein.
17
+ Subject to the foregoing, it is forbidden to copy, merge, publish, distribute, sublicense, and/or
18
+ sell the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
21
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
23
+ OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ For all third party components incorporated into the n8n Software, those components are licensed
27
+ under the original license provided by the owner of the applicable component.
package/README.md ADDED
@@ -0,0 +1,4 @@
1
+ This client is based upon the great work done in this project:
2
+ https://github.com/paulgrove/node-syslog-client/tree/master
3
+
4
+ It was partially built with Claude Code. However, many of the tests were verified and / or added manually.
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/jest-expect-message/types/index.d.ts","../src/constants.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/helpers/util.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/ZodError.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/locales/en.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/errors.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/standard-schema.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/types.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/external.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/v3/index.d.ts","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/types/index.d.ts","../src/errors.ts","../src/schemas.ts","../src/types.ts","../src/utils.ts","../src/client.ts","../src/factory.ts","../src/index.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/header.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/readable.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/file.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/fetch.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/formdata.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/connector.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/client.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-origin.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/handlers.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-client.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/api.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/interceptors.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/util.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cookies.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/patch.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/websocket.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/eventsource.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/filereader.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/content-type.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cache.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/index.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/globals.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/assert.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/console.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/constants.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/dns.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/domain.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/dom-events.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/events.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/fs.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/http.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/http2.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/https.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/module.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/net.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/os.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/path.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/process.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/readline.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/repl.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/sea.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/stream.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/test.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/timers.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/tls.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/tty.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/url.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/util.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/v8.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/vm.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/index.d.ts"],"fileIdsList":[[81,121,124],[81,123,124],[124],[81,124,129,158],[81,124,125,130,136,137,144,155,166],[81,124,125,126,136,144],[81,124],[76,77,78,81,124],[81,124,127,167],[81,124,128,129,137,145],[81,124,129,155,163],[81,124,130,132,136,144],[81,123,124,131],[81,124,132,133],[81,124,134,136],[81,123,124,136],[81,124,136,137,138,155,166],[81,124,136,137,138,151,155,158],[81,119,124],[81,124,132,136,139,144,155,166],[81,124,136,137,139,140,144,155,163,166],[81,124,139,141,155,163,166],[79,80,81,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172],[81,124,136,142],[81,124,143,166,171],[81,124,132,136,144,155],[81,124,145],[81,124,146],[81,123,124,147],[81,121,122,123,124,125,126,127,128,129,130,131,132,133,134,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172],[81,124,149],[81,124,150],[81,124,136,151,152],[81,124,151,153,167,169],[81,124,136,155,156,158],[81,124,157,158],[81,124,155,156],[81,124,158],[81,124,159],[81,121,124,155],[81,124,136,161,162],[81,124,161,162],[81,124,129,144,155,163],[81,124,164],[81,124,144,165],[81,124,139,150,166],[81,124,129,167],[81,124,155,168],[81,124,143,169],[81,124,170],[81,124,136,138,147,155,158,166,169,171],[81,124,155,172],[81,91,95,124,166],[81,91,124,155,166],[81,86,124],[81,88,91,124,163,166],[81,124,144,163],[81,124,173],[81,86,124,173],[81,88,91,124,144,166],[81,83,84,87,90,124,136,155,166],[81,91,98,124],[81,83,89,124],[81,91,112,113,124],[81,87,91,124,158,166,173],[81,112,124,173],[81,85,86,124,173],[81,91,124],[81,85,86,87,88,89,90,91,92,93,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,113,114,115,116,117,118,124],[81,91,106,124],[81,91,98,99,124],[81,89,91,99,100,124],[81,90,124],[81,83,86,91,124],[81,91,95,99,100,124],[81,95,124],[81,89,91,94,124,166],[81,83,88,91,98,124],[81,124,155],[81,86,91,112,124,171,173],[67,81,124],[55,56,67,81,124],[57,58,81,124],[55,56,57,59,60,65,81,124],[56,57,81,124],[65,81,124],[66,81,124],[57,81,124],[55,56,57,60,61,62,63,64,81,124],[54,69,70,71,72,81,124,130,136,144,145,163],[68,81,124],[71,73,81,124],[54,69,71,73,74,81,124],[54,68,81,124],[54,81,124,130,144,163],[71,81,124]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"406a5a771d97867cba07e7fbd3cd1fb2dd1004558b973733205737e9dd7ed929","affectsGlobalScope":true,"impliedFormat":1},{"version":"be717b2876904242abe2b95570c13d2584904b3efcbe142c251c77bd34bafa74","signature":"349a0f6255750f4981b63acd106de0eec1be9bc5d05221162364d30507cb3f06"},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"54f6ec6ea75acea6eb23635617252d249145edbc7bcd9d53f2d70280d2aef953","impliedFormat":1},{"version":"c25ce98cca43a3bfa885862044be0d59557be4ecd06989b2001a83dcf69620fd","impliedFormat":1},{"version":"8e71e53b02c152a38af6aec45e288cc65bede077b92b9b43b3cb54a37978bb33","impliedFormat":1},{"version":"754a9396b14ca3a4241591afb4edc644b293ccc8a3397f49be4dfd520c08acb3","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"de2316e90fc6d379d83002f04ad9698bc1e5285b4d52779778f454dd12ce9f44","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"2da997a01a6aa5c5c09de5d28f0f4407b597c5e1aecfd32f1815809c532650a2","impliedFormat":1},{"version":"5d26d2e47e2352def36f89a3e8bf8581da22b7f857e07ef3114cd52cf4813445","impliedFormat":1},{"version":"3db2efd285e7328d8014b54a7fce3f4861ebcdc655df40517092ed0050983617","impliedFormat":1},{"version":"d5d39a24c759df40480a4bfc0daffd364489702fdbcbdfc1711cde34f8739995","impliedFormat":1},{"version":"de735f99562202d0fcc3df204f9f782b0da3df3351e56e2d4fa81226885751a5","signature":"e7085d4a1de364736f6a6076d064656891dcc718a86cbc4e2716ca52f28833f2"},{"version":"064f565fc51563ea73791bfeb5cbd477361cfce08b8da7eea56183a080847527","signature":"e5429453a5ff280ed2f47159fdf26fd19149e3788b7a31296f7281d3c673e0ef"},{"version":"2de4cec004acbb193f6fb00b2c31c063ce9c9f1eeb462b7ec4d1385b174befa9","signature":"a67b6674317e1079d143f43f65033c1468584dbdf028a7f6e389736b3010646b"},{"version":"cac41656a124cb39f9d489567fec3888f3695d554d051231b5d011e615d4f9be","signature":"0e3949b2df10c308765cbbb6f8fdc96a562ab38c8490be23a6dfd1271a6b6f2f"},{"version":"1857c203d3cda0b8b37e96d05d3a7fa8a9ac3e9faa590bc68cc737f27f305ca8","signature":"9165d63e65c4a92b845df51fb33a31c3169c1289ed36a53d43cfd75c02fc4494"},{"version":"8939aa70e4c7168a86430c94f2eec7a5698fb311a561397b624f024e8f54d4ef","signature":"b960877736b5c3b3e9f5990b825de6b9a8152455333e4220bafb84d52abb15a6"},{"version":"5dda216c0f304742abc677ff1a71ac80ea32a3fb287c51a45e1e30a11daa1a44","signature":"9b7c3dd55e5bbe83375f621a94cc9361933d75225fd2e74a8aad9196896de92c"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"49a5a44f2e68241a1d2bd9ec894535797998841c09729e506a7cbfcaa40f2180","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b8582f8bf95b9b901bf6cf47b9ee3560c7f340be0bd39cb432f21e9e136c36a7","affectsGlobalScope":true,"impliedFormat":1},{"version":"6b042aa5d277ad6963e2837179fd2f8fbb01968ac67115b0833c0244e93d1d50","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"9e025aa38cad40827cc30aca974fe33fe2c4652fe8c88f48dadbbbd6300c8b07","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3e58c4c18a031cbb17abec7a4ad0bd5ae9fc70c1f4ba1e7fb921ad87c504aca","impliedFormat":1},{"version":"84c1930e33d1bb12ad01bcbe11d656f9646bd21b2fb2afd96e8e10615a021aef","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4b87f767c7bc841511113c876a6b8bf1fd0cb0b718c888ad84478b372ec486b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d04e3640dd9eb67f7f1e5bd3d0bf96c784666f7aefc8ac1537af6f2d38d4c29","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"5a369483ac4cfbdf0331c248deeb36140e6907db5e1daed241546b4a2055f82c","impliedFormat":1},{"version":"e8f5b5cc36615c17d330eaf8eebbc0d6bdd942c25991f96ef122f246f4ff722f","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ada07543808f3b967624645a8e1ccd446f8b01ade47842acf1328aec899fed0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c21aaa8257d7950a5b75a251d9075b6a371208fc948c9c8402f6690ef3b5b55","impliedFormat":1},{"version":"b5895e6353a5d708f55d8685c38a235c3a6d8138e374dee8ceb8ffde5aa8002a","impliedFormat":1},{"version":"5b75ca915164e4a7ad94a60729fe45b8a62e7750ab232d0122f8ccdd768f5314","impliedFormat":1},{"version":"93bd413918fa921c8729cef45302b24d8b6c7855d72d5bf82d3972595ae8dcbf","impliedFormat":1},{"version":"4ff41188773cbf465807dd2f7059c7494cbee5115608efc297383832a1150c43","impliedFormat":1},{"version":"dccdf1677e531e33f8ac961a68bc537418c9a414797c1ea7e91307501cdc3f5e","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"5155da3047ef977944d791a2188ff6e6c225f6975cc1910ab7bb6838ab84cede","impliedFormat":1},{"version":"93f437e1398a4f06a984f441f7fa7a9f0535c04399619b5c22e0b87bdee182cb","impliedFormat":1},{"version":"afbe24ab0d74694372baa632ecb28bb375be53f3be53f9b07ecd7fc994907de5","impliedFormat":1},{"version":"3e5b3163e34f3dc24cba59db4bb90bcc33555cccac06b707501439bdcf3d4df4","affectsGlobalScope":true,"impliedFormat":1},{"version":"6b19db3600a17af69d4f33d08cc7076a7d19fb65bb36e442cac58929ec7c9482","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"5b6844ad931dcc1d3aca53268f4bd671428421464b1286746027aede398094f2","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"0dbcebe2126d03936c70545e96a6e41007cf065be38a1ce4d32a39fcedefead4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1851a3b4db78664f83901bb9cac9e45e03a37bb5933cc5bf37e10bb7e91ab4eb","impliedFormat":1},{"version":"09d479208911ac3ac6a7c2fe86217fc1abe6c4f04e2d52e4890e500699eeab32","affectsGlobalScope":true,"impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"c40b3d3cfbb1227c8935f681c2480a32b560e387dd771d329cdbd1641f2d6da5","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"5b566927cad2ed2139655d55d690ffa87df378b956e7fe1c96024c4d9f75c4cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"c4a3720550d1787c8d6284040853c0781ff1e2cd8d842f2cb44547525ee34c36","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3dffd70e6375b872f0b4e152de4ae682d762c61a24881ecc5eb9f04c5caf76f","impliedFormat":1},{"version":"f008d63ce0077f533e39df44b82d660707b15b0f8e31fbc153a62bb00b99bfe5","impliedFormat":1},{"version":"d91a7d8b5655c42986f1bdfe2105c4408f472831c8f20cf11a8c3345b6b56c8c","impliedFormat":1},{"version":"6bdb3144f8bf020f513651a6ea1cb8a378a612c0791042e0436fd9adf7372a17","affectsGlobalScope":true,"impliedFormat":1},{"version":"e8a979b8af001c9fc2e774e7809d233c8ca955a28756f52ee5dee88ccb0611d2","impliedFormat":1},{"version":"cac793cc47c29e26e4ac3601dcb00b4435ebed26203485790e44f2ad8b6ad847","impliedFormat":1}],"root":[53,54,[69,75]],"options":{"composite":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","preserveConstEnums":true,"removeComments":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"strictPropertyInitialization":false,"target":8,"tsBuildInfoFile":"./build.tsbuildinfo","useUnknownInCatchVariables":true},"referencedMap":[[121,1],[122,1],[123,2],[81,3],[124,4],[125,5],[126,6],[76,7],[79,8],[77,7],[78,7],[127,9],[128,10],[129,11],[130,12],[131,13],[132,14],[133,14],[135,7],[134,15],[136,16],[137,17],[138,18],[120,19],[80,7],[139,20],[140,21],[141,22],[173,23],[142,24],[143,25],[144,26],[145,27],[146,28],[147,29],[148,30],[149,31],[150,32],[151,33],[152,33],[153,34],[154,7],[155,35],[157,36],[156,37],[158,38],[159,39],[160,40],[161,41],[162,42],[163,43],[164,44],[165,45],[166,46],[167,47],[168,48],[169,49],[170,50],[171,51],[172,52],[82,7],[51,7],[52,7],[9,7],[11,7],[10,7],[2,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[3,7],[20,7],[21,7],[4,7],[22,7],[26,7],[23,7],[24,7],[25,7],[27,7],[28,7],[29,7],[5,7],[30,7],[31,7],[32,7],[33,7],[6,7],[37,7],[34,7],[35,7],[36,7],[38,7],[7,7],[39,7],[44,7],[45,7],[40,7],[41,7],[42,7],[43,7],[8,7],[49,7],[46,7],[47,7],[48,7],[50,7],[1,7],[98,53],[108,54],[97,53],[118,55],[89,56],[88,57],[117,58],[111,59],[116,60],[91,61],[105,62],[90,63],[114,64],[86,65],[85,58],[115,66],[87,67],[92,68],[93,7],[96,68],[83,7],[119,69],[109,70],[100,71],[101,72],[103,73],[99,74],[102,75],[112,58],[94,76],[95,77],[104,78],[84,79],[107,70],[106,68],[110,7],[113,80],[68,81],[57,82],[59,83],[66,84],[61,7],[62,7],[60,85],[63,86],[55,7],[56,7],[67,87],[58,88],[64,7],[65,89],[53,7],[73,90],[54,7],[69,91],[74,92],[75,93],[70,94],[71,95],[72,96]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.2"}
@@ -0,0 +1,37 @@
1
+ import { EventEmitter } from 'events';
2
+ import { Facility, Severity, Transport } from './constants';
3
+ import type { ClientOptions, DateFormatter, LogOptions, SyslogCallback } from './types';
4
+ export declare class SyslogClient extends EventEmitter {
5
+ readonly target: string;
6
+ readonly syslogHostname: string;
7
+ readonly port: number;
8
+ readonly tcpTimeout: number;
9
+ readonly facility: Facility;
10
+ readonly severity: Severity;
11
+ readonly rfc3164: boolean;
12
+ readonly appName: string;
13
+ readonly dateFormatter: DateFormatter;
14
+ readonly udpBindAddress?: string;
15
+ readonly transport: Transport;
16
+ readonly tlsCA?: string | string[] | Buffer | Buffer[];
17
+ private transport_?;
18
+ private connecting;
19
+ private getTransportRequests;
20
+ constructor(target?: string, options?: ClientOptions);
21
+ log(message: string, options?: LogOptions | SyslogCallback, errorCb?: SyslogCallback): Promise<void> | void;
22
+ private logInternal;
23
+ private sendMessage;
24
+ private getTransport;
25
+ private createTcpTransport;
26
+ private createTlsTransport;
27
+ private setupSocketHandlers;
28
+ private onSocketConnected;
29
+ private createUdpTransport;
30
+ close(): this;
31
+ private onClose;
32
+ private onError;
33
+ private isStreamSocket;
34
+ private isUdpSocket;
35
+ private getTransportName;
36
+ private normalizeError;
37
+ }
package/dist/client.js ADDED
@@ -0,0 +1,324 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.SyslogClient = void 0;
37
+ const dgram = __importStar(require("dgram"));
38
+ const events_1 = require("events");
39
+ const net = __importStar(require("net"));
40
+ const os = __importStar(require("os"));
41
+ const tls = __importStar(require("tls"));
42
+ const constants_1 = require("./constants");
43
+ const errors_1 = require("./errors");
44
+ const schemas_1 = require("./schemas");
45
+ const utils_1 = require("./utils");
46
+ class SyslogClient extends events_1.EventEmitter {
47
+ constructor(target, options) {
48
+ super();
49
+ this.connecting = false;
50
+ this.getTransportRequests = [];
51
+ this.target = target ?? '127.0.0.1';
52
+ const validationResult = schemas_1.clientOptionsSchema.safeParse(options ?? {});
53
+ if (!validationResult.success) {
54
+ throw errors_1.ValidationError.fromZod('Invalid client options', validationResult.error.errors);
55
+ }
56
+ const opts = validationResult.data;
57
+ this.syslogHostname = opts.syslogHostname ?? os.hostname();
58
+ this.port = opts.port ?? 514;
59
+ this.tcpTimeout = opts.tcpTimeout ?? 10000;
60
+ this.facility = typeof opts.facility === 'number' ? opts.facility : constants_1.Facility.Local0;
61
+ this.severity = typeof opts.severity === 'number' ? opts.severity : constants_1.Severity.Informational;
62
+ this.rfc3164 = opts.rfc3164 ?? true;
63
+ this.appName = opts.appName ?? process.title.substring(process.title.lastIndexOf('/') + 1, 48);
64
+ this.dateFormatter = opts.dateFormatter ?? utils_1.defaultDateFormatter;
65
+ this.udpBindAddress = opts.udpBindAddress;
66
+ this.transport = opts.transport ?? constants_1.Transport.Udp;
67
+ this.tlsCA = opts.tlsCA;
68
+ }
69
+ log(message, options, errorCb) {
70
+ let opts = {};
71
+ let logCallback;
72
+ if (typeof options === 'function') {
73
+ logCallback = options;
74
+ }
75
+ else if (typeof options === 'object') {
76
+ opts = options;
77
+ logCallback = errorCb;
78
+ }
79
+ if (!logCallback) {
80
+ return new Promise((resolve, reject) => {
81
+ this.logInternal(message, opts, (error) => {
82
+ if (error)
83
+ reject(error);
84
+ else
85
+ resolve();
86
+ });
87
+ });
88
+ }
89
+ this.logInternal(message, opts, logCallback);
90
+ }
91
+ logInternal(message, options, errorCb) {
92
+ const validationResult = schemas_1.logOptionsSchema.safeParse(options);
93
+ if (!validationResult.success) {
94
+ errorCb(errors_1.ValidationError.fromZod('Invalid log options', validationResult.error.errors));
95
+ return;
96
+ }
97
+ const resolvedOptions = {
98
+ facility: options.facility ?? this.facility,
99
+ severity: options.severity ?? this.severity,
100
+ rfc3164: options.rfc3164 ?? this.rfc3164,
101
+ appName: options.appName ?? this.appName,
102
+ syslogHostname: options.syslogHostname ?? this.syslogHostname,
103
+ timestamp: options.timestamp,
104
+ msgid: options.msgid,
105
+ };
106
+ const formattedMessage = (0, utils_1.buildFormattedMessage)(message, resolvedOptions, this.dateFormatter);
107
+ this.getTransport((error, transport) => {
108
+ if (error || !transport) {
109
+ errorCb(error ?? new errors_1.ConnectionError('Failed to get transport'));
110
+ return;
111
+ }
112
+ this.sendMessage(transport, formattedMessage, errorCb);
113
+ });
114
+ }
115
+ sendMessage(transport, message, completionCb) {
116
+ try {
117
+ if (this.isStreamSocket(transport)) {
118
+ transport.write(message, (error) => {
119
+ if (error) {
120
+ completionCb(new errors_1.TransportError('Write failed', this.getTransportName(), error));
121
+ }
122
+ else {
123
+ completionCb();
124
+ }
125
+ });
126
+ }
127
+ else if (this.isUdpSocket(transport)) {
128
+ transport.send(message, 0, message.length, this.port, this.target, (error) => {
129
+ if (error) {
130
+ completionCb(new errors_1.TransportError('Send failed', 'UDP', error));
131
+ }
132
+ else {
133
+ completionCb();
134
+ }
135
+ });
136
+ }
137
+ else {
138
+ completionCb(new errors_1.SyslogClientError(`Unknown transport: ${this.transport}`));
139
+ }
140
+ }
141
+ catch (error) {
142
+ this.onError(this.normalizeError(error));
143
+ completionCb(this.normalizeError(error));
144
+ }
145
+ }
146
+ getTransport(completionCb) {
147
+ if (this.transport_) {
148
+ completionCb(null, this.transport_);
149
+ return;
150
+ }
151
+ this.getTransportRequests.push(completionCb);
152
+ if (this.connecting) {
153
+ return;
154
+ }
155
+ this.connecting = true;
156
+ const notifyAllWaitingRequests = (error, transport) => {
157
+ while (this.getTransportRequests.length > 0) {
158
+ const listenerCb = this.getTransportRequests.shift();
159
+ if (listenerCb)
160
+ listenerCb(error, transport);
161
+ }
162
+ this.connecting = false;
163
+ };
164
+ if (this.transport === constants_1.Transport.Udp) {
165
+ this.createUdpTransport(notifyAllWaitingRequests);
166
+ }
167
+ else if (this.transport === constants_1.Transport.Tcp || this.transport === constants_1.Transport.Unix) {
168
+ this.createTcpTransport(notifyAllWaitingRequests);
169
+ }
170
+ else if (this.transport === constants_1.Transport.Tls) {
171
+ this.createTlsTransport(notifyAllWaitingRequests);
172
+ }
173
+ else {
174
+ notifyAllWaitingRequests(new errors_1.SyslogClientError(`Unknown transport: ${this.getTransportName()}`));
175
+ }
176
+ }
177
+ createTcpTransport(completionCb) {
178
+ const options = this.transport === constants_1.Transport.Unix
179
+ ? { path: this.target }
180
+ : {
181
+ host: this.target,
182
+ port: this.port,
183
+ family: (0, utils_1.isIPv6)(this.target) ? 6 : 4,
184
+ };
185
+ let transport;
186
+ try {
187
+ transport = net.createConnection(options, () => this.onSocketConnected(transport, completionCb));
188
+ }
189
+ catch (error) {
190
+ completionCb(new errors_1.ConnectionError('Failed to create TCP connection', this.normalizeError(error)));
191
+ this.onError(this.normalizeError(error));
192
+ return;
193
+ }
194
+ this.setupSocketHandlers(transport, completionCb);
195
+ }
196
+ createTlsTransport(completionCb) {
197
+ const options = {
198
+ host: this.target,
199
+ port: this.port,
200
+ ca: this.tlsCA,
201
+ minVersion: 'TLSv1.2',
202
+ };
203
+ let transport;
204
+ try {
205
+ transport = tls.connect(options, () => this.onSocketConnected(transport, completionCb));
206
+ }
207
+ catch (error) {
208
+ completionCb(new errors_1.ConnectionError('Failed to create TLS connection', this.normalizeError(error)));
209
+ this.onError(this.normalizeError(error));
210
+ return;
211
+ }
212
+ this.setupSocketHandlers(transport, completionCb);
213
+ }
214
+ setupSocketHandlers(socket, completionCb) {
215
+ socket.setTimeout(this.tcpTimeout, () => {
216
+ const error = new errors_1.TimeoutError();
217
+ socket.destroy();
218
+ this.emit('error', error);
219
+ completionCb(error);
220
+ });
221
+ socket.on('error', (socketError) => {
222
+ socket.destroy();
223
+ const error = new errors_1.ConnectionError('Transport error', socketError);
224
+ this.onError(socketError);
225
+ completionCb(error);
226
+ });
227
+ socket.on('close', this.onClose.bind(this));
228
+ socket.unref();
229
+ }
230
+ onSocketConnected(socket, completionCb) {
231
+ this.transport_ = socket;
232
+ socket.setTimeout(0);
233
+ completionCb(null, this.transport_);
234
+ }
235
+ createUdpTransport(completionCb) {
236
+ try {
237
+ const family = (0, utils_1.isIPv6)(this.target) ? 6 : 4;
238
+ this.transport_ = dgram.createSocket(`udp${family}`);
239
+ if (this.udpBindAddress) {
240
+ this.transport_.bind({ address: this.udpBindAddress });
241
+ }
242
+ this.transport_.on('close', this.onClose.bind(this));
243
+ this.transport_.on('error', (transportError) => {
244
+ const error = new errors_1.ConnectionError('UDP socket error', transportError);
245
+ this.onError(error);
246
+ completionCb(error);
247
+ });
248
+ this.transport_.unref();
249
+ completionCb(null, this.transport_);
250
+ }
251
+ catch (transportError) {
252
+ if (this.transport_ && this.isUdpSocket(this.transport_)) {
253
+ try {
254
+ this.transport_.close();
255
+ }
256
+ catch {
257
+ }
258
+ }
259
+ const error = this.normalizeError(transportError);
260
+ this.onError(error);
261
+ completionCb(new errors_1.ConnectionError('Failed to create UDP socket', error));
262
+ }
263
+ }
264
+ close() {
265
+ if (this.transport_) {
266
+ if (this.isStreamSocket(this.transport_)) {
267
+ this.transport_.destroy();
268
+ }
269
+ else if (this.isUdpSocket(this.transport_)) {
270
+ this.transport_.close();
271
+ }
272
+ this.transport_ = undefined;
273
+ }
274
+ else {
275
+ this.onClose();
276
+ }
277
+ return this;
278
+ }
279
+ onClose() {
280
+ if (this.transport_) {
281
+ if ('destroy' in this.transport_) {
282
+ this.transport_.destroy();
283
+ }
284
+ this.transport_ = undefined;
285
+ }
286
+ this.emit('close');
287
+ return this;
288
+ }
289
+ onError(error) {
290
+ if (this.transport_) {
291
+ if ('destroy' in this.transport_) {
292
+ this.transport_.destroy();
293
+ }
294
+ this.transport_ = undefined;
295
+ }
296
+ this.emit('error', error);
297
+ return this;
298
+ }
299
+ isStreamSocket(transport) {
300
+ return 'write' in transport && typeof transport.write === 'function';
301
+ }
302
+ isUdpSocket(transport) {
303
+ return 'send' in transport && typeof transport.send === 'function';
304
+ }
305
+ getTransportName() {
306
+ switch (this.transport) {
307
+ case constants_1.Transport.Tcp:
308
+ return 'TCP';
309
+ case constants_1.Transport.Udp:
310
+ return 'UDP';
311
+ case constants_1.Transport.Tls:
312
+ return 'TLS';
313
+ case constants_1.Transport.Unix:
314
+ return 'Unix';
315
+ default:
316
+ return 'Unknown';
317
+ }
318
+ }
319
+ normalizeError(error) {
320
+ return error instanceof Error ? error : new Error(String(error));
321
+ }
322
+ }
323
+ exports.SyslogClient = SyslogClient;
324
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,mCAAsC;AACtC,yCAA2B;AAC3B,uCAAyB;AACzB,yCAA2B;AAE3B,2CAA4D;AAC5D,qCAMkB;AAClB,uCAAkE;AASlE,mCAA8E;AAyB9E,MAAa,YAAa,SAAQ,qBAAY;IA6B7C,YAAY,MAAe,EAAE,OAAuB;QACnD,KAAK,EAAE,CAAC;QAbD,eAAU,GAAG,KAAK,CAAC;QACnB,yBAAoB,GAExB,EAAE,CAAC;QAYN,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,WAAW,CAAC;QAEpC,MAAM,gBAAgB,GAAG,6BAAmB,CAAC,SAAS,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC/B,MAAM,wBAAe,CAAC,OAAO,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,KAAK,CAA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C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAClE,CAAC;CACD;AAvcD,oCAucC"}
@@ -0,0 +1,41 @@
1
+ export declare enum Transport {
2
+ Tcp = 1,
3
+ Udp = 2,
4
+ Tls = 3,
5
+ Unix = 4
6
+ }
7
+ export declare enum Facility {
8
+ Kernel = 0,
9
+ User = 1,
10
+ Mail = 2,
11
+ System = 3,
12
+ Daemon = 3,
13
+ Auth = 4,
14
+ Syslog = 5,
15
+ Lpr = 6,
16
+ News = 7,
17
+ Uucp = 8,
18
+ Cron = 9,
19
+ Authpriv = 10,
20
+ Ftp = 11,
21
+ Audit = 13,
22
+ Alert = 14,
23
+ Local0 = 16,
24
+ Local1 = 17,
25
+ Local2 = 18,
26
+ Local3 = 19,
27
+ Local4 = 20,
28
+ Local5 = 21,
29
+ Local6 = 22,
30
+ Local7 = 23
31
+ }
32
+ export declare enum Severity {
33
+ Emergency = 0,
34
+ Alert = 1,
35
+ Critical = 2,
36
+ Error = 3,
37
+ Warning = 4,
38
+ Notice = 5,
39
+ Informational = 6,
40
+ Debug = 7
41
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Severity = exports.Facility = exports.Transport = void 0;
4
+ var Transport;
5
+ (function (Transport) {
6
+ Transport[Transport["Tcp"] = 1] = "Tcp";
7
+ Transport[Transport["Udp"] = 2] = "Udp";
8
+ Transport[Transport["Tls"] = 3] = "Tls";
9
+ Transport[Transport["Unix"] = 4] = "Unix";
10
+ })(Transport || (exports.Transport = Transport = {}));
11
+ var Facility;
12
+ (function (Facility) {
13
+ Facility[Facility["Kernel"] = 0] = "Kernel";
14
+ Facility[Facility["User"] = 1] = "User";
15
+ Facility[Facility["Mail"] = 2] = "Mail";
16
+ Facility[Facility["System"] = 3] = "System";
17
+ Facility[Facility["Daemon"] = 3] = "Daemon";
18
+ Facility[Facility["Auth"] = 4] = "Auth";
19
+ Facility[Facility["Syslog"] = 5] = "Syslog";
20
+ Facility[Facility["Lpr"] = 6] = "Lpr";
21
+ Facility[Facility["News"] = 7] = "News";
22
+ Facility[Facility["Uucp"] = 8] = "Uucp";
23
+ Facility[Facility["Cron"] = 9] = "Cron";
24
+ Facility[Facility["Authpriv"] = 10] = "Authpriv";
25
+ Facility[Facility["Ftp"] = 11] = "Ftp";
26
+ Facility[Facility["Audit"] = 13] = "Audit";
27
+ Facility[Facility["Alert"] = 14] = "Alert";
28
+ Facility[Facility["Local0"] = 16] = "Local0";
29
+ Facility[Facility["Local1"] = 17] = "Local1";
30
+ Facility[Facility["Local2"] = 18] = "Local2";
31
+ Facility[Facility["Local3"] = 19] = "Local3";
32
+ Facility[Facility["Local4"] = 20] = "Local4";
33
+ Facility[Facility["Local5"] = 21] = "Local5";
34
+ Facility[Facility["Local6"] = 22] = "Local6";
35
+ Facility[Facility["Local7"] = 23] = "Local7";
36
+ })(Facility || (exports.Facility = Facility = {}));
37
+ var Severity;
38
+ (function (Severity) {
39
+ Severity[Severity["Emergency"] = 0] = "Emergency";
40
+ Severity[Severity["Alert"] = 1] = "Alert";
41
+ Severity[Severity["Critical"] = 2] = "Critical";
42
+ Severity[Severity["Error"] = 3] = "Error";
43
+ Severity[Severity["Warning"] = 4] = "Warning";
44
+ Severity[Severity["Notice"] = 5] = "Notice";
45
+ Severity[Severity["Informational"] = 6] = "Informational";
46
+ Severity[Severity["Debug"] = 7] = "Debug";
47
+ })(Severity || (exports.Severity = Severity = {}));
48
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAMA,IAAY,SAKX;AALD,WAAY,SAAS;IACpB,uCAAO,CAAA;IACP,uCAAO,CAAA;IACP,uCAAO,CAAA;IACP,yCAAQ,CAAA;AACT,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAKD,IAAY,QAyBX;AAzBD,WAAY,QAAQ;IACnB,2CAAU,CAAA;IACV,uCAAQ,CAAA;IACR,uCAAQ,CAAA;IACR,2CAAU,CAAA;IAEV,2CAAU,CAAA;IACV,uCAAQ,CAAA;IACR,2CAAU,CAAA;IACV,qCAAO,CAAA;IACP,uCAAQ,CAAA;IACR,uCAAQ,CAAA;IACR,uCAAQ,CAAA;IACR,gDAAa,CAAA;IACb,sCAAQ,CAAA;IACR,0CAAU,CAAA;IACV,0CAAU,CAAA;IACV,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;AACZ,CAAC,EAzBW,QAAQ,wBAAR,QAAQ,QAyBnB;AAKD,IAAY,QASX;AATD,WAAY,QAAQ;IACnB,iDAAa,CAAA;IACb,yCAAS,CAAA;IACT,+CAAY,CAAA;IACZ,yCAAS,CAAA;IACT,6CAAW,CAAA;IACX,2CAAU,CAAA;IACV,yDAAiB,CAAA;IACjB,yCAAS,CAAA;AACV,CAAC,EATW,QAAQ,wBAAR,QAAQ,QASnB"}
@@ -0,0 +1,27 @@
1
+ import type { ZodIssue } from 'zod';
2
+ export declare class SyslogClientError extends Error {
3
+ readonly code?: string | undefined;
4
+ readonly cause?: Error | undefined;
5
+ constructor(message: string, code?: string | undefined, cause?: Error | undefined);
6
+ }
7
+ export declare class ValidationError extends SyslogClientError {
8
+ readonly validationErrors: Array<{
9
+ path: string;
10
+ message: string;
11
+ }>;
12
+ constructor(message: string, validationErrors: Array<{
13
+ path: string;
14
+ message: string;
15
+ }>);
16
+ static fromZod(message: string, zodErrors: ZodIssue[]): ValidationError;
17
+ }
18
+ export declare class ConnectionError extends SyslogClientError {
19
+ constructor(message: string, cause?: Error);
20
+ }
21
+ export declare class TransportError extends SyslogClientError {
22
+ readonly transportType: string;
23
+ constructor(message: string, transportType: string, cause?: Error);
24
+ }
25
+ export declare class TimeoutError extends SyslogClientError {
26
+ constructor(message?: string);
27
+ }
package/dist/errors.js ADDED
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimeoutError = exports.TransportError = exports.ConnectionError = exports.ValidationError = exports.SyslogClientError = void 0;
4
+ class SyslogClientError extends Error {
5
+ constructor(message, code, cause) {
6
+ super(message);
7
+ this.code = code;
8
+ this.cause = cause;
9
+ this.name = 'SyslogClientError';
10
+ Object.setPrototypeOf(this, SyslogClientError.prototype);
11
+ if (Error.captureStackTrace) {
12
+ Error.captureStackTrace(this, this.constructor);
13
+ }
14
+ }
15
+ }
16
+ exports.SyslogClientError = SyslogClientError;
17
+ class ValidationError extends SyslogClientError {
18
+ constructor(message, validationErrors) {
19
+ super(message, 'VALIDATION_ERROR');
20
+ this.validationErrors = validationErrors;
21
+ this.name = 'ValidationError';
22
+ Object.setPrototypeOf(this, ValidationError.prototype);
23
+ }
24
+ static fromZod(message, zodErrors) {
25
+ const errors = zodErrors.map((zodError) => ({
26
+ path: zodError.path.join('.'),
27
+ message: zodError.message,
28
+ }));
29
+ return new ValidationError(message, errors);
30
+ }
31
+ }
32
+ exports.ValidationError = ValidationError;
33
+ class ConnectionError extends SyslogClientError {
34
+ constructor(message, cause) {
35
+ super(message, 'CONNECTION_ERROR', cause);
36
+ this.name = 'ConnectionError';
37
+ Object.setPrototypeOf(this, ConnectionError.prototype);
38
+ }
39
+ }
40
+ exports.ConnectionError = ConnectionError;
41
+ class TransportError extends SyslogClientError {
42
+ constructor(message, transportType, cause) {
43
+ super(message, 'TRANSPORT_ERROR', cause);
44
+ this.transportType = transportType;
45
+ this.name = 'TransportError';
46
+ Object.setPrototypeOf(this, TransportError.prototype);
47
+ }
48
+ }
49
+ exports.TransportError = TransportError;
50
+ class TimeoutError extends SyslogClientError {
51
+ constructor(message = 'Connection timed out') {
52
+ super(message, 'TIMEOUT_ERROR');
53
+ this.name = 'TimeoutError';
54
+ Object.setPrototypeOf(this, TimeoutError.prototype);
55
+ }
56
+ }
57
+ exports.TimeoutError = TimeoutError;
58
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAMA,MAAa,iBAAkB,SAAQ,KAAK;IAC3C,YACC,OAAe,EACN,IAAa,EACb,KAAa;QAEtB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHN,SAAI,GAAJ,IAAI,CAAS;QACb,UAAK,GAAL,KAAK,CAAQ;QAGtB,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAGhC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAGzD,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC7B,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QACjD,CAAC;IACF,CAAC;CACD;AAjBD,8CAiBC;AAKD,MAAa,eAAgB,SAAQ,iBAAiB;IACrD,YACC,OAAe,EACN,gBAA0D;QAEnE,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;QAF1B,qBAAgB,GAAhB,gBAAgB,CAA0C;QAGnE,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAC9B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,SAAqB;QACpD,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAC3C,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;YAC7B,OAAO,EAAE,QAAQ,CAAC,OAAO;SACzB,CAAC,CAAC,CAAC;QAEJ,OAAO,IAAI,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;CACD;AAlBD,0CAkBC;AAKD,MAAa,eAAgB,SAAQ,iBAAiB;IACrD,YAAY,OAAe,EAAE,KAAa;QACzC,KAAK,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAC9B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;CACD;AAND,0CAMC;AAKD,MAAa,cAAe,SAAQ,iBAAiB;IACpD,YACC,OAAe,EACN,aAAqB,EAC9B,KAAa;QAEb,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,CAAC,CAAC;QAHhC,kBAAa,GAAb,aAAa,CAAQ;QAI9B,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;CACD;AAVD,wCAUC;AAKD,MAAa,YAAa,SAAQ,iBAAiB;IAClD,YAAY,UAAkB,sBAAsB;QACnD,KAAK,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;CACD;AAND,oCAMC"}
@@ -0,0 +1,3 @@
1
+ import { SyslogClient } from './client';
2
+ import type { ClientOptions } from './types';
3
+ export declare function createClient(target?: string, options?: ClientOptions): SyslogClient;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createClient = createClient;
4
+ const client_1 = require("./client");
5
+ function createClient(target, options) {
6
+ return new client_1.SyslogClient(target, options);
7
+ }
8
+ //# sourceMappingURL=factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":";;AAwBA,oCAEC;AA1BD,qCAAwC;AAwBxC,SAAgB,YAAY,CAAC,MAAe,EAAE,OAAuB;IACpE,OAAO,IAAI,qBAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { SyslogClient } from './client';
2
+ export { createClient } from './factory';
3
+ export { Facility, Severity, Transport } from './constants';
4
+ export type { ClientOptions, DateFormatter, LogOptions, SyslogCallback } from './types';
5
+ export { ConnectionError, SyslogClientError, TimeoutError, TransportError, ValidationError, } from './errors';
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidationError = exports.TransportError = exports.TimeoutError = exports.SyslogClientError = exports.ConnectionError = exports.Transport = exports.Severity = exports.Facility = exports.createClient = exports.SyslogClient = void 0;
4
+ var client_1 = require("./client");
5
+ Object.defineProperty(exports, "SyslogClient", { enumerable: true, get: function () { return client_1.SyslogClient; } });
6
+ var factory_1 = require("./factory");
7
+ Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return factory_1.createClient; } });
8
+ var constants_1 = require("./constants");
9
+ Object.defineProperty(exports, "Facility", { enumerable: true, get: function () { return constants_1.Facility; } });
10
+ Object.defineProperty(exports, "Severity", { enumerable: true, get: function () { return constants_1.Severity; } });
11
+ Object.defineProperty(exports, "Transport", { enumerable: true, get: function () { return constants_1.Transport; } });
12
+ var errors_1 = require("./errors");
13
+ Object.defineProperty(exports, "ConnectionError", { enumerable: true, get: function () { return errors_1.ConnectionError; } });
14
+ Object.defineProperty(exports, "SyslogClientError", { enumerable: true, get: function () { return errors_1.SyslogClientError; } });
15
+ Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function () { return errors_1.TimeoutError; } });
16
+ Object.defineProperty(exports, "TransportError", { enumerable: true, get: function () { return errors_1.TransportError; } });
17
+ Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return errors_1.ValidationError; } });
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAUA,mCAAwC;AAA/B,sGAAA,YAAY,OAAA;AACrB,qCAAyC;AAAhC,uGAAA,YAAY,OAAA;AACrB,yCAA4D;AAAnD,qGAAA,QAAQ,OAAA;AAAE,qGAAA,QAAQ,OAAA;AAAE,sGAAA,SAAS,OAAA;AAEtC,mCAMkB;AALjB,yGAAA,eAAe,OAAA;AACf,2GAAA,iBAAiB,OAAA;AACjB,sGAAA,YAAY,OAAA;AACZ,wGAAA,cAAc,OAAA;AACd,yGAAA,eAAe,OAAA"}
@@ -0,0 +1,65 @@
1
+ import { z } from 'zod';
2
+ export declare const clientOptionsSchema: z.ZodObject<{
3
+ syslogHostname: z.ZodOptional<z.ZodString>;
4
+ port: z.ZodOptional<z.ZodNumber>;
5
+ tcpTimeout: z.ZodOptional<z.ZodNumber>;
6
+ facility: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
7
+ severity: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
8
+ rfc3164: z.ZodOptional<z.ZodBoolean>;
9
+ appName: z.ZodOptional<z.ZodString>;
10
+ dateFormatter: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodDate], z.ZodUnknown>, z.ZodString>>;
11
+ udpBindAddress: z.ZodOptional<z.ZodString>;
12
+ transport: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
13
+ tlsCA: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodArray<z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, "many">]>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ syslogHostname?: string | undefined;
16
+ port?: number | undefined;
17
+ tcpTimeout?: number | undefined;
18
+ facility?: number | undefined;
19
+ severity?: number | undefined;
20
+ rfc3164?: boolean | undefined;
21
+ appName?: string | undefined;
22
+ dateFormatter?: ((args_0: Date, ...args: unknown[]) => string) | undefined;
23
+ udpBindAddress?: string | undefined;
24
+ transport?: number | undefined;
25
+ tlsCA?: string | string[] | Buffer<ArrayBufferLike> | Buffer<ArrayBufferLike>[] | undefined;
26
+ }, {
27
+ syslogHostname?: string | undefined;
28
+ port?: number | undefined;
29
+ tcpTimeout?: number | undefined;
30
+ facility?: number | undefined;
31
+ severity?: number | undefined;
32
+ rfc3164?: boolean | undefined;
33
+ appName?: string | undefined;
34
+ dateFormatter?: ((args_0: Date, ...args: unknown[]) => string) | undefined;
35
+ udpBindAddress?: string | undefined;
36
+ transport?: number | undefined;
37
+ tlsCA?: string | string[] | Buffer<ArrayBufferLike> | Buffer<ArrayBufferLike>[] | undefined;
38
+ }>;
39
+ export declare const logOptionsSchema: z.ZodObject<{
40
+ facility: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
41
+ severity: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
42
+ rfc3164: z.ZodOptional<z.ZodBoolean>;
43
+ appName: z.ZodOptional<z.ZodString>;
44
+ syslogHostname: z.ZodOptional<z.ZodString>;
45
+ timestamp: z.ZodOptional<z.ZodType<Date, z.ZodTypeDef, Date>>;
46
+ msgid: z.ZodOptional<z.ZodString>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ syslogHostname?: string | undefined;
49
+ facility?: number | undefined;
50
+ severity?: number | undefined;
51
+ rfc3164?: boolean | undefined;
52
+ appName?: string | undefined;
53
+ timestamp?: Date | undefined;
54
+ msgid?: string | undefined;
55
+ }, {
56
+ syslogHostname?: string | undefined;
57
+ facility?: number | undefined;
58
+ severity?: number | undefined;
59
+ rfc3164?: boolean | undefined;
60
+ appName?: string | undefined;
61
+ timestamp?: Date | undefined;
62
+ msgid?: string | undefined;
63
+ }>;
64
+ export type ValidatedClientOptions = z.infer<typeof clientOptionsSchema>;
65
+ export type ValidatedLogOptions = z.infer<typeof logOptionsSchema>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.logOptionsSchema = exports.clientOptionsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("./constants");
6
+ const createEnumSchema = (enumObject, name) => {
7
+ const values = Object.values(enumObject).filter((val) => typeof val === 'number');
8
+ return zod_1.z.number().refine((val) => values.includes(val), {
9
+ message: `Invalid ${name} value. Must be one of: ${values.join(', ')}`,
10
+ });
11
+ };
12
+ exports.clientOptionsSchema = zod_1.z.object({
13
+ syslogHostname: zod_1.z.string().optional(),
14
+ port: zod_1.z.number().int().positive().max(65535).optional(),
15
+ tcpTimeout: zod_1.z.number().int().positive().optional(),
16
+ facility: createEnumSchema(constants_1.Facility, 'facility').optional(),
17
+ severity: createEnumSchema(constants_1.Severity, 'severity').optional(),
18
+ rfc3164: zod_1.z.boolean().optional(),
19
+ appName: zod_1.z.string().max(48).optional(),
20
+ dateFormatter: zod_1.z.function().args(zod_1.z.date()).returns(zod_1.z.string()).optional(),
21
+ udpBindAddress: zod_1.z.string().ip().optional(),
22
+ transport: createEnumSchema(constants_1.Transport, 'transport').optional(),
23
+ tlsCA: zod_1.z
24
+ .union([zod_1.z.string(), zod_1.z.array(zod_1.z.string()), zod_1.z.instanceof(Buffer), zod_1.z.array(zod_1.z.instanceof(Buffer))])
25
+ .optional(),
26
+ });
27
+ exports.logOptionsSchema = zod_1.z.object({
28
+ facility: createEnumSchema(constants_1.Facility, 'facility').optional(),
29
+ severity: createEnumSchema(constants_1.Severity, 'severity').optional(),
30
+ rfc3164: zod_1.z.boolean().optional(),
31
+ appName: zod_1.z.string().max(48).optional(),
32
+ syslogHostname: zod_1.z.string().optional(),
33
+ timestamp: zod_1.z.instanceof(Date).optional(),
34
+ msgid: zod_1.z.string().opt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@ -0,0 +1,38 @@
1
+ import type * as dgram from 'dgram';
2
+ import type * as net from 'net';
3
+ import type * as tls from 'tls';
4
+ import type { Facility, Severity, Transport } from './constants';
5
+ export type SyslogCallback = (error?: Error) => void;
6
+ export type DateFormatter = (date: Date) => string;
7
+ export interface ClientOptions {
8
+ syslogHostname?: string;
9
+ port?: number;
10
+ tcpTimeout?: number;
11
+ facility?: Facility;
12
+ severity?: Severity;
13
+ rfc3164?: boolean;
14
+ appName?: string;
15
+ dateFormatter?: DateFormatter;
16
+ udpBindAddress?: string;
17
+ transport?: Transport;
18
+ tlsCA?: string | string[] | Buffer | Buffer[];
19
+ }
20
+ export interface LogOptions {
21
+ facility?: Facility;
22
+ severity?: Severity;
23
+ rfc3164?: boolean;
24
+ appName?: string;
25
+ syslogHostname?: string;
26
+ timestamp?: Date;
27
+ msgid?: string;
28
+ }
29
+ export interface ResolvedLogOptions {
30
+ facility: Facility;
31
+ severity: Severity;
32
+ rfc3164: boolean;
33
+ appName: string;
34
+ syslogHostname: string;
35
+ timestamp?: Date;
36
+ msgid?: string;
37
+ }
38
+ export type TransportConnection = dgram.Socket | net.Socket | tls.TLSSocket;
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { DateFormatter, ResolvedLogOptions } from './types';
2
+ export declare const defaultDateFormatter: DateFormatter;
3
+ export declare const formatRfc3164Timestamp: (date: Date) => string;
4
+ export declare const buildFormattedMessage: (message: string, options: ResolvedLogOptions, dateFormatter: DateFormatter) => Buffer;
5
+ export declare const isIPv6: (address: string) => boolean;
package/dist/utils.js ADDED
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isIPv6 = exports.buildFormattedMessage = exports.formatRfc3164Timestamp = exports.defaultDateFormatter = void 0;
4
+ const defaultDateFormatter = (date) => date.toISOString();
5
+ exports.defaultDateFormatter = defaultDateFormatter;
6
+ const formatRfc3164Timestamp = (date) => {
7
+ const elements = date.toString().split(/\s+/);
8
+ const month = elements[1];
9
+ let day = elements[2];
10
+ const time = elements[4];
11
+ if (day[0] === '0') {
12
+ day = ' ' + day.substring(1);
13
+ }
14
+ return `${month} ${day} ${time}`;
15
+ };
16
+ exports.formatRfc3164Timestamp = formatRfc3164Timestamp;
17
+ const buildFormattedMessage = (message, options, dateFormatter) => {
18
+ const date = options.timestamp ?? new Date();
19
+ const pri = options.facility * 8 + options.severity;
20
+ const newline = message.endsWith('\n') ? '' : '\n';
21
+ let formattedMessage;
22
+ if (options.rfc3164) {
23
+ const timestamp = (0, exports.formatRfc3164Timestamp)(date);
24
+ formattedMessage = `<${pri}>${timestamp} ${options.syslogHostname} ${message}${newline}`;
25
+ }
26
+ else {
27
+ const timestamp = dateFormatter(date);
28
+ const msgid = options.msgid ?? '-';
29
+ formattedMessage = `<${pri}>1 ${timestamp} ${options.syslogHostname} ${options.appName} ${process.pid} ${msgid} - ${message}${newline}`;
30
+ }
31
+ return Buffer.from(formattedMessage);
32
+ };
33
+ exports.buildFormattedMessage = buildFormattedMessage;
34
+ const isIPv6 = (address) => address.includes(':');
35
+ exports.isIPv6 = isIPv6;
36
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAMO,MAAM,oBAAoB,GAAkB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;AAAnE,QAAA,oBAAoB,wBAA+C;AAQzE,MAAM,sBAAsB,GAAG,CAAC,IAAU,EAAU,EAAE;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,C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AAO,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,IAAI,KAAK,MAAM,OAAO,GAAG,OAAO,EAAE,CAAC;IACzI,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AACtC,CAAC,CAAC;AAvBW,QAAA,qBAAqB,yBAuBhC;AASK,MAAM,MAAM,GAAG,CAAC,OAAe,EAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAA7D,QAAA,MAAM,UAAuD"}
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@n8n/syslog-client",
3
+ "version": "1.1.0",
4
+ "main": "dist/index.js",
5
+ "module": "src/index.ts",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist/**/*",
9
+ "LICENSE.md",
10
+ "LICENSE_EE.md"
11
+ ],
12
+ "dependencies": {
13
+ "zod": "3.25.67"
14
+ },
15
+ "devDependencies": {
16
+ "get-port": "^7.1.0",
17
+ "@n8n/typescript-config": "1.3.0"
18
+ },
19
+ "license": "SEE LICENSE IN LICENSE.md",
20
+ "homepage": "https://n8n.io",
21
+ "author": {
22
+ "name": "Jan Oberhauser",
23
+ "email": "jan@n8n.io"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/n8n-io/n8n.git"
28
+ },
29
+ "scripts": {
30
+ "clean": "rimraf dist .turbo",
31
+ "dev": "pnpm watch",
32
+ "typecheck": "tsc --noEmit",
33
+ "build": "tsc -p tsconfig.build.json",
34
+ "format": "biome format --write src test",
35
+ "format:check": "biome ci src test",
36
+ "lint": "eslint . --quiet",
37
+ "lint:fix": "eslint . --fix",
38
+ "watch": "tsc -p tsconfig.build.json --watch",
39
+ "test": "jest",
40
+ "test:unit": "jest",
41
+ "test:dev": "jest --watch"
42
+ }
43
+ }