@loglayer/transport-electron-log 3.0.1 → 3.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 +5 -5
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/ElectronLogTransport.ts"],"sourcesContent":["import { BaseTransport, type LogLayerTransportParams, LogLevel } from \"@loglayer/transport\";\nimport type Logger from \"electron-log\";\n\nexport class ElectronLogTransport extends BaseTransport<Logger.MainLogger> {\n shipToLogger({ logLevel, messages, data, hasData }: LogLayerTransportParams) {\n if (data && hasData) {\n // library wants the data object to be the last parameter\n messages.push(data);\n }\n\n switch (logLevel) {\n case LogLevel.info:\n this.logger.info(...messages);\n break;\n case LogLevel.warn:\n this.logger.warn(...messages);\n break;\n case LogLevel.error:\n this.logger.error(...messages);\n break;\n case LogLevel.trace:\n this.logger.debug(...messages);\n break;\n case LogLevel.debug:\n this.logger.debug(...messages);\n break;\n case LogLevel.fatal:\n this.logger.error(...messages);\n break;\n }\n\n return messages;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["BaseTransport","LogLevel"],"sources":["../src/ElectronLogTransport.ts"],"sourcesContent":["import { BaseTransport, type LogLayerTransportParams, LogLevel } from \"@loglayer/transport\";\nimport type Logger from \"electron-log\";\n\nexport class ElectronLogTransport extends BaseTransport<Logger.MainLogger> {\n shipToLogger({ logLevel, messages, data, hasData }: LogLayerTransportParams) {\n if (data && hasData) {\n // library wants the data object to be the last parameter\n messages.push(data);\n }\n\n switch (logLevel) {\n case LogLevel.info:\n this.logger.info(...messages);\n break;\n case LogLevel.warn:\n this.logger.warn(...messages);\n break;\n case LogLevel.error:\n this.logger.error(...messages);\n break;\n case LogLevel.trace:\n this.logger.debug(...messages);\n break;\n case LogLevel.debug:\n this.logger.debug(...messages);\n break;\n case LogLevel.fatal:\n this.logger.error(...messages);\n break;\n }\n\n return messages;\n }\n}\n"],"mappings":";;;;AAGA,IAAa,uBAAb,cAA0CA,kCAAiC;CACzE,aAAa,EAAE,UAAU,UAAU,MAAM,WAAoC;AAC3E,MAAI,QAAQ,QAEV,UAAS,KAAK,KAAK;AAGrB,UAAQ,UAAR;GACE,KAAKC,6BAAS;AACZ,SAAK,OAAO,KAAK,GAAG,SAAS;AAC7B;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,KAAK,GAAG,SAAS;AAC7B;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,MAAM,GAAG,SAAS;AAC9B;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,MAAM,GAAG,SAAS;AAC9B;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,MAAM,GAAG,SAAS;AAC9B;GACF,KAAKA,6BAAS;AACZ,SAAK,OAAO,MAAM,GAAG,SAAS;AAC9B;;AAGJ,SAAO"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loglayer/transport-electron-log",
|
|
3
3
|
"description": "electron-log transport for the LogLayer logging library.",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -32,15 +32,15 @@
|
|
|
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
|
"typescript": "5.9.3",
|
|
41
41
|
"vitest": "4.0.18",
|
|
42
42
|
"@internal/tsconfig": "2.1.0",
|
|
43
|
-
"loglayer": "9.
|
|
43
|
+
"loglayer": "9.1.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"electron-log": "*"
|