@loglayer/transport-logtape 2.0.1 → 2.0.3
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 +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/package.json +6 -6
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026 Theo Gravity / [Disaresta](https://disaresta.com)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/index.cjs
CHANGED
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["BaseTransport","LogLevel"],"sources":["../src/LogTapeTransport.ts"],"sourcesContent":["import { BaseTransport, type LogLayerTransportParams, LogLevel } from \"@loglayer/transport\";\n\n// LogTape logger interface based on their documentation\ninterface LogTapeLogger {\n trace(message: string, data?: Record<string, unknown>): void;\n debug(message: string, data?: Record<string, unknown>): void;\n info(message: string, data?: Record<string, unknown>): void;\n warn(message: string, data?: Record<string, unknown>): void;\n error(message: string, data?: Record<string, unknown>): void;\n fatal(message: string, data?: Record<string, unknown>): void;\n}\n\nexport class LogTapeTransport extends BaseTransport<LogTapeLogger> {\n shipToLogger({ logLevel, messages, data, hasData }: LogLayerTransportParams) {\n const message = messages.join(\" \");\n const logData = data && hasData ? data : undefined;\n\n switch (logLevel) {\n case LogLevel.info:\n this.logger.info(message, logData);\n break;\n case LogLevel.warn:\n this.logger.warn(message, logData);\n break;\n case LogLevel.error:\n this.logger.error(message, logData);\n break;\n case LogLevel.trace:\n this.logger.trace(message, logData);\n break;\n case LogLevel.debug:\n this.logger.debug(message, logData);\n break;\n case LogLevel.fatal:\n this.logger.fatal(message, logData);\n break;\n }\n\n return [message, logData];\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["BaseTransport","LogLevel"],"sources":["../src/LogTapeTransport.ts"],"sourcesContent":["import { BaseTransport, type LogLayerTransportParams, LogLevel } from \"@loglayer/transport\";\n\n// LogTape logger interface based on their documentation\ninterface LogTapeLogger {\n trace(message: string, data?: Record<string, unknown>): void;\n debug(message: string, data?: Record<string, unknown>): void;\n info(message: string, data?: Record<string, unknown>): void;\n warn(message: string, data?: Record<string, unknown>): void;\n error(message: string, data?: Record<string, unknown>): void;\n fatal(message: string, data?: Record<string, unknown>): void;\n}\n\nexport class LogTapeTransport extends BaseTransport<LogTapeLogger> {\n shipToLogger({ logLevel, messages, data, hasData }: LogLayerTransportParams) {\n const message = messages.join(\" \");\n const logData = data && hasData ? data : undefined;\n\n switch (logLevel) {\n case LogLevel.info:\n this.logger.info(message, logData);\n break;\n case LogLevel.warn:\n this.logger.warn(message, logData);\n break;\n case LogLevel.error:\n this.logger.error(message, logData);\n break;\n case LogLevel.trace:\n this.logger.trace(message, logData);\n break;\n case LogLevel.debug:\n this.logger.debug(message, logData);\n break;\n case LogLevel.fatal:\n this.logger.fatal(message, logData);\n break;\n }\n\n return [message, logData];\n }\n}\n"],"mappings":";;;;AAYA,IAAa,mBAAb,cAAsCA,kCAA6B;CACjE,aAAa,EAAE,UAAU,UAAU,MAAM,WAAoC;EAC3E,MAAM,UAAU,SAAS,KAAK,IAAI;EAClC,MAAM,UAAU,QAAQ,UAAU,OAAO;AAEzC,UAAQ,UAAR;GACE,KAAKC,6BAAS;AACZ,SAAK,OAAO,KAAK,SAAS,QAAQ;AAClC;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,KAAK,SAAS,QAAQ;AAClC;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,MAAM,SAAS,QAAQ;AACnC;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,MAAM,SAAS,QAAQ;AACnC;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,MAAM,SAAS,QAAQ;AACnC;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,MAAM,SAAS,QAAQ;AACnC;;AAGJ,SAAO,CAAC,SAAS,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loglayer/transport-logtape",
|
|
3
3
|
"description": "LogTape transport for the LogLayer logging library.",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"transport"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@loglayer/transport": "3.0.
|
|
35
|
+
"@loglayer/transport": "3.0.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "25.2.
|
|
39
|
-
"tsdown": "0.20.
|
|
38
|
+
"@types/node": "25.2.3",
|
|
39
|
+
"tsdown": "0.20.3",
|
|
40
40
|
"tsx": "4.21.0",
|
|
41
41
|
"typescript": "5.9.3",
|
|
42
42
|
"vitest": "4.0.18",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
43
|
+
"loglayer": "9.1.1",
|
|
44
|
+
"@internal/tsconfig": "2.1.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@logtape/logtape": "*"
|