@xylabs/log 2.9.3 → 2.10.1

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/docs.json DELETED
@@ -1,707 +0,0 @@
1
- {
2
- "id": 0,
3
- "name": "@xylabs/log",
4
- "variant": "project",
5
- "kind": 1,
6
- "flags": {},
7
- "children": [
8
- {
9
- "id": 6,
10
- "name": "Log",
11
- "variant": "declaration",
12
- "kind": 128,
13
- "flags": {},
14
- "children": [
15
- {
16
- "id": 7,
17
- "name": "constructor",
18
- "variant": "declaration",
19
- "kind": 512,
20
- "flags": {},
21
- "sources": [
22
- {
23
- "fileName": "Log.ts",
24
- "line": 14,
25
- "character": 2,
26
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L14"
27
- }
28
- ],
29
- "signatures": [
30
- {
31
- "id": 8,
32
- "name": "new Log",
33
- "variant": "signature",
34
- "kind": 16384,
35
- "flags": {},
36
- "sources": [
37
- {
38
- "fileName": "Log.ts",
39
- "line": 14,
40
- "character": 2,
41
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L14"
42
- }
43
- ],
44
- "parameters": [
45
- {
46
- "id": 9,
47
- "name": "config",
48
- "variant": "param",
49
- "kind": 32768,
50
- "flags": {},
51
- "type": {
52
- "type": "reference",
53
- "target": 1,
54
- "name": "LogConfig",
55
- "package": "@xylabs/log"
56
- }
57
- }
58
- ],
59
- "type": {
60
- "type": "reference",
61
- "target": 6,
62
- "name": "Log",
63
- "package": "@xylabs/log"
64
- }
65
- }
66
- ]
67
- },
68
- {
69
- "id": 10,
70
- "name": "devMode",
71
- "variant": "declaration",
72
- "kind": 1024,
73
- "flags": {
74
- "isPrivate": true,
75
- "isOptional": true
76
- },
77
- "sources": [
78
- {
79
- "fileName": "Log.ts",
80
- "line": 11,
81
- "character": 10,
82
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L11"
83
- }
84
- ],
85
- "type": {
86
- "type": "intrinsic",
87
- "name": "boolean"
88
- }
89
- },
90
- {
91
- "id": 11,
92
- "name": "rollbar",
93
- "variant": "declaration",
94
- "kind": 1024,
95
- "flags": {
96
- "isPrivate": true,
97
- "isOptional": true
98
- },
99
- "sources": [
100
- {
101
- "fileName": "Log.ts",
102
- "line": 12,
103
- "character": 10,
104
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L12"
105
- }
106
- ],
107
- "type": {
108
- "type": "reference",
109
- "target": {
110
- "sourceFileName": "../../node_modules/rollbar/index.d.ts",
111
- "qualifiedName": "Rollbar"
112
- },
113
- "name": "Rollbar",
114
- "package": "rollbar"
115
- }
116
- },
117
- {
118
- "id": 12,
119
- "name": "debug",
120
- "variant": "declaration",
121
- "kind": 2048,
122
- "flags": {
123
- "isPublic": true
124
- },
125
- "sources": [
126
- {
127
- "fileName": "Log.ts",
128
- "line": 43,
129
- "character": 9,
130
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L43"
131
- }
132
- ],
133
- "signatures": [
134
- {
135
- "id": 13,
136
- "name": "debug",
137
- "variant": "signature",
138
- "kind": 4096,
139
- "flags": {},
140
- "sources": [
141
- {
142
- "fileName": "Log.ts",
143
- "line": 43,
144
- "character": 2,
145
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L43"
146
- }
147
- ],
148
- "parameters": [
149
- {
150
- "id": 14,
151
- "name": "params",
152
- "variant": "param",
153
- "kind": 32768,
154
- "flags": {
155
- "isRest": true
156
- },
157
- "type": {
158
- "type": "array",
159
- "elementType": {
160
- "type": "intrinsic",
161
- "name": "any"
162
- }
163
- }
164
- }
165
- ],
166
- "type": {
167
- "type": "intrinsic",
168
- "name": "void"
169
- }
170
- }
171
- ]
172
- },
173
- {
174
- "id": 15,
175
- "name": "error",
176
- "variant": "declaration",
177
- "kind": 2048,
178
- "flags": {
179
- "isPublic": true
180
- },
181
- "sources": [
182
- {
183
- "fileName": "Log.ts",
184
- "line": 50,
185
- "character": 9,
186
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L50"
187
- }
188
- ],
189
- "signatures": [
190
- {
191
- "id": 16,
192
- "name": "error",
193
- "variant": "signature",
194
- "kind": 4096,
195
- "flags": {},
196
- "sources": [
197
- {
198
- "fileName": "Log.ts",
199
- "line": 50,
200
- "character": 2,
201
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L50"
202
- }
203
- ],
204
- "parameters": [
205
- {
206
- "id": 17,
207
- "name": "params",
208
- "variant": "param",
209
- "kind": 32768,
210
- "flags": {
211
- "isRest": true
212
- },
213
- "type": {
214
- "type": "array",
215
- "elementType": {
216
- "type": "intrinsic",
217
- "name": "any"
218
- }
219
- }
220
- }
221
- ],
222
- "type": {
223
- "type": "intrinsic",
224
- "name": "void"
225
- }
226
- }
227
- ]
228
- },
229
- {
230
- "id": 18,
231
- "name": "info",
232
- "variant": "declaration",
233
- "kind": 2048,
234
- "flags": {
235
- "isPublic": true
236
- },
237
- "sources": [
238
- {
239
- "fileName": "Log.ts",
240
- "line": 58,
241
- "character": 9,
242
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L58"
243
- }
244
- ],
245
- "signatures": [
246
- {
247
- "id": 19,
248
- "name": "info",
249
- "variant": "signature",
250
- "kind": 4096,
251
- "flags": {},
252
- "sources": [
253
- {
254
- "fileName": "Log.ts",
255
- "line": 58,
256
- "character": 2,
257
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L58"
258
- }
259
- ],
260
- "parameters": [
261
- {
262
- "id": 20,
263
- "name": "params",
264
- "variant": "param",
265
- "kind": 32768,
266
- "flags": {
267
- "isRest": true
268
- },
269
- "type": {
270
- "type": "array",
271
- "elementType": {
272
- "type": "intrinsic",
273
- "name": "any"
274
- }
275
- }
276
- }
277
- ],
278
- "type": {
279
- "type": "intrinsic",
280
- "name": "void"
281
- }
282
- }
283
- ]
284
- },
285
- {
286
- "id": 21,
287
- "name": "log",
288
- "variant": "declaration",
289
- "kind": 2048,
290
- "flags": {
291
- "isPublic": true
292
- },
293
- "sources": [
294
- {
295
- "fileName": "Log.ts",
296
- "line": 65,
297
- "character": 9,
298
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L65"
299
- }
300
- ],
301
- "signatures": [
302
- {
303
- "id": 22,
304
- "name": "log",
305
- "variant": "signature",
306
- "kind": 4096,
307
- "flags": {},
308
- "sources": [
309
- {
310
- "fileName": "Log.ts",
311
- "line": 65,
312
- "character": 2,
313
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L65"
314
- }
315
- ],
316
- "parameters": [
317
- {
318
- "id": 23,
319
- "name": "params",
320
- "variant": "param",
321
- "kind": 32768,
322
- "flags": {
323
- "isRest": true
324
- },
325
- "type": {
326
- "type": "array",
327
- "elementType": {
328
- "type": "intrinsic",
329
- "name": "any"
330
- }
331
- }
332
- }
333
- ],
334
- "type": {
335
- "type": "intrinsic",
336
- "name": "void"
337
- }
338
- }
339
- ]
340
- },
341
- {
342
- "id": 24,
343
- "name": "warn",
344
- "variant": "declaration",
345
- "kind": 2048,
346
- "flags": {
347
- "isPublic": true
348
- },
349
- "sources": [
350
- {
351
- "fileName": "Log.ts",
352
- "line": 72,
353
- "character": 9,
354
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L72"
355
- }
356
- ],
357
- "signatures": [
358
- {
359
- "id": 25,
360
- "name": "warn",
361
- "variant": "signature",
362
- "kind": 4096,
363
- "flags": {},
364
- "sources": [
365
- {
366
- "fileName": "Log.ts",
367
- "line": 72,
368
- "character": 2,
369
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L72"
370
- }
371
- ],
372
- "parameters": [
373
- {
374
- "id": 26,
375
- "name": "params",
376
- "variant": "param",
377
- "kind": 32768,
378
- "flags": {
379
- "isRest": true
380
- },
381
- "type": {
382
- "type": "array",
383
- "elementType": {
384
- "type": "intrinsic",
385
- "name": "any"
386
- }
387
- }
388
- }
389
- ],
390
- "type": {
391
- "type": "intrinsic",
392
- "name": "void"
393
- }
394
- }
395
- ]
396
- }
397
- ],
398
- "groups": [
399
- {
400
- "title": "Constructors",
401
- "children": [
402
- 7
403
- ]
404
- },
405
- {
406
- "title": "Properties",
407
- "children": [
408
- 10,
409
- 11
410
- ]
411
- },
412
- {
413
- "title": "Methods",
414
- "children": [
415
- 12,
416
- 15,
417
- 18,
418
- 21,
419
- 24
420
- ]
421
- }
422
- ],
423
- "sources": [
424
- {
425
- "fileName": "Log.ts",
426
- "line": 10,
427
- "character": 13,
428
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L10"
429
- }
430
- ]
431
- },
432
- {
433
- "id": 1,
434
- "name": "LogConfig",
435
- "variant": "declaration",
436
- "kind": 256,
437
- "flags": {},
438
- "children": [
439
- {
440
- "id": 2,
441
- "name": "commitHash",
442
- "variant": "declaration",
443
- "kind": 1024,
444
- "flags": {
445
- "isOptional": true
446
- },
447
- "sources": [
448
- {
449
- "fileName": "Log.ts",
450
- "line": 4,
451
- "character": 2,
452
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L4"
453
- }
454
- ],
455
- "type": {
456
- "type": "intrinsic",
457
- "name": "string"
458
- }
459
- },
460
- {
461
- "id": 3,
462
- "name": "devMode",
463
- "variant": "declaration",
464
- "kind": 1024,
465
- "flags": {
466
- "isOptional": true
467
- },
468
- "sources": [
469
- {
470
- "fileName": "Log.ts",
471
- "line": 5,
472
- "character": 2,
473
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L5"
474
- }
475
- ],
476
- "type": {
477
- "type": "intrinsic",
478
- "name": "boolean"
479
- }
480
- },
481
- {
482
- "id": 4,
483
- "name": "payload",
484
- "variant": "declaration",
485
- "kind": 1024,
486
- "flags": {
487
- "isOptional": true
488
- },
489
- "sources": [
490
- {
491
- "fileName": "Log.ts",
492
- "line": 6,
493
- "character": 2,
494
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L6"
495
- }
496
- ],
497
- "type": {
498
- "type": "reference",
499
- "target": {
500
- "sourceFileName": "../../node_modules/typescript/lib/lib.es5.d.ts",
501
- "qualifiedName": "Record"
502
- },
503
- "typeArguments": [
504
- {
505
- "type": "intrinsic",
506
- "name": "string"
507
- },
508
- {
509
- "type": "intrinsic",
510
- "name": "unknown"
511
- }
512
- ],
513
- "name": "Record",
514
- "package": "typescript"
515
- }
516
- },
517
- {
518
- "id": 5,
519
- "name": "rollbarToken",
520
- "variant": "declaration",
521
- "kind": 1024,
522
- "flags": {
523
- "isOptional": true
524
- },
525
- "sources": [
526
- {
527
- "fileName": "Log.ts",
528
- "line": 7,
529
- "character": 2,
530
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L7"
531
- }
532
- ],
533
- "type": {
534
- "type": "intrinsic",
535
- "name": "string"
536
- }
537
- }
538
- ],
539
- "groups": [
540
- {
541
- "title": "Properties",
542
- "children": [
543
- 2,
544
- 3,
545
- 4,
546
- 5
547
- ]
548
- }
549
- ],
550
- "sources": [
551
- {
552
- "fileName": "Log.ts",
553
- "line": 3,
554
- "character": 17,
555
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/log/src/Log.ts#L3"
556
- }
557
- ]
558
- }
559
- ],
560
- "groups": [
561
- {
562
- "title": "Classes",
563
- "children": [
564
- 6
565
- ]
566
- },
567
- {
568
- "title": "Interfaces",
569
- "children": [
570
- 1
571
- ]
572
- }
573
- ],
574
- "packageName": "@xylabs/log",
575
- "readme": [
576
- {
577
- "kind": "text",
578
- "text": "[![logo][]](https://xylabs.com)\n\n# @xylabs/sdk-js\n\n[![main-build][]][main-build-link]\n[![beta-build][]][beta-build-link]\n[![npm-badge][]][npm-link]\n[![bch-badge][]][bch-link]\n[![codacy-badge][]][codacy-link]\n[![codeclimate-badge][]][codeclimate-link]\n[![snyk-badge][]][snyk-link]\n\n## Table of Contents\n\n- [Description](#description)\n- [Install](#install)\n- [Scripts](#scripts)\n- [Maintainers](#maintainers)\n- [License](#license)\n- [Credits](#credits)\n\n## Description\n\nSDK for base code for Typescript and Javascript Libraries.\n\n## Install\n\nUsing npm:\n\n"
579
- },
580
- {
581
- "kind": "code",
582
- "text": "```sh\nnpm i --save @xylabs/sdk-js\n```"
583
- },
584
- {
585
- "kind": "text",
586
- "text": "\n\nUsing yarn:\n\n"
587
- },
588
- {
589
- "kind": "code",
590
- "text": "```sh\nyarn add @xylabs/sdk-js\n```"
591
- },
592
- {
593
- "kind": "text",
594
- "text": "\n\n## Scripts\n\nSee [ts-scripts](https://github.com/xylabs/ts-scripts/blob/main/README.md)\nfor list of shared scripts.\n\n## Maintainers\n\n- [Arie Trouw](https://github.com/arietrouw) (<https://arietrouw.com>)\n\n## License\n\nSee the [LICENSE](LICENSE) file for license details\n\n## Credits\n\n[Made with 🔥 and ❄️ by XY Labs](https://xylabs.com)\n\n[logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg\n[main-build]: https://github.com/xylabs/sdk-js/actions/workflows/build-main.yml/badge.svg\n[main-build-link]: https://github.com/xylabs/sdk-js/actions/workflows/build-main.yml\n[beta-build]: https://github.com/xylabs/sdk-js/actions/workflows/build-beta.yml/badge.svg\n[beta-build-link]: https://github.com/xylabs/sdk-js/actions/workflows/build-beta.yml\n[npm-badge]: https://img.shields.io/npm/v/@xylabs/sdk-js.svg\n[npm-link]: https://www.npmjs.com/package/@xylabs/sdk-js\n[bch-badge]: https://bettercodehub.com/edge/badge/xylabs/sdk-js?branch=main\n[bch-link]: https://bettercodehub.com/results/xylabs/sdk-js\n[codacy-badge]: https://app.codacy.com/project/badge/Grade/c8e15e14f37741c18cfb47ac7245c698\n[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\n[codeclimate-badge]: https://api.codeclimate.com/v1/badges/c5eb068f806f0b047ea7/maintainability\n[codeclimate-link]: https://codeclimate.com/github/xylabs/sdk-js/maintainability\n[snyk-badge]: https://snyk.io/test/github/xylabs/sdk-js/badge.svg?targetFile=package.json\n[snyk-link]: https://snyk.io/test/github/xylabs/sdk-js?targetFile=package.json"
595
- }
596
- ],
597
- "symbolIdMap": {
598
- "0": {
599
- "sourceFileName": "src/index.ts",
600
- "qualifiedName": ""
601
- },
602
- "1": {
603
- "sourceFileName": "src/Log.ts",
604
- "qualifiedName": "LogConfig"
605
- },
606
- "2": {
607
- "sourceFileName": "src/Log.ts",
608
- "qualifiedName": "LogConfig.commitHash"
609
- },
610
- "3": {
611
- "sourceFileName": "src/Log.ts",
612
- "qualifiedName": "LogConfig.devMode"
613
- },
614
- "4": {
615
- "sourceFileName": "src/Log.ts",
616
- "qualifiedName": "LogConfig.payload"
617
- },
618
- "5": {
619
- "sourceFileName": "src/Log.ts",
620
- "qualifiedName": "LogConfig.rollbarToken"
621
- },
622
- "6": {
623
- "sourceFileName": "src/Log.ts",
624
- "qualifiedName": "Log"
625
- },
626
- "7": {
627
- "sourceFileName": "src/Log.ts",
628
- "qualifiedName": "Log.__constructor"
629
- },
630
- "8": {
631
- "sourceFileName": "src/Log.ts",
632
- "qualifiedName": "Log"
633
- },
634
- "9": {
635
- "sourceFileName": "src/Log.ts",
636
- "qualifiedName": "config"
637
- },
638
- "10": {
639
- "sourceFileName": "src/Log.ts",
640
- "qualifiedName": "Log.devMode"
641
- },
642
- "11": {
643
- "sourceFileName": "src/Log.ts",
644
- "qualifiedName": "Log.rollbar"
645
- },
646
- "12": {
647
- "sourceFileName": "src/Log.ts",
648
- "qualifiedName": "Log.debug"
649
- },
650
- "13": {
651
- "sourceFileName": "src/Log.ts",
652
- "qualifiedName": "Log.debug"
653
- },
654
- "14": {
655
- "sourceFileName": "src/Log.ts",
656
- "qualifiedName": "params"
657
- },
658
- "15": {
659
- "sourceFileName": "src/Log.ts",
660
- "qualifiedName": "Log.error"
661
- },
662
- "16": {
663
- "sourceFileName": "src/Log.ts",
664
- "qualifiedName": "Log.error"
665
- },
666
- "17": {
667
- "sourceFileName": "src/Log.ts",
668
- "qualifiedName": "params"
669
- },
670
- "18": {
671
- "sourceFileName": "src/Log.ts",
672
- "qualifiedName": "Log.info"
673
- },
674
- "19": {
675
- "sourceFileName": "src/Log.ts",
676
- "qualifiedName": "Log.info"
677
- },
678
- "20": {
679
- "sourceFileName": "src/Log.ts",
680
- "qualifiedName": "params"
681
- },
682
- "21": {
683
- "sourceFileName": "src/Log.ts",
684
- "qualifiedName": "Log.log"
685
- },
686
- "22": {
687
- "sourceFileName": "src/Log.ts",
688
- "qualifiedName": "Log.log"
689
- },
690
- "23": {
691
- "sourceFileName": "src/Log.ts",
692
- "qualifiedName": "params"
693
- },
694
- "24": {
695
- "sourceFileName": "src/Log.ts",
696
- "qualifiedName": "Log.warn"
697
- },
698
- "25": {
699
- "sourceFileName": "src/Log.ts",
700
- "qualifiedName": "Log.warn"
701
- },
702
- "26": {
703
- "sourceFileName": "src/Log.ts",
704
- "qualifiedName": "params"
705
- }
706
- }
707
- }