@bgord/bun 1.1.3 → 1.1.4
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/logger-winston-production.adapter.d.ts +1 -1
- package/dist/logger-winston-production.adapter.d.ts.map +1 -1
- package/dist/logger-winston-production.adapter.js +6 -2
- package/dist/logger-winston-production.adapter.js.map +1 -1
- package/dist/prerequisites.service.d.ts +0 -3
- package/dist/prerequisites.service.d.ts.map +1 -1
- package/dist/prerequisites.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/logger-winston-production.adapter.ts +7 -4
- package/src/prerequisites.service.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bgord/bun",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Bartosz Gordon",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"preinstall": "bunx only-allow bun"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@biomejs/biome": "2.3.
|
|
23
|
+
"@biomejs/biome": "2.3.3",
|
|
24
24
|
"@commitlint/cli": "20.1.0",
|
|
25
25
|
"@commitlint/config-conventional": "20.0.0",
|
|
26
26
|
"@types/bun": "1.3.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@types/nodemailer": "7.0.3",
|
|
30
30
|
"@types/yazl": "3.3.0",
|
|
31
31
|
"cspell": "9.2.2",
|
|
32
|
-
"knip": "5.67.
|
|
32
|
+
"knip": "5.67.1",
|
|
33
33
|
"lefthook": "2.0.2",
|
|
34
34
|
"only-allow": "1.2.1",
|
|
35
35
|
"shellcheck": "4.1.0",
|
|
@@ -8,7 +8,7 @@ import type { RedactorPort } from "./redactor.port";
|
|
|
8
8
|
|
|
9
9
|
type LoggerWinstonProductionAdapterConfigType = {
|
|
10
10
|
app: LogAppType;
|
|
11
|
-
AXIOM_API_TOKEN
|
|
11
|
+
AXIOM_API_TOKEN?: string;
|
|
12
12
|
redactor: RedactorPort;
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -27,13 +27,16 @@ export class LoggerWinstonProductionAdapter {
|
|
|
27
27
|
tailable: true,
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
const axiom = new AxiomTransport({ token: this.config.AXIOM_API_TOKEN, dataset: this.config.app });
|
|
31
|
-
|
|
32
30
|
return new LoggerWinstonAdapter({
|
|
33
31
|
app: this.config.app,
|
|
34
32
|
environment: NodeEnvironmentEnum.production,
|
|
35
33
|
level,
|
|
36
|
-
transports: [
|
|
34
|
+
transports: [
|
|
35
|
+
file,
|
|
36
|
+
this.config.AXIOM_API_TOKEN
|
|
37
|
+
? new AxiomTransport({ token: this.config.AXIOM_API_TOKEN, dataset: this.config.app })
|
|
38
|
+
: undefined,
|
|
39
|
+
].filter((adapter) => adapter !== undefined),
|
|
37
40
|
redactor: this.config.redactor,
|
|
38
41
|
});
|
|
39
42
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type * as tools from "@bgord/tools";
|
|
2
1
|
import type { ErrorInfo, LoggerPort } from "../src/logger.port";
|
|
3
2
|
import { formatError } from "../src/logger-format-error.service";
|
|
4
3
|
|
|
@@ -25,8 +24,6 @@ export interface Prerequisite {
|
|
|
25
24
|
export type PrerequisiteResult = Readonly<{
|
|
26
25
|
label: PrerequisiteLabelType;
|
|
27
26
|
status: PrerequisiteStatusEnum;
|
|
28
|
-
checkedAt: tools.Timestamp;
|
|
29
|
-
durationMs: tools.DurationMsType;
|
|
30
27
|
kind: string;
|
|
31
28
|
error?: ErrorInfo;
|
|
32
29
|
}>;
|