@xylabs/logger 5.0.94 → 5.0.96

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.
Files changed (2) hide show
  1. package/README.md +327 -173
  2. package/package.json +9 -13
package/README.md CHANGED
@@ -1,68 +1,52 @@
1
1
  # @xylabs/logger
2
2
 
3
- [![logo][]](https://xylabs.com)
3
+ [![npm][npm-badge]][npm-link]
4
+ [![license][license-badge]][license-link]
4
5
 
5
- [![main-build][]][main-build-link]
6
- [![npm-badge][]][npm-link]
7
- [![npm-downloads-badge][]][npm-link]
8
- [![jsdelivr-badge][]][jsdelivr-link]
9
- [![npm-license-badge][]](LICENSE)
10
- [![codacy-badge][]][codacy-link]
11
- [![codeclimate-badge][]][codeclimate-link]
12
- [![snyk-badge][]][snyk-link]
13
- [![socket-badge][]][socket-link]
6
+ > XYLabs Logger Library
14
7
 
8
+ ## Install
15
9
 
16
- XYLabs Logger Library
17
-
10
+ Using npm:
18
11
 
12
+ ```sh
13
+ npm install {{name}}
14
+ ```
19
15
 
20
- ## Reference
16
+ Using yarn:
21
17
 
22
- **@xylabs/logger**
18
+ ```sh
19
+ yarn add {{name}}
20
+ ```
23
21
 
24
- ***
22
+ Using pnpm:
25
23
 
26
- ## Classes
24
+ ```sh
25
+ pnpm add {{name}}
26
+ ```
27
27
 
28
- | Class | Description |
29
- | ------ | ------ |
30
- | [ConsoleLogger](#classes/ConsoleLogger) | A LevelLogger that delegates to the global `console` object. |
31
- | [IdLogger](#classes/IdLogger) | A logger wrapper that prefixes every log message with a bracketed identifier. Useful for distinguishing log output from different components or instances. |
32
- | [LevelLogger](#classes/LevelLogger) | A logger that filters messages based on a configured log level. Methods for levels above the configured threshold return a no-op function. |
33
- | [SilentLogger](#classes/SilentLogger) | A logger that does not log anything. This is useful when you want to disable logging like when running unit tests or in silent mode. It implements the `Logger` interface but all methods are no-op functions. |
28
+ Using bun:
34
29
 
35
- ## Interfaces
30
+ ```sh
31
+ bun add {{name}}
32
+ ```
36
33
 
37
- | Interface | Description |
38
- | ------ | ------ |
39
- | [Logger](#interfaces/Logger) | Interface to handle overlap between Winston & `console` with as much congruency as possible. |
40
34
 
41
- ## Type Aliases
35
+ ## License
42
36
 
43
- | Type Alias | Description |
44
- | ------ | ------ |
45
- | [LogFunction](#type-aliases/LogFunction) | A generic logging function that accepts any number of arguments. |
46
- | [LogLevelKey](#type-aliases/LogLevelKey) | String key for a log level (e.g. 'error', 'warn', 'info'). |
47
- | [LogVerbosity](#type-aliases/LogVerbosity) | Alias for LogLevelKey, representing the verbosity setting as a string. |
48
- | [LogLevelValue](#type-aliases/LogLevelValue) | Numeric value of a log level (1 through 6). |
37
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
49
38
 
50
- ## Variables
39
+ ## Reference
51
40
 
52
- | Variable | Description |
53
- | ------ | ------ |
54
- | [LogLevel](#variables/LogLevel) | Numeric log level values, from least verbose (error=1) to most verbose (trace=6). |
41
+ ### packages
55
42
 
56
- ## Functions
43
+ ### logger
57
44
 
58
- | Function | Description |
59
- | ------ | ------ |
60
- | [NoOpLogFunction](#functions/NoOpLogFunction) | A log function that silently discards all arguments. |
61
- | [getFunctionName](#functions/getFunctionName) | Retrieves the name of the calling function by inspecting the stack trace. |
45
+ ### .temp-typedoc
62
46
 
63
- ### classes
47
+ ### classes
64
48
 
65
- ### <a id="ConsoleLogger"></a>ConsoleLogger
49
+ ### <a id="ConsoleLogger"></a>ConsoleLogger
66
50
 
67
51
  [**@xylabs/logger**](#../README)
68
52
 
@@ -79,14 +63,14 @@ A LevelLogger that delegates to the global `console` object.
79
63
  ### Constructor
80
64
 
81
65
  ```ts
82
- new ConsoleLogger(level?: LogLevelValue): ConsoleLogger;
66
+ new ConsoleLogger(level?): ConsoleLogger;
83
67
  ```
84
68
 
85
69
  ### Parameters
86
70
 
87
- | Parameter | Type | Default value |
88
- | ------ | ------ | ------ |
89
- | `level` | [`LogLevelValue`](#../type-aliases/LogLevelValue) | `LogLevel.warn` |
71
+ #### level?
72
+
73
+ [`LogLevelValue`](#../type-aliases/LogLevelValue) = `LogLevel.warn`
90
74
 
91
75
  ### Returns
92
76
 
@@ -98,10 +82,27 @@ new ConsoleLogger(level?: LogLevelValue): ConsoleLogger;
98
82
 
99
83
  ## Properties
100
84
 
101
- | Property | Modifier | Type | Inherited from |
102
- | ------ | ------ | ------ | ------ |
103
- | <a id="level"></a> `level` | `readonly` | [`LogLevelValue`](#../type-aliases/LogLevelValue) | [`LevelLogger`](#LevelLogger).[`level`](LevelLogger.md#level) |
104
- | <a id="logger"></a> `logger` | `readonly` | [`Logger`](#../interfaces/Logger) | [`LevelLogger`](#LevelLogger).[`logger`](LevelLogger.md#logger) |
85
+ ### level
86
+
87
+ ```ts
88
+ readonly level: LogLevelValue;
89
+ ```
90
+
91
+ ### Inherited from
92
+
93
+ [`LevelLogger`](#LevelLogger).[`level`](LevelLogger.md#level)
94
+
95
+ ***
96
+
97
+ ### logger
98
+
99
+ ```ts
100
+ readonly logger: Logger;
101
+ ```
102
+
103
+ ### Inherited from
104
+
105
+ [`LevelLogger`](#LevelLogger).[`logger`](LevelLogger.md#logger)
105
106
 
106
107
  ## Accessors
107
108
 
@@ -211,7 +212,7 @@ get warn(): LogFunction;
211
212
 
212
213
  [`LevelLogger`](#LevelLogger).[`warn`](LevelLogger.md#warn)
213
214
 
214
- ### <a id="IdLogger"></a>IdLogger
215
+ ### <a id="IdLogger"></a>IdLogger
215
216
 
216
217
  [**@xylabs/logger**](#../README)
217
218
 
@@ -229,15 +230,18 @@ Useful for distinguishing log output from different components or instances.
229
230
  ### Constructor
230
231
 
231
232
  ```ts
232
- new IdLogger(logger: Logger, id?: () => string): IdLogger;
233
+ new IdLogger(logger, id?): IdLogger;
233
234
  ```
234
235
 
235
236
  ### Parameters
236
237
 
237
- | Parameter | Type |
238
- | ------ | ------ |
239
- | `logger` | [`Logger`](#../interfaces/Logger) |
240
- | `id?` | () => `string` |
238
+ #### logger
239
+
240
+ [`Logger`](#../interfaces/Logger)
241
+
242
+ #### id?
243
+
244
+ () => `string`
241
245
 
242
246
  ### Returns
243
247
 
@@ -250,14 +254,14 @@ new IdLogger(logger: Logger, id?: () => string): IdLogger;
250
254
  ### Set Signature
251
255
 
252
256
  ```ts
253
- set id(id: string): void;
257
+ set id(id): void;
254
258
  ```
255
259
 
256
260
  #### Parameters
257
261
 
258
- | Parameter | Type |
259
- | ------ | ------ |
260
- | `id` | `string` |
262
+ ##### id
263
+
264
+ `string`
261
265
 
262
266
  #### Returns
263
267
 
@@ -268,14 +272,14 @@ set id(id: string): void;
268
272
  ### debug()
269
273
 
270
274
  ```ts
271
- debug(...data: unknown[]): void;
275
+ debug(...data): void;
272
276
  ```
273
277
 
274
278
  ### Parameters
275
279
 
276
- | Parameter | Type |
277
- | ------ | ------ |
278
- | ...`data` | `unknown`[] |
280
+ #### data
281
+
282
+ ...`unknown`[]
279
283
 
280
284
  ### Returns
281
285
 
@@ -292,14 +296,14 @@ Logger.debug
292
296
  ### error()
293
297
 
294
298
  ```ts
295
- error(...data: unknown[]): void;
299
+ error(...data): void;
296
300
  ```
297
301
 
298
302
  ### Parameters
299
303
 
300
- | Parameter | Type |
301
- | ------ | ------ |
302
- | ...`data` | `unknown`[] |
304
+ #### data
305
+
306
+ ...`unknown`[]
303
307
 
304
308
  ### Returns
305
309
 
@@ -316,14 +320,14 @@ Logger.error
316
320
  ### info()
317
321
 
318
322
  ```ts
319
- info(...data: unknown[]): void;
323
+ info(...data): void;
320
324
  ```
321
325
 
322
326
  ### Parameters
323
327
 
324
- | Parameter | Type |
325
- | ------ | ------ |
326
- | ...`data` | `unknown`[] |
328
+ #### data
329
+
330
+ ...`unknown`[]
327
331
 
328
332
  ### Returns
329
333
 
@@ -340,14 +344,14 @@ Logger.info
340
344
  ### log()
341
345
 
342
346
  ```ts
343
- log(...data: unknown[]): void;
347
+ log(...data): void;
344
348
  ```
345
349
 
346
350
  ### Parameters
347
351
 
348
- | Parameter | Type |
349
- | ------ | ------ |
350
- | ...`data` | `unknown`[] |
352
+ #### data
353
+
354
+ ...`unknown`[]
351
355
 
352
356
  ### Returns
353
357
 
@@ -364,14 +368,14 @@ Logger.log
364
368
  ### trace()
365
369
 
366
370
  ```ts
367
- trace(...data: unknown[]): void;
371
+ trace(...data): void;
368
372
  ```
369
373
 
370
374
  ### Parameters
371
375
 
372
- | Parameter | Type |
373
- | ------ | ------ |
374
- | ...`data` | `unknown`[] |
376
+ #### data
377
+
378
+ ...`unknown`[]
375
379
 
376
380
  ### Returns
377
381
 
@@ -388,14 +392,14 @@ Logger.trace
388
392
  ### warn()
389
393
 
390
394
  ```ts
391
- warn(...data: unknown[]): void;
395
+ warn(...data): void;
392
396
  ```
393
397
 
394
398
  ### Parameters
395
399
 
396
- | Parameter | Type |
397
- | ------ | ------ |
398
- | ...`data` | `unknown`[] |
400
+ #### data
401
+
402
+ ...`unknown`[]
399
403
 
400
404
  ### Returns
401
405
 
@@ -407,7 +411,7 @@ warn(...data: unknown[]): void;
407
411
  Logger.warn
408
412
  ```
409
413
 
410
- ### <a id="LevelLogger"></a>LevelLogger
414
+ ### <a id="LevelLogger"></a>LevelLogger
411
415
 
412
416
  [**@xylabs/logger**](#../README)
413
417
 
@@ -429,15 +433,18 @@ Methods for levels above the configured threshold return a no-op function.
429
433
  ### Constructor
430
434
 
431
435
  ```ts
432
- new LevelLogger(logger: Logger, level?: LogLevelValue): LevelLogger;
436
+ new LevelLogger(logger, level?): LevelLogger;
433
437
  ```
434
438
 
435
439
  ### Parameters
436
440
 
437
- | Parameter | Type | Default value |
438
- | ------ | ------ | ------ |
439
- | `logger` | [`Logger`](#../interfaces/Logger) | `undefined` |
440
- | `level` | [`LogLevelValue`](#../type-aliases/LogLevelValue) | `LogLevel.warn` |
441
+ #### logger
442
+
443
+ [`Logger`](#../interfaces/Logger)
444
+
445
+ #### level?
446
+
447
+ [`LogLevelValue`](#../type-aliases/LogLevelValue) = `LogLevel.warn`
441
448
 
442
449
  ### Returns
443
450
 
@@ -445,10 +452,19 @@ new LevelLogger(logger: Logger, level?: LogLevelValue): LevelLogger;
445
452
 
446
453
  ## Properties
447
454
 
448
- | Property | Modifier | Type |
449
- | ------ | ------ | ------ |
450
- | <a id="level"></a> `level` | `readonly` | [`LogLevelValue`](#../type-aliases/LogLevelValue) |
451
- | <a id="logger"></a> `logger` | `readonly` | [`Logger`](#../interfaces/Logger) |
455
+ ### level
456
+
457
+ ```ts
458
+ readonly level: LogLevelValue;
459
+ ```
460
+
461
+ ***
462
+
463
+ ### logger
464
+
465
+ ```ts
466
+ readonly logger: Logger;
467
+ ```
452
468
 
453
469
  ## Accessors
454
470
 
@@ -558,7 +574,7 @@ get warn(): LogFunction;
558
574
 
559
575
  [`Logger`](#../interfaces/Logger).[`warn`](../interfaces/Logger.md#warn)
560
576
 
561
- ### <a id="SilentLogger"></a>SilentLogger
577
+ ### <a id="SilentLogger"></a>SilentLogger
562
578
 
563
579
  [**@xylabs/logger**](#../README)
564
580
 
@@ -588,56 +604,191 @@ new SilentLogger(): SilentLogger;
588
604
 
589
605
  ## Properties
590
606
 
591
- | Property | Modifier | Type | Default value |
592
- | ------ | ------ | ------ | ------ |
593
- | <a id="debug"></a> `debug` | `readonly` | (...`_data`: `unknown`[]) => `undefined` | `NoOpLogFunction` |
594
- | <a id="error"></a> `error` | `readonly` | (...`_data`: `unknown`[]) => `undefined` | `NoOpLogFunction` |
595
- | <a id="info"></a> `info` | `readonly` | (...`_data`: `unknown`[]) => `undefined` | `NoOpLogFunction` |
596
- | <a id="log"></a> `log` | `readonly` | (...`_data`: `unknown`[]) => `undefined` | `NoOpLogFunction` |
597
- | <a id="trace"></a> `trace` | `readonly` | (...`_data`: `unknown`[]) => `undefined` | `NoOpLogFunction` |
598
- | <a id="warn"></a> `warn` | `readonly` | (...`_data`: `unknown`[]) => `undefined` | `NoOpLogFunction` |
607
+ ### debug
608
+
609
+ ```ts
610
+ readonly debug: (..._data) => undefined = NoOpLogFunction;
611
+ ```
612
+
613
+ A log function that silently discards all arguments.
614
+
615
+ ### Parameters
616
+
617
+ #### \_data
618
+
619
+ ...`unknown`[]
620
+
621
+ ### Returns
622
+
623
+ `undefined`
624
+
625
+ ### Implementation of
626
+
627
+ [`Logger`](#../interfaces/Logger).[`debug`](../interfaces/Logger.md#debug)
628
+
629
+ ***
630
+
631
+ ### error
632
+
633
+ ```ts
634
+ readonly error: (..._data) => undefined = NoOpLogFunction;
635
+ ```
636
+
637
+ A log function that silently discards all arguments.
638
+
639
+ ### Parameters
640
+
641
+ #### \_data
642
+
643
+ ...`unknown`[]
644
+
645
+ ### Returns
646
+
647
+ `undefined`
648
+
649
+ ### Implementation of
650
+
651
+ [`Logger`](#../interfaces/Logger).[`error`](../interfaces/Logger.md#error)
652
+
653
+ ***
654
+
655
+ ### info
656
+
657
+ ```ts
658
+ readonly info: (..._data) => undefined = NoOpLogFunction;
659
+ ```
660
+
661
+ A log function that silently discards all arguments.
662
+
663
+ ### Parameters
664
+
665
+ #### \_data
666
+
667
+ ...`unknown`[]
668
+
669
+ ### Returns
670
+
671
+ `undefined`
672
+
673
+ ### Implementation of
674
+
675
+ [`Logger`](#../interfaces/Logger).[`info`](../interfaces/Logger.md#info)
676
+
677
+ ***
678
+
679
+ ### log
680
+
681
+ ```ts
682
+ readonly log: (..._data) => undefined = NoOpLogFunction;
683
+ ```
684
+
685
+ A log function that silently discards all arguments.
686
+
687
+ ### Parameters
688
+
689
+ #### \_data
690
+
691
+ ...`unknown`[]
692
+
693
+ ### Returns
694
+
695
+ `undefined`
696
+
697
+ ### Implementation of
698
+
699
+ [`Logger`](#../interfaces/Logger).[`log`](../interfaces/Logger.md#log)
700
+
701
+ ***
702
+
703
+ ### trace
704
+
705
+ ```ts
706
+ readonly trace: (..._data) => undefined = NoOpLogFunction;
707
+ ```
708
+
709
+ A log function that silently discards all arguments.
710
+
711
+ ### Parameters
712
+
713
+ #### \_data
714
+
715
+ ...`unknown`[]
599
716
 
600
- ### functions
717
+ ### Returns
718
+
719
+ `undefined`
720
+
721
+ ### Implementation of
722
+
723
+ [`Logger`](#../interfaces/Logger).[`trace`](../interfaces/Logger.md#trace)
724
+
725
+ ***
726
+
727
+ ### warn
728
+
729
+ ```ts
730
+ readonly warn: (..._data) => undefined = NoOpLogFunction;
731
+ ```
732
+
733
+ A log function that silently discards all arguments.
734
+
735
+ ### Parameters
736
+
737
+ #### \_data
738
+
739
+ ...`unknown`[]
740
+
741
+ ### Returns
742
+
743
+ `undefined`
744
+
745
+ ### Implementation of
746
+
747
+ [`Logger`](#../interfaces/Logger).[`warn`](../interfaces/Logger.md#warn)
601
748
 
602
- ### <a id="NoOpLogFunction"></a>NoOpLogFunction
749
+ ### functions
750
+
751
+ ### <a id="NoOpLogFunction"></a>NoOpLogFunction
603
752
 
604
753
  [**@xylabs/logger**](#../README)
605
754
 
606
755
  ***
607
756
 
608
757
  ```ts
609
- function NoOpLogFunction(..._data: unknown[]): undefined;
758
+ function NoOpLogFunction(..._data): undefined;
610
759
  ```
611
760
 
612
761
  A log function that silently discards all arguments.
613
762
 
614
763
  ## Parameters
615
764
 
616
- | Parameter | Type |
617
- | ------ | ------ |
618
- | ...`_data` | `unknown`[] |
765
+ ### \_data
766
+
767
+ ...`unknown`[]
619
768
 
620
769
  ## Returns
621
770
 
622
771
  `undefined`
623
772
 
624
- ### <a id="getFunctionName"></a>getFunctionName
773
+ ### <a id="getFunctionName"></a>getFunctionName
625
774
 
626
775
  [**@xylabs/logger**](#../README)
627
776
 
628
777
  ***
629
778
 
630
779
  ```ts
631
- function getFunctionName(depth?: number): string;
780
+ function getFunctionName(depth?): string;
632
781
  ```
633
782
 
634
783
  Retrieves the name of the calling function by inspecting the stack trace.
635
784
 
636
785
  ## Parameters
637
786
 
638
- | Parameter | Type | Default value | Description |
639
- | ------ | ------ | ------ | ------ |
640
- | `depth` | `number` | `2` | The stack frame depth to inspect (default: 2, the caller's caller). |
787
+ ### depth?
788
+
789
+ `number` = `2`
790
+
791
+ The stack frame depth to inspect (default: 2, the caller's caller).
641
792
 
642
793
  ## Returns
643
794
 
@@ -645,9 +796,9 @@ Retrieves the name of the calling function by inspecting the stack trace.
645
796
 
646
797
  The function name, or '<unknown>' if it cannot be determined.
647
798
 
648
- ### interfaces
799
+ ### interfaces
649
800
 
650
- ### <a id="Logger"></a>Logger
801
+ ### <a id="Logger"></a>Logger
651
802
 
652
803
  [**@xylabs/logger**](#../README)
653
804
 
@@ -658,40 +809,77 @@ Interface to handle overlap between Winston &
658
809
 
659
810
  ## Properties
660
811
 
661
- | Property | Type |
662
- | ------ | ------ |
663
- | <a id="debug"></a> `debug` | [`LogFunction`](#../type-aliases/LogFunction) |
664
- | <a id="error"></a> `error` | [`LogFunction`](#../type-aliases/LogFunction) |
665
- | <a id="info"></a> `info` | [`LogFunction`](#../type-aliases/LogFunction) |
666
- | <a id="log"></a> `log` | [`LogFunction`](#../type-aliases/LogFunction) |
667
- | <a id="trace"></a> `trace` | [`LogFunction`](#../type-aliases/LogFunction) |
668
- | <a id="warn"></a> `warn` | [`LogFunction`](#../type-aliases/LogFunction) |
812
+ ### debug
813
+
814
+ ```ts
815
+ debug: LogFunction;
816
+ ```
817
+
818
+ ***
819
+
820
+ ### error
821
+
822
+ ```ts
823
+ error: LogFunction;
824
+ ```
825
+
826
+ ***
827
+
828
+ ### info
829
+
830
+ ```ts
831
+ info: LogFunction;
832
+ ```
833
+
834
+ ***
835
+
836
+ ### log
837
+
838
+ ```ts
839
+ log: LogFunction;
840
+ ```
841
+
842
+ ***
843
+
844
+ ### trace
845
+
846
+ ```ts
847
+ trace: LogFunction;
848
+ ```
849
+
850
+ ***
851
+
852
+ ### warn
853
+
854
+ ```ts
855
+ warn: LogFunction;
856
+ ```
669
857
 
670
- ### type-aliases
858
+ ### type-aliases
671
859
 
672
- ### <a id="LogFunction"></a>LogFunction
860
+ ### <a id="LogFunction"></a>LogFunction
673
861
 
674
862
  [**@xylabs/logger**](#../README)
675
863
 
676
864
  ***
677
865
 
678
866
  ```ts
679
- type LogFunction = (...data: unknown[]) => void;
867
+ type LogFunction = (...data) => void;
680
868
  ```
681
869
 
682
870
  A generic logging function that accepts any number of arguments.
683
871
 
684
872
  ## Parameters
685
873
 
686
- | Parameter | Type |
687
- | ------ | ------ |
688
- | ...`data` | `unknown`[] |
874
+ ### data
875
+
876
+ ...`unknown`[]
689
877
 
690
878
  ## Returns
691
879
 
692
880
  `void`
693
881
 
694
- ### <a id="LogLevelKey"></a>LogLevelKey
882
+ ### <a id="LogLevelKey"></a>LogLevelKey
695
883
 
696
884
  [**@xylabs/logger**](#../README)
697
885
 
@@ -703,7 +891,7 @@ type LogLevelKey = EnumKey<typeof LogLevel>;
703
891
 
704
892
  String key for a log level (e.g. 'error', 'warn', 'info').
705
893
 
706
- ### <a id="LogLevelValue"></a>LogLevelValue
894
+ ### <a id="LogLevelValue"></a>LogLevelValue
707
895
 
708
896
  [**@xylabs/logger**](#../README)
709
897
 
@@ -715,7 +903,7 @@ type LogLevelValue = EnumValue<typeof LogLevel>;
715
903
 
716
904
  Numeric value of a log level (1 through 6).
717
905
 
718
- ### <a id="LogVerbosity"></a>LogVerbosity
906
+ ### <a id="LogVerbosity"></a>LogVerbosity
719
907
 
720
908
  [**@xylabs/logger**](#../README)
721
909
 
@@ -727,9 +915,9 @@ type LogVerbosity = LogLevelKey;
727
915
 
728
916
  Alias for LogLevelKey, representing the verbosity setting as a string.
729
917
 
730
- ### variables
918
+ ### variables
731
919
 
732
- ### <a id="LogLevel"></a>LogLevel
920
+ ### <a id="LogLevel"></a>LogLevel
733
921
 
734
922
  [**@xylabs/logger**](#../README)
735
923
 
@@ -749,41 +937,7 @@ const LogLevel: Enum<{
749
937
  Numeric log level values, from least verbose (error=1) to most verbose (trace=6).
750
938
 
751
939
 
752
- Part of [sdk-js](https://www.npmjs.com/package/@xyo-network/sdk-js)
753
-
754
- ## Maintainers
755
-
756
- - [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com))
757
- - [Matt Jones](https://github.com/jonesmac)
758
- - [Joel Carter](https://github.com/JoelBCarter)
759
- - [Jordan Trouw](https://github.com/jordantrouw)
760
-
761
- ## License
762
-
763
- > See the [LICENSE](LICENSE) file for license details
764
-
765
- ## Credits
766
-
767
- [Made with 🔥 and ❄️ by XYLabs](https://xylabs.com)
768
-
769
- [logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg
770
-
771
- [main-build]: https://github.com/xylabs/sdk-js/actions/workflows/build.yml/badge.svg
772
- [main-build-link]: https://github.com/xylabs/sdk-js/actions/workflows/build.yml
773
940
  [npm-badge]: https://img.shields.io/npm/v/@xylabs/logger.svg
774
941
  [npm-link]: https://www.npmjs.com/package/@xylabs/logger
775
- [codacy-badge]: https://app.codacy.com/project/badge/Grade/c8e15e14f37741c18cfb47ac7245c698
776
- [codacy-link]: https://www.codacy.com/gh/xylabs/sdk-js/dashboard?utm_source=github.com&utm_medium=referral&utm_content=xylabs/sdk-js&utm_campaign=Badge_Grade
777
- [codeclimate-badge]: https://api.codeclimate.com/v1/badges/c5eb068f806f0b047ea7/maintainability
778
- [codeclimate-link]: https://codeclimate.com/github/xylabs/sdk-js/maintainability
779
- [snyk-badge]: https://snyk.io/test/github/xylabs/sdk-js/badge.svg?targetFile=package.json
780
- [snyk-link]: https://snyk.io/test/github/xylabs/sdk-js?targetFile=package.json
781
-
782
- [npm-downloads-badge]: https://img.shields.io/npm/dw/@xylabs/logger
783
- [npm-license-badge]: https://img.shields.io/npm/l/@xylabs/logger
784
-
785
- [jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xylabs/logger/badge
786
- [jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xylabs/logger
787
-
788
- [socket-badge]: https://socket.dev/api/badge/npm/package/@xylabs/logger
789
- [socket-link]: https://socket.dev/npm/package/@xylabs/logger
942
+ [license-badge]: https://img.shields.io/npm/l/@xylabs/logger.svg
943
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/logger",
3
- "version": "5.0.94",
3
+ "version": "5.0.96",
4
4
  "description": "XYLabs Logger Library",
5
5
  "keywords": [
6
6
  "logger",
@@ -29,12 +29,10 @@
29
29
  "exports": {
30
30
  ".": {
31
31
  "types": "./dist/neutral/index.d.ts",
32
- "import": "./dist/neutral/index.mjs",
33
32
  "default": "./dist/neutral/index.mjs"
34
33
  },
35
34
  "./package.json": "./package.json"
36
35
  },
37
- "types": "./dist/neutral/index.d.ts",
38
36
  "files": [
39
37
  "dist",
40
38
  "!**/*.bench.*",
@@ -43,20 +41,18 @@
43
41
  "README.md"
44
42
  ],
45
43
  "dependencies": {
46
- "@xylabs/enum": "~5.0.94",
47
- "@xylabs/typeof": "~5.0.94",
48
- "@xylabs/error": "~5.0.94"
44
+ "@xylabs/enum": "~5.0.96",
45
+ "@xylabs/error": "~5.0.96",
46
+ "@xylabs/typeof": "~5.0.96"
49
47
  },
50
48
  "devDependencies": {
51
- "@types/node": "~25.5.2",
52
- "@xylabs/ts-scripts-common": "~7.7.3",
53
- "@xylabs/ts-scripts-pnpm": "~7.7.3",
54
- "@xylabs/tsconfig": "~7.7.3",
55
- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0",
49
+ "@types/node": "~25.6.0",
50
+ "@xylabs/toolchain": "~7.10.4",
51
+ "@xylabs/tsconfig": "~7.10.4",
56
52
  "esbuild": "^0.28.0",
57
53
  "typescript": "^5",
58
- "vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
59
- "vitest": "^4.1.2"
54
+ "vite": "^8.0.8",
55
+ "vitest": "^4.1.4"
60
56
  },
61
57
  "engines": {
62
58
  "node": ">=18"