@loglayer/transport-logtape 1.0.7 → 1.0.8
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 +0 -24
- package/dist/index.cjs.map +1 -1
- package/package.json +8 -7
package/dist/index.cjs
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
1
|
let __loglayer_transport = require("@loglayer/transport");
|
|
25
|
-
__loglayer_transport = __toESM(__loglayer_transport);
|
|
26
2
|
|
|
27
3
|
//#region src/LogTapeTransport.ts
|
|
28
4
|
var LogTapeTransport = class extends __loglayer_transport.BaseTransport {
|
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,mCAA6B;CACjE,aAAa,EAAE,UAAU,UAAU,MAAM,WAAoC;EAC3E,MAAM,UAAU,SAAS,KAAK,IAAI;EAClC,MAAM,UAAU,QAAQ,UAAU,OAAO;AAEzC,UAAQ,UAAR;GACE,KAAKC,8BAAS;AACZ,SAAK,OAAO,KAAK,SAAS,QAAQ;AAClC;GACF,KAAKA,8BAAS;AACZ,SAAK,OAAO,KAAK,SAAS,QAAQ;AAClC;GACF,KAAKA,8BAAS;AACZ,SAAK,OAAO,MAAM,SAAS,QAAQ;AACnC;GACF,KAAKA,8BAAS;AACZ,SAAK,OAAO,MAAM,SAAS,QAAQ;AACnC;GACF,KAAKA,8BAAS;AACZ,SAAK,OAAO,MAAM,SAAS,QAAQ;AACnC;GACF,KAAKA,8BAAS;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": "1.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
|
+
"sideEffects": false,
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"repository": {
|
|
21
22
|
"type": "git",
|
|
@@ -31,16 +32,16 @@
|
|
|
31
32
|
"transport"
|
|
32
33
|
],
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@loglayer/transport": "2.3.
|
|
35
|
+
"@loglayer/transport": "2.3.11"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@types/node": "24.10.
|
|
38
|
-
"tsdown": "0.
|
|
39
|
-
"tsx": "4.
|
|
38
|
+
"@types/node": "24.10.2",
|
|
39
|
+
"tsdown": "0.17.2",
|
|
40
|
+
"tsx": "4.21.0",
|
|
40
41
|
"typescript": "5.9.3",
|
|
41
|
-
"vitest": "4.0.
|
|
42
|
+
"vitest": "4.0.15",
|
|
42
43
|
"@internal/tsconfig": "2.1.0",
|
|
43
|
-
"loglayer": "8.1.
|
|
44
|
+
"loglayer": "8.1.1"
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"@logtape/logtape": "*"
|