@xylabs/log 5.0.64 → 5.0.66
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/neutral/index.d.ts +1 -1
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +0 -42
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +2 -1
- package/dist/neutral/Log.d.ts +0 -12
- package/dist/neutral/Log.d.ts.map +0 -1
- package/dist/neutral/model.d.ts +0 -8
- package/dist/neutral/model.d.ts.map +0 -1
- package/src/Log.ts +0 -48
- package/src/model.ts +0 -8
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,43 +1 @@
|
|
|
1
|
-
// src/Log.ts
|
|
2
|
-
var Log = class {
|
|
3
|
-
config;
|
|
4
|
-
constructor(config) {
|
|
5
|
-
this.config = config;
|
|
6
|
-
}
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
-
debug(...params) {
|
|
9
|
-
if (this.config.devMode) {
|
|
10
|
-
console.debug(params);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
|
-
error(...params) {
|
|
15
|
-
console.error(params);
|
|
16
|
-
if (!this.config.devMode) {
|
|
17
|
-
this.config.rollbar?.error(params);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
|
-
info(...params) {
|
|
22
|
-
if (this.config.devMode) {
|
|
23
|
-
console.info(params);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
|
-
log(...params) {
|
|
28
|
-
if (this.config.devMode) {
|
|
29
|
-
console.log(params);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
|
-
warn(...params) {
|
|
34
|
-
console.warn(params);
|
|
35
|
-
if (!this.config.devMode) {
|
|
36
|
-
this.config.rollbar?.warn(params);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
Log
|
|
42
|
-
};
|
|
43
1
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/log",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.66",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"log",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"!**/*.test.*"
|
|
48
48
|
],
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@xylabs/ts-scripts-yarn3": "~7.3.
|
|
51
|
-
"@xylabs/tsconfig-dom": "~7.3.
|
|
50
|
+
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
51
|
+
"@xylabs/tsconfig-dom": "~7.3.2",
|
|
52
52
|
"rollbar": "~2.26.5",
|
|
53
53
|
"typescript": "~5.9.3",
|
|
54
|
-
"vitest": "~4.0.
|
|
54
|
+
"vitest": "~4.0.18"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"rollbar": "~2"
|
package/src/index.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
// eslint-disable-next-line unicorn/require-module-specifiers
|
|
2
|
+
export {}
|
package/dist/neutral/Log.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { LogConfig } from './model.ts';
|
|
2
|
-
/** @deprecated use @xylabs/logger instead */
|
|
3
|
-
export declare class Log {
|
|
4
|
-
protected config: LogConfig;
|
|
5
|
-
constructor(config: LogConfig);
|
|
6
|
-
debug(...params: any[]): void;
|
|
7
|
-
error(...params: any[]): void;
|
|
8
|
-
info(...params: any[]): void;
|
|
9
|
-
log(...params: any[]): void;
|
|
10
|
-
warn(...params: any[]): void;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Log.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../src/Log.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,6CAA6C;AAC7C,qBAAa,GAAG;IACd,SAAS,CAAC,MAAM,EAAE,SAAS,CAAA;gBAEf,MAAM,EAAE,SAAS;IAK7B,KAAK,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;IAOtB,KAAK,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;IAQtB,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;IAOrB,GAAG,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;IAOpB,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CAMtB"}
|
package/dist/neutral/model.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAElC,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
|
package/src/Log.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import type { LogConfig } from './model.ts'
|
|
3
|
-
|
|
4
|
-
/** @deprecated use @xylabs/logger instead */
|
|
5
|
-
export class Log {
|
|
6
|
-
protected config: LogConfig
|
|
7
|
-
|
|
8
|
-
constructor(config: LogConfig) {
|
|
9
|
-
this.config = config
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
|
-
debug(...params: any[]) {
|
|
14
|
-
if (this.config.devMode) {
|
|
15
|
-
console.debug(params)
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
|
-
error(...params: any[]) {
|
|
21
|
-
console.error(params)
|
|
22
|
-
if (!this.config.devMode) {
|
|
23
|
-
this.config.rollbar?.error(params)
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
-
info(...params: any[]) {
|
|
29
|
-
if (this.config.devMode) {
|
|
30
|
-
console.info(params)
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
|
-
log(...params: any[]) {
|
|
36
|
-
if (this.config.devMode) {
|
|
37
|
-
console.log(params)
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
42
|
-
warn(...params: any[]) {
|
|
43
|
-
console.warn(params)
|
|
44
|
-
if (!this.config.devMode) {
|
|
45
|
-
this.config.rollbar?.warn(params)
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|