@loglayer/transport-dynatrace 1.0.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 +21 -0
- package/README.md +37 -0
- package/dist/index.cjs +50 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +50 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Theo Gravity
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Dynatrace Transport for LogLayer
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@loglayer/transport-dynatrace)
|
|
4
|
+
[](https://www.npmjs.com/package/@loglayer/transport-dynatrace)
|
|
5
|
+
[](http://www.typescriptlang.org/)
|
|
6
|
+
|
|
7
|
+
A transport for [LogLayer](https://loglayer.dev) to send logs to Dynatrace using their [Log Monitoring API v2](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/log-monitoring-v2/post-ingest-logs).
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install loglayer @loglayer/transport-dynatrace serialize-error
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
You will need an access token with the `logs.ingest` scope. See [access token documentation](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/basics/dynatrace-api-authentication) for more details.
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { LogLayer } from 'loglayer'
|
|
21
|
+
import { DynatraceTransport } from "@loglayer/transport-dynatrace"
|
|
22
|
+
|
|
23
|
+
const log = new LogLayer({
|
|
24
|
+
errorSerializer: serializeError,
|
|
25
|
+
transport: new DynatraceTransport({
|
|
26
|
+
url: "https://your-environment-id.live.dynatrace.com/api/v2/logs/ingest",
|
|
27
|
+
ingestToken: "your-api-token",
|
|
28
|
+
onError: (error) => console.error('Failed to send log:', error)
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
log.info('Hello world')
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Documentation
|
|
36
|
+
|
|
37
|
+
For more details, visit [https://loglayer.dev/transports/dynatrace](https://loglayer.dev/transports/dynatrace)
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/DynatraceTransport.ts
|
|
2
|
+
var _transport = require('@loglayer/transport');
|
|
3
|
+
var DynatraceTransport = class extends _transport.LoggerlessTransport {
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
constructor(config) {
|
|
8
|
+
super(config);
|
|
9
|
+
this.url = config.url;
|
|
10
|
+
this.onError = config.onError;
|
|
11
|
+
this.ingestToken = config.ingestToken;
|
|
12
|
+
}
|
|
13
|
+
shipToLogger({ logLevel, messages, data, hasData }) {
|
|
14
|
+
const stringMessages = messages.filter((msg) => typeof msg === "string");
|
|
15
|
+
const message = stringMessages.join(" ");
|
|
16
|
+
const payload = {
|
|
17
|
+
content: message,
|
|
18
|
+
severity: logLevel,
|
|
19
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
20
|
+
...data && hasData ? data : {}
|
|
21
|
+
};
|
|
22
|
+
const content = JSON.stringify(payload);
|
|
23
|
+
fetch(this.url, {
|
|
24
|
+
method: "POST",
|
|
25
|
+
headers: {
|
|
26
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
27
|
+
Authorization: `Api-Token ${this.ingestToken}`
|
|
28
|
+
},
|
|
29
|
+
body: content
|
|
30
|
+
}).then((response) => {
|
|
31
|
+
if (!response.ok) {
|
|
32
|
+
const error = `Failed to send log to Dynatrace: ${response.statusText}`;
|
|
33
|
+
if (this.onError) {
|
|
34
|
+
this.onError(error);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}).catch((error) => {
|
|
38
|
+
if (this.onError) {
|
|
39
|
+
this.onError(error);
|
|
40
|
+
} else {
|
|
41
|
+
console.error("Error sending log to Dynatrace:", error);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return messages;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.DynatraceTransport = DynatraceTransport;
|
|
50
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/loglayer/loglayer/packages/transports/dynatrace/dist/index.cjs","../src/DynatraceTransport.ts"],"names":[],"mappings":"AAAA;ACAA,gDAAkG;AAqB3F,IAAM,mBAAA,EAAN,MAAA,QAAiC,+BAAoB;AAAA,EAClD;AAAA,EACA;AAAA,EACA;AAAA,EAER,WAAA,CAAY,MAAA,EAAkC;AAC5C,IAAA,KAAA,CAAM,MAAM,CAAA;AACZ,IAAA,IAAA,CAAK,IAAA,EAAM,MAAA,CAAO,GAAA;AAClB,IAAA,IAAA,CAAK,QAAA,EAAU,MAAA,CAAO,OAAA;AACtB,IAAA,IAAA,CAAK,YAAA,EAAc,MAAA,CAAO,WAAA;AAAA,EAC5B;AAAA,EAEA,YAAA,CAAa,EAAE,QAAA,EAAU,QAAA,EAAU,IAAA,EAAM,QAAQ,CAAA,EAAmC;AAElF,IAAA,MAAM,eAAA,EAAiB,QAAA,CAAS,MAAA,CAAO,CAAC,GAAA,EAAA,GAAQ,OAAO,IAAA,IAAQ,QAAQ,CAAA;AACvE,IAAA,MAAM,QAAA,EAAU,cAAA,CAAe,IAAA,CAAK,GAAG,CAAA;AAEvC,IAAA,MAAM,QAAA,EAA+B;AAAA,MACnC,OAAA,EAAS,OAAA;AAAA,MACT,QAAA,EAAU,QAAA;AAAA,MACV,SAAA,EAAA,iBAAW,IAAI,IAAA,CAAK,CAAA,CAAA,CAAE,WAAA,CAAY,CAAA;AAAA,MAClC,GAAI,KAAA,GAAQ,QAAA,EAAU,KAAA,EAAO,CAAC;AAAA,IAChC,CAAA;AAEA,IAAA,MAAM,QAAA,EAAU,IAAA,CAAK,SAAA,CAAU,OAAO,CAAA;AAEtC,IAAA,KAAA,CAAM,IAAA,CAAK,GAAA,EAAK;AAAA,MACd,MAAA,EAAQ,MAAA;AAAA,MACR,OAAA,EAAS;AAAA,QACP,cAAA,EAAgB,iCAAA;AAAA,QAChB,aAAA,EAAe,CAAA,UAAA,EAAa,IAAA,CAAK,WAAW,CAAA;AAAA,MAAA;AAC9C,MAAA;AACM,IAAA;AAGJ,MAAA;AACE,QAAA;AACA,QAAA;AACE,UAAA;AAAkB,QAAA;AACpB,MAAA;AACF,IAAA;AAGA,MAAA;AACE,QAAA;AAAkB,MAAA;AAElB,QAAA;AAAsD,MAAA;AACxD,IAAA;AAGJ,IAAA;AAAO,EAAA;AAEX;AD3BA;AACA;AACA","file":"/home/runner/work/loglayer/loglayer/packages/transports/dynatrace/dist/index.cjs","sourcesContent":[null,"import { type LogLayerTransportParams, LoggerlessTransport, type LoggerlessTransportConfig } from \"@loglayer/transport\";\n\nexport interface DynatraceTransportConfig extends LoggerlessTransportConfig {\n /**\n * The URL to post logs to. Should be in the format of:\n * - https://<env-id>.live.dynatrace.com/api/v2/logs/ingest\n * - https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/logs/ingest\n */\n url: string;\n\n /**\n * An access token with the logs.ingest scope\n */\n ingestToken: string;\n\n /**\n * Optional callback for error handling\n */\n onError?: (error: Error | string) => void;\n}\n\nexport class DynatraceTransport extends LoggerlessTransport {\n private url: string;\n private onError?: (error: Error | string) => void;\n private ingestToken: string;\n\n constructor(config: DynatraceTransportConfig) {\n super(config);\n this.url = config.url;\n this.onError = config.onError;\n this.ingestToken = config.ingestToken;\n }\n\n shipToLogger({ logLevel, messages, data, hasData }: LogLayerTransportParams): any[] {\n // Only use the string messages for content\n const stringMessages = messages.filter((msg) => typeof msg === \"string\");\n const message = stringMessages.join(\" \");\n\n const payload: Record<string, any> = {\n content: message,\n severity: logLevel,\n timestamp: new Date().toISOString(),\n ...(data && hasData ? data : {}),\n };\n\n const content = JSON.stringify(payload);\n\n fetch(this.url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json; charset=utf-8\",\n Authorization: `Api-Token ${this.ingestToken}`,\n },\n body: content,\n })\n .then((response) => {\n if (!response.ok) {\n const error = `Failed to send log to Dynatrace: ${response.statusText}`;\n if (this.onError) {\n this.onError(error);\n }\n }\n })\n .catch((error) => {\n if (this.onError) {\n this.onError(error);\n } else {\n console.error(\"Error sending log to Dynatrace:\", error);\n }\n });\n\n return messages;\n }\n}\n"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LoggerlessTransportConfig, LoggerlessTransport, LogLayerTransportParams } from '@loglayer/transport';
|
|
2
|
+
|
|
3
|
+
interface DynatraceTransportConfig extends LoggerlessTransportConfig {
|
|
4
|
+
/**
|
|
5
|
+
* The URL to post logs to. Should be in the format of:
|
|
6
|
+
* - https://<env-id>.live.dynatrace.com/api/v2/logs/ingest
|
|
7
|
+
* - https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/logs/ingest
|
|
8
|
+
*/
|
|
9
|
+
url: string;
|
|
10
|
+
/**
|
|
11
|
+
* An access token with the logs.ingest scope
|
|
12
|
+
*/
|
|
13
|
+
ingestToken: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional callback for error handling
|
|
16
|
+
*/
|
|
17
|
+
onError?: (error: Error | string) => void;
|
|
18
|
+
}
|
|
19
|
+
declare class DynatraceTransport extends LoggerlessTransport {
|
|
20
|
+
private url;
|
|
21
|
+
private onError?;
|
|
22
|
+
private ingestToken;
|
|
23
|
+
constructor(config: DynatraceTransportConfig);
|
|
24
|
+
shipToLogger({ logLevel, messages, data, hasData }: LogLayerTransportParams): any[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { DynatraceTransport, type DynatraceTransportConfig };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LoggerlessTransportConfig, LoggerlessTransport, LogLayerTransportParams } from '@loglayer/transport';
|
|
2
|
+
|
|
3
|
+
interface DynatraceTransportConfig extends LoggerlessTransportConfig {
|
|
4
|
+
/**
|
|
5
|
+
* The URL to post logs to. Should be in the format of:
|
|
6
|
+
* - https://<env-id>.live.dynatrace.com/api/v2/logs/ingest
|
|
7
|
+
* - https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/logs/ingest
|
|
8
|
+
*/
|
|
9
|
+
url: string;
|
|
10
|
+
/**
|
|
11
|
+
* An access token with the logs.ingest scope
|
|
12
|
+
*/
|
|
13
|
+
ingestToken: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional callback for error handling
|
|
16
|
+
*/
|
|
17
|
+
onError?: (error: Error | string) => void;
|
|
18
|
+
}
|
|
19
|
+
declare class DynatraceTransport extends LoggerlessTransport {
|
|
20
|
+
private url;
|
|
21
|
+
private onError?;
|
|
22
|
+
private ingestToken;
|
|
23
|
+
constructor(config: DynatraceTransportConfig);
|
|
24
|
+
shipToLogger({ logLevel, messages, data, hasData }: LogLayerTransportParams): any[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { DynatraceTransport, type DynatraceTransportConfig };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// src/DynatraceTransport.ts
|
|
2
|
+
import { LoggerlessTransport } from "@loglayer/transport";
|
|
3
|
+
var DynatraceTransport = class extends LoggerlessTransport {
|
|
4
|
+
url;
|
|
5
|
+
onError;
|
|
6
|
+
ingestToken;
|
|
7
|
+
constructor(config) {
|
|
8
|
+
super(config);
|
|
9
|
+
this.url = config.url;
|
|
10
|
+
this.onError = config.onError;
|
|
11
|
+
this.ingestToken = config.ingestToken;
|
|
12
|
+
}
|
|
13
|
+
shipToLogger({ logLevel, messages, data, hasData }) {
|
|
14
|
+
const stringMessages = messages.filter((msg) => typeof msg === "string");
|
|
15
|
+
const message = stringMessages.join(" ");
|
|
16
|
+
const payload = {
|
|
17
|
+
content: message,
|
|
18
|
+
severity: logLevel,
|
|
19
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
20
|
+
...data && hasData ? data : {}
|
|
21
|
+
};
|
|
22
|
+
const content = JSON.stringify(payload);
|
|
23
|
+
fetch(this.url, {
|
|
24
|
+
method: "POST",
|
|
25
|
+
headers: {
|
|
26
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
27
|
+
Authorization: `Api-Token ${this.ingestToken}`
|
|
28
|
+
},
|
|
29
|
+
body: content
|
|
30
|
+
}).then((response) => {
|
|
31
|
+
if (!response.ok) {
|
|
32
|
+
const error = `Failed to send log to Dynatrace: ${response.statusText}`;
|
|
33
|
+
if (this.onError) {
|
|
34
|
+
this.onError(error);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}).catch((error) => {
|
|
38
|
+
if (this.onError) {
|
|
39
|
+
this.onError(error);
|
|
40
|
+
} else {
|
|
41
|
+
console.error("Error sending log to Dynatrace:", error);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return messages;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
DynatraceTransport
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DynatraceTransport.ts"],"sourcesContent":["import { type LogLayerTransportParams, LoggerlessTransport, type LoggerlessTransportConfig } from \"@loglayer/transport\";\n\nexport interface DynatraceTransportConfig extends LoggerlessTransportConfig {\n /**\n * The URL to post logs to. Should be in the format of:\n * - https://<env-id>.live.dynatrace.com/api/v2/logs/ingest\n * - https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/logs/ingest\n */\n url: string;\n\n /**\n * An access token with the logs.ingest scope\n */\n ingestToken: string;\n\n /**\n * Optional callback for error handling\n */\n onError?: (error: Error | string) => void;\n}\n\nexport class DynatraceTransport extends LoggerlessTransport {\n private url: string;\n private onError?: (error: Error | string) => void;\n private ingestToken: string;\n\n constructor(config: DynatraceTransportConfig) {\n super(config);\n this.url = config.url;\n this.onError = config.onError;\n this.ingestToken = config.ingestToken;\n }\n\n shipToLogger({ logLevel, messages, data, hasData }: LogLayerTransportParams): any[] {\n // Only use the string messages for content\n const stringMessages = messages.filter((msg) => typeof msg === \"string\");\n const message = stringMessages.join(\" \");\n\n const payload: Record<string, any> = {\n content: message,\n severity: logLevel,\n timestamp: new Date().toISOString(),\n ...(data && hasData ? data : {}),\n };\n\n const content = JSON.stringify(payload);\n\n fetch(this.url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json; charset=utf-8\",\n Authorization: `Api-Token ${this.ingestToken}`,\n },\n body: content,\n })\n .then((response) => {\n if (!response.ok) {\n const error = `Failed to send log to Dynatrace: ${response.statusText}`;\n if (this.onError) {\n this.onError(error);\n }\n }\n })\n .catch((error) => {\n if (this.onError) {\n this.onError(error);\n } else {\n console.error(\"Error sending log to Dynatrace:\", error);\n }\n });\n\n return messages;\n }\n}\n"],"mappings":";AAAA,SAAuC,2BAA2D;AAqB3F,IAAM,qBAAN,cAAiC,oBAAoB;AAAA,EAClD;AAAA,EACA;AAAA,EACA;AAAA,EAER,YAAY,QAAkC;AAC5C,UAAM,MAAM;AACZ,SAAK,MAAM,OAAO;AAClB,SAAK,UAAU,OAAO;AACtB,SAAK,cAAc,OAAO;AAAA,EAC5B;AAAA,EAEA,aAAa,EAAE,UAAU,UAAU,MAAM,QAAQ,GAAmC;AAElF,UAAM,iBAAiB,SAAS,OAAO,CAAC,QAAQ,OAAO,QAAQ,QAAQ;AACvE,UAAM,UAAU,eAAe,KAAK,GAAG;AAEvC,UAAM,UAA+B;AAAA,MACnC,SAAS;AAAA,MACT,UAAU;AAAA,MACV,YAAW,oBAAI,KAAK,GAAE,YAAY;AAAA,MAClC,GAAI,QAAQ,UAAU,OAAO,CAAC;AAAA,IAChC;AAEA,UAAM,UAAU,KAAK,UAAU,OAAO;AAEtC,UAAM,KAAK,KAAK;AAAA,MACd,QAAQ;AAAA,MACR,SAAS;AAAA,QACP,gBAAgB;AAAA,QAChB,eAAe,aAAa,KAAK,WAAW;AAAA,MAC9C;AAAA,MACA,MAAM;AAAA,IACR,CAAC,EACE,KAAK,CAAC,aAAa;AAClB,UAAI,CAAC,SAAS,IAAI;AAChB,cAAM,QAAQ,oCAAoC,SAAS,UAAU;AACrE,YAAI,KAAK,SAAS;AAChB,eAAK,QAAQ,KAAK;AAAA,QACpB;AAAA,MACF;AAAA,IACF,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,UAAI,KAAK,SAAS;AAChB,aAAK,QAAQ,KAAK;AAAA,MACpB,OAAO;AACL,gBAAQ,MAAM,mCAAmC,KAAK;AAAA,MACxD;AAAA,IACF,CAAC;AAEH,WAAO;AAAA,EACT;AACF;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@loglayer/transport-dynatrace",
|
|
3
|
+
"description": "Dynatrace transport for loglayer.",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"import": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"require": {
|
|
14
|
+
"types": "./dist/index.d.cts",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"repository": "loglayer/loglayer.git",
|
|
21
|
+
"author": "Theo Gravity <theo@suteki.nu>",
|
|
22
|
+
"keywords": [
|
|
23
|
+
"logging",
|
|
24
|
+
"log",
|
|
25
|
+
"loglayer",
|
|
26
|
+
"dynatrace",
|
|
27
|
+
"transport"
|
|
28
|
+
],
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@loglayer/transport": "1.1.5"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"hash-runner": "2.0.1",
|
|
34
|
+
"@types/node": "22.10.4",
|
|
35
|
+
"serialize-error": "11.0.3",
|
|
36
|
+
"tsup": "8.3.5",
|
|
37
|
+
"typescript": "5.7.2",
|
|
38
|
+
"vitest": "2.1.8",
|
|
39
|
+
"tsx": "4.19.2",
|
|
40
|
+
"loglayer": "5.1.1",
|
|
41
|
+
"@internal/tsconfig": "1.0.0"
|
|
42
|
+
},
|
|
43
|
+
"bugs": "https://github.com/loglayer/loglayer/issues",
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18"
|
|
46
|
+
},
|
|
47
|
+
"files": [
|
|
48
|
+
"dist"
|
|
49
|
+
],
|
|
50
|
+
"homepage": "https://loglayer.dev",
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsup src/index.ts",
|
|
53
|
+
"test": "vitest --run",
|
|
54
|
+
"build:dev": "hash-runner",
|
|
55
|
+
"clean": "rm -rf .turbo node_modules dist",
|
|
56
|
+
"lint": "biome check --write --unsafe src && biome format src --write && biome lint src --fix",
|
|
57
|
+
"verify-types": "tsc --noEmit",
|
|
58
|
+
"livetest": "tsx src/__tests__/livetest.ts"
|
|
59
|
+
}
|
|
60
|
+
}
|