@loglayer/transport-electron-log 3.0.3 → 3.2.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/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _loglayer_transport = require("@loglayer/transport");
|
|
3
|
-
|
|
4
3
|
//#region src/ElectronLogTransport.ts
|
|
5
4
|
var ElectronLogTransport = class extends _loglayer_transport.BaseTransport {
|
|
6
5
|
shipToLogger({ logLevel, messages, data, hasData }) {
|
|
@@ -28,7 +27,7 @@ var ElectronLogTransport = class extends _loglayer_transport.BaseTransport {
|
|
|
28
27
|
return messages;
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
|
-
|
|
32
30
|
//#endregion
|
|
33
31
|
exports.ElectronLogTransport = ElectronLogTransport;
|
|
32
|
+
|
|
34
33
|
//# sourceMappingURL=index.cjs.map
|
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,oBAAAA,cAAiC;CACzE,aAAa,EAAE,UAAU,UAAU,MAAM,WAAoC;EAC3E,IAAI,QAAQ,SAEV,SAAS,KAAK,IAAI;EAGpB,QAAQ,UAAR;GACE,KAAKC,oBAAAA,SAAS;IACZ,KAAK,OAAO,KAAK,GAAG,QAAQ;IAC5B;GACF,KAAKA,oBAAAA,SAAS;IACZ,KAAK,OAAO,KAAK,GAAG,QAAQ;IAC5B;GACF,KAAKA,oBAAAA,SAAS;IACZ,KAAK,OAAO,MAAM,GAAG,QAAQ;IAC7B;GACF,KAAKA,oBAAAA,SAAS;IACZ,KAAK,OAAO,MAAM,GAAG,QAAQ;IAC7B;GACF,KAAKA,oBAAAA,SAAS;IACZ,KAAK,OAAO,MAAM,GAAG,QAAQ;IAC7B;GACF,KAAKA,oBAAAA,SAAS;IACZ,KAAK,OAAO,MAAM,GAAG,QAAQ;IAC7B;EACJ;EAEA,OAAO;CACT;AACF"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BaseTransport, LogLevel } from "@loglayer/transport";
|
|
2
|
-
|
|
3
2
|
//#region src/ElectronLogTransport.ts
|
|
4
3
|
var ElectronLogTransport = class extends BaseTransport {
|
|
5
4
|
shipToLogger({ logLevel, messages, data, hasData }) {
|
|
@@ -27,7 +26,7 @@ var ElectronLogTransport = class extends BaseTransport {
|
|
|
27
26
|
return messages;
|
|
28
27
|
}
|
|
29
28
|
};
|
|
30
|
-
|
|
31
29
|
//#endregion
|
|
32
30
|
export { ElectronLogTransport };
|
|
31
|
+
|
|
33
32
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"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.mjs","names":[],"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,cAA0C,cAAiC;CACzE,aAAa,EAAE,UAAU,UAAU,MAAM,WAAoC;EAC3E,IAAI,QAAQ,SAEV,SAAS,KAAK,IAAI;EAGpB,QAAQ,UAAR;GACE,KAAK,SAAS;IACZ,KAAK,OAAO,KAAK,GAAG,QAAQ;IAC5B;GACF,KAAK,SAAS;IACZ,KAAK,OAAO,KAAK,GAAG,QAAQ;IAC5B;GACF,KAAK,SAAS;IACZ,KAAK,OAAO,MAAM,GAAG,QAAQ;IAC7B;GACF,KAAK,SAAS;IACZ,KAAK,OAAO,MAAM,GAAG,QAAQ;IAC7B;GACF,KAAK,SAAS;IACZ,KAAK,OAAO,MAAM,GAAG,QAAQ;IAC7B;GACF,KAAK,SAAS;IACZ,KAAK,OAAO,MAAM,GAAG,QAAQ;IAC7B;EACJ;EAEA,OAAO;CACT;AACF"}
|
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.2.0",
|
|
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.2.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "25.
|
|
39
|
-
"tsdown": "0.
|
|
40
|
-
"typescript": "
|
|
41
|
-
"vitest": "4.
|
|
38
|
+
"@types/node": "25.9.1",
|
|
39
|
+
"tsdown": "0.22.1",
|
|
40
|
+
"typescript": "6.0.3",
|
|
41
|
+
"vitest": "4.1.7",
|
|
42
42
|
"@internal/tsconfig": "2.1.0",
|
|
43
|
-
"loglayer": "9.
|
|
43
|
+
"loglayer": "9.3.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"electron-log": "*"
|