standard-log-color 13.3.1 → 13.3.3
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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## 13.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 96bd5be: Include `CHANGELOG.md` in the published package.
|
|
8
|
+
|
|
9
|
+
## 13.3.2
|
|
10
|
+
|
|
11
|
+
## 13.3.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 654cdb4: Update `unpartial` to `^1.0.8`.
|
|
16
|
+
|
|
17
|
+
## 13.3.0
|
|
18
|
+
|
|
19
|
+
## 13.2.0
|
|
20
|
+
|
|
21
|
+
## 13.1.0
|
|
22
|
+
|
|
23
|
+
## 13.0.2
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 760da08: Hold `supports-color` in the `^8` line so CommonJS consumers can load the package again.
|
|
28
|
+
|
|
29
|
+
`13.0.1` raised the range to `^11.0.0`. `supports-color@9` and later are `"type": "module"` with no `require` condition, so a CommonJS consumer of this package's `cjs/` build fails with `SyntaxError: Unexpected token 'export'` under jest, Electron, jsdom and webpack. Modern Node hid it, because `require(ESM)` loads the file anyway. `^8.1.1` is the newest line that still publishes CommonJS, and is what `12.1.2` used after the same bug was fixed the first time.
|
|
30
|
+
|
|
31
|
+
A regression test now resolves every runtime dependency under the `require` condition and loads it with Node's `require(ESM)` support turned off, so reintroducing an ESM-only runtime dependency fails the suite.
|
|
32
|
+
|
|
33
|
+
## 13.0.1
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- f41485e: Build with tsdown instead of webpack and multi-config `tsc`.
|
|
38
|
+
|
|
39
|
+
No API changes. `cjs/`, `esm/`, `ts/` and their `.d.ts`, `.d.ts.map` and `.js.map` files keep the
|
|
40
|
+
same paths and the same per-module shape, so every import — deep imports included — resolves as
|
|
41
|
+
before. What changes in the tarball:
|
|
42
|
+
|
|
43
|
+
- `dist/*.es5.js` (and `standard-log-color`'s `dist/*.nodenext.js`) are replaced by
|
|
44
|
+
`dist/*.iife.js`, the same global-variable browser bundle built at ES2015. ES5 output is no longer
|
|
45
|
+
producible: TypeScript 7 removed `target: ES5`, and rolldown supports ES2015 and later only. These
|
|
46
|
+
bundles are not referenced by `exports`, `main`, `module`, `browser`, or the README.
|
|
47
|
+
- `dist/*.gz` copies are no longer published. Compressing on the wire is the server's job.
|
|
48
|
+
- `dist/*.esm.js` keeps its path.
|
|
49
|
+
|
|
50
|
+
## 13.0.0
|
|
51
|
+
|
|
52
|
+
### Major Changes
|
|
53
|
+
|
|
54
|
+
- fb6af72: Drop support for ES5.
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- f79033b: Point package metadata (`repository`, `homepage`, `bugs`) at the `cyberuni` organization following the repository transfer.
|
|
59
|
+
|
|
60
|
+
## 12.1.2
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- 4eaf64f: Downgrade `supports-color` for cjs support
|
|
65
|
+
|
|
66
|
+
## 12.1.1
|
|
67
|
+
|
|
68
|
+
## 12.1.0
|
|
69
|
+
|
|
70
|
+
## 12.0.5
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- 9729992: Adjust jsdoc.
|
|
75
|
+
|
|
76
|
+
Remove the `import { ... } from 'standard-log'` from the examples.
|
|
77
|
+
This allows the type and docs to be reused when other packages exports the types or instances.
|
|
78
|
+
|
|
79
|
+
## 12.0.4
|
|
80
|
+
|
|
81
|
+
## 12.0.3
|
|
82
|
+
|
|
83
|
+
## 12.0.2
|
|
84
|
+
|
|
85
|
+
## 12.0.1
|
|
86
|
+
|
|
87
|
+
## 12.0.0
|
|
88
|
+
|
|
89
|
+
## 11.5.2
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- 4f549d3: add `module` field back and adjust `exports` field.
|
|
94
|
+
|
|
95
|
+
Having `module` field allows the package to be used by Webpack 4.
|
|
96
|
+
|
|
97
|
+
## 11.5.1
|
|
98
|
+
|
|
99
|
+
## 11.5.0
|
|
100
|
+
|
|
101
|
+
### Patch Changes
|
|
102
|
+
|
|
103
|
+
- e275270: Adjust CSS.
|
|
104
|
+
|
|
105
|
+
Remove `margin` and set `line-height: 1rem`.
|
|
106
|
+
|
|
107
|
+
## 11.4.1
|
|
108
|
+
|
|
109
|
+
## 11.4.0
|
|
110
|
+
|
|
111
|
+
## 11.3.0
|
|
112
|
+
|
|
113
|
+
### Minor Changes
|
|
114
|
+
|
|
115
|
+
- a028c69: Now you can configure the `CssFormatterOptions` directly during `createColorLogReporter()`.
|
|
116
|
+
|
|
117
|
+
The default style (other than the color) can now be configured.
|
|
118
|
+
|
|
119
|
+
## 11.2.3
|
|
120
|
+
|
|
121
|
+
### Patch Changes
|
|
122
|
+
|
|
123
|
+
- 41be820: Clean up distribution.
|
|
124
|
+
|
|
125
|
+
Remove extra files.
|
|
126
|
+
|
|
127
|
+
- cd7e183: Update deps
|
|
128
|
+
|
|
129
|
+
## 11.2.2
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- 5b25a2d: Update homepage url
|
|
134
|
+
|
|
135
|
+
## 11.2.1
|
|
136
|
+
|
|
137
|
+
## 11.2.0
|
|
138
|
+
|
|
139
|
+
## 11.1.0
|
|
140
|
+
|
|
141
|
+
### Minor Changes
|
|
142
|
+
|
|
143
|
+
- fdeddda: Add `getNonConsoleLogger()`.
|
|
144
|
+
|
|
145
|
+
This is useful for specific cases where you want to write a log to the reporters but do not want to show it in the console.
|
|
146
|
+
For example, log errors within catch block or `window.onerror`.
|
|
147
|
+
|
|
148
|
+
Because of this, all reporters now must have a non-empty `id`.
|
|
149
|
+
It should be the case but was not enforced before.
|
|
150
|
+
|
|
151
|
+
Fixing `createStandardLogForTest()` to not set itself as the global instance anymore.
|
|
152
|
+
|
|
153
|
+
Adjust some records to use `record()/Object.create(null)`.
|
|
154
|
+
|
|
155
|
+
## 11.0.1
|
|
156
|
+
|
|
157
|
+
### Patch Changes
|
|
158
|
+
|
|
159
|
+
- Updated dependencies [2dd09cd]
|
|
160
|
+
- standard-log@11.0.1
|
|
161
|
+
|
|
162
|
+
## 11.0.0
|
|
163
|
+
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- bd86aaa: Downgrade `supports-color` to `8.1.1`.
|
|
167
|
+
|
|
168
|
+
`supports-color@9` is ESM only and doesn't work with the CJS distribution.
|
|
169
|
+
|
|
170
|
+
- Updated dependencies [00ffb1d]
|
|
171
|
+
- standard-log@11.0.0
|
|
172
|
+
|
|
173
|
+
## 10.0.0
|
|
174
|
+
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- Updated dependencies [0500d1e]
|
|
178
|
+
- standard-log@10.3.0
|
|
179
|
+
|
|
180
|
+
## 9.0.0
|
|
181
|
+
|
|
182
|
+
### Patch Changes
|
|
183
|
+
|
|
184
|
+
- Updated dependencies
|
|
185
|
+
- standard-log@10.2.0
|
|
186
|
+
|
|
187
|
+
## 8.0.0
|
|
188
|
+
|
|
189
|
+
### Major Changes
|
|
190
|
+
|
|
191
|
+
- 88298b8: Now support different color profiles for `stdout` and `stderr`.
|
|
192
|
+
|
|
193
|
+
The ID color is simplified with only white or black text to make it easier to read.
|
|
194
|
+
|
|
195
|
+
Uses `supports-color` for server side color detection.
|
|
196
|
+
|
|
197
|
+
### Patch Changes
|
|
198
|
+
|
|
199
|
+
- Updated dependencies [19dbee6]
|
|
200
|
+
- standard-log@10.0.0
|
|
201
|
+
|
|
202
|
+
## 7.0.3
|
|
203
|
+
|
|
204
|
+
### Patch Changes
|
|
205
|
+
|
|
206
|
+
- 1cf4cef: Fix an issue when formatter is set to `undefined`.
|
|
207
|
+
|
|
208
|
+
updated `unpartial` and `type-plus`.
|
|
209
|
+
|
|
210
|
+
- Updated dependencies [1cf4cef]
|
|
211
|
+
- standard-log@9.1.8
|
|
212
|
+
|
|
213
|
+
## 7.0.2
|
|
214
|
+
|
|
215
|
+
### Patch Changes
|
|
216
|
+
|
|
217
|
+
- c7bfa46: Update color-map
|
|
218
|
+
- Updated dependencies [d186055]
|
|
219
|
+
- Updated dependencies [c7bfa46]
|
|
220
|
+
- standard-log@9.1.5
|
|
221
|
+
|
|
222
|
+
## 7.0.1
|
|
223
|
+
|
|
224
|
+
### Patch Changes
|
|
225
|
+
|
|
226
|
+
- 69d60ce: Downgrade output to ES2019
|
|
227
|
+
- Updated dependencies [69d60ce]
|
|
228
|
+
- Updated dependencies [023ba01]
|
|
229
|
+
- standard-log@9.1.4
|
|
230
|
+
|
|
231
|
+
## 7.0.0
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- Updated dependencies [6ed55c4]
|
|
236
|
+
- standard-log@9.1.0
|
|
237
|
+
|
|
238
|
+
## 6.0.0
|
|
239
|
+
|
|
240
|
+
### Patch Changes
|
|
241
|
+
|
|
242
|
+
- Updated dependencies [eca8627]
|
|
243
|
+
- Updated dependencies [8c86135]
|
|
244
|
+
- Updated dependencies [ecda388]
|
|
245
|
+
- Updated dependencies [f2a038e]
|
|
246
|
+
- standard-log@9.0.0
|
|
247
|
+
|
|
248
|
+
## 5.0.0
|
|
249
|
+
|
|
250
|
+
### Minor Changes
|
|
251
|
+
|
|
252
|
+
- 8f78cae: Add ESM support
|
|
253
|
+
|
|
254
|
+
### Patch Changes
|
|
255
|
+
|
|
256
|
+
- fe1b4bf: Add sideEffects flag
|
|
257
|
+
- 61fd031: Update dependencies.
|
|
258
|
+
- f072cf1: Update dependencies
|
|
259
|
+
- Updated dependencies [fe1b4bf]
|
|
260
|
+
- Updated dependencies [f072cf1]
|
|
261
|
+
- Updated dependencies [8f78cae]
|
|
262
|
+
- Updated dependencies [61fd031]
|
|
263
|
+
- standard-log@8.0.0
|
|
264
|
+
|
|
265
|
+
All notable changes to this project will be documented in this file.
|
|
266
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
267
|
+
|
|
268
|
+
# [4.0.0](https://github.com/unional/standard-log/compare/standard-log-color@3.2.4...standard-log-color@4.0.0) (2022-04-04)
|
|
269
|
+
|
|
270
|
+
### Bug Fixes
|
|
271
|
+
|
|
272
|
+
- allow making `config()` call during tests ([#131](https://github.com/unional/standard-log/issues/131)) ([52c97dd](https://github.com/unional/standard-log/commit/52c97dde55167f8f34fba09b64e84733f9668f33))
|
|
273
|
+
|
|
274
|
+
### BREAKING CHANGES
|
|
275
|
+
|
|
276
|
+
- config behavior changed
|
|
277
|
+
|
|
278
|
+
while this shouldn't be an issue,
|
|
279
|
+
marking this as a breaking change in case this causes any suprises.
|
|
280
|
+
|
|
281
|
+
## 3.2.4 (2022-01-02)
|
|
282
|
+
|
|
283
|
+
**Note:** Version bump only for package standard-log-color
|
|
284
|
+
|
|
285
|
+
## 3.2.3 (2022-01-02)
|
|
286
|
+
|
|
287
|
+
**Note:** Version bump only for package standard-log-color
|
|
288
|
+
|
|
289
|
+
## 3.2.2 (2022-01-02)
|
|
290
|
+
|
|
291
|
+
**Note:** Version bump only for package standard-log-color
|
|
292
|
+
|
|
293
|
+
## 3.2.1 (2021-05-21)
|
|
294
|
+
|
|
295
|
+
### Bug Fixes
|
|
296
|
+
|
|
297
|
+
- update tslib ([#110](https://github.com/unional/standard-log/issues/110)) ([2d7a0d2](https://github.com/unional/standard-log/commit/2d7a0d200d442794d7152aa284a65c00e0840bd7))
|
|
298
|
+
|
|
299
|
+
# 3.2.0 (2021-05-12)
|
|
300
|
+
|
|
301
|
+
### Features
|
|
302
|
+
|
|
303
|
+
- add configForTest() ([#109](https://github.com/unional/standard-log/issues/109)) ([9170b29](https://github.com/unional/standard-log/commit/9170b2976896b5f0bf577480ee72ec3d9b64a836))
|
|
304
|
+
|
|
305
|
+
## 3.1.3 (2021-04-30)
|
|
306
|
+
|
|
307
|
+
### Bug Fixes
|
|
308
|
+
|
|
309
|
+
- diable destructuring ([#108](https://github.com/unional/standard-log/issues/108)) ([664d33a](https://github.com/unional/standard-log/commit/664d33ae3e499b5cde2c1a9d409730a8e38b261f))
|
|
310
|
+
|
|
311
|
+
## 3.1.2 (2021-04-30)
|
|
312
|
+
|
|
313
|
+
### Bug Fixes
|
|
314
|
+
|
|
315
|
+
- support old phantomjs ([#107](https://github.com/unional/standard-log/issues/107)) ([5fee141](https://github.com/unional/standard-log/commit/5fee14132ec3c220f7447c2347223dfee0a0b2b7))
|
|
316
|
+
|
|
317
|
+
## 3.1.1 (2021-04-29)
|
|
318
|
+
|
|
319
|
+
### Bug Fixes
|
|
320
|
+
|
|
321
|
+
- remove arrow function from bundle ([#106](https://github.com/unional/standard-log/issues/106)) ([cc36f64](https://github.com/unional/standard-log/commit/cc36f646b6d2d24ba0a104e9b8861df5c4dc40a4))
|
|
322
|
+
|
|
323
|
+
# 3.1.0 (2021-04-18)
|
|
324
|
+
|
|
325
|
+
### Features
|
|
326
|
+
|
|
327
|
+
- add MemoryReporter.getLogMessageWithLevel() ([5c923d9](https://github.com/unional/standard-log/commit/5c923d971d22aff015d47c0a9317004717ce96a2))
|
|
328
|
+
|
|
329
|
+
## 3.0.1 (2021-04-17)
|
|
330
|
+
|
|
331
|
+
**Note:** Version bump only for package standard-log-color
|
|
332
|
+
|
|
333
|
+
# [3.0.0](https://github.com/unional/standard-log/compare/standard-log-color@2.3.0...standard-log-color@3.0.0) (2021-04-17)
|
|
334
|
+
|
|
335
|
+
### Bug Fixes
|
|
336
|
+
|
|
337
|
+
- print log message with pretty object ([#104](https://github.com/unional/standard-log/issues/104)) ([3b6709b](https://github.com/unional/standard-log/commit/3b6709b9dea152989b662755cf41c1503895dd8c))
|
|
338
|
+
|
|
339
|
+
### BREAKING CHANGES
|
|
340
|
+
|
|
341
|
+
- elasped -> elapsed
|
|
342
|
+
|
|
343
|
+
The `TimestampFormat` has fixed the typo from `elasped` to `elapsed`.
|
|
344
|
+
|
|
345
|
+
# 2.3.0 (2021-03-31)
|
|
346
|
+
|
|
347
|
+
### Features
|
|
348
|
+
|
|
349
|
+
- adding getLogMessage() for MemoryLogReporter ([19e08d5](https://github.com/unional/standard-log/commit/19e08d536e46258e7d151f40659f502062696c43))
|
|
350
|
+
|
|
351
|
+
## 2.2.2 (2021-03-19)
|
|
352
|
+
|
|
353
|
+
**Note:** Version bump only for package standard-log-color
|
|
354
|
+
|
|
355
|
+
## 2.2.1 (2021-03-19)
|
|
356
|
+
|
|
357
|
+
### Bug Fixes
|
|
358
|
+
|
|
359
|
+
- support case when adding first console reporter ([fda7209](https://github.com/unional/standard-log/commit/fda7209a8f72ea6cf2f8d942ed8c1dd29d3cff69))
|
|
360
|
+
|
|
361
|
+
# 2.2.0 (2021-03-19)
|
|
362
|
+
|
|
363
|
+
### Features
|
|
364
|
+
|
|
365
|
+
- getLogger can specify a custom reporter ([1ba85e5](https://github.com/unional/standard-log/commit/1ba85e51c639de8147a82386473c25b2fcf861ca))
|
|
366
|
+
|
|
367
|
+
## 2.1.2 (2021-03-19)
|
|
368
|
+
|
|
369
|
+
### Bug Fixes
|
|
370
|
+
|
|
371
|
+
- filter should be optional ([#100](https://github.com/unional/standard-log/issues/100)) ([6fa73c2](https://github.com/unional/standard-log/commit/6fa73c24d979061c4b390aab4597688d29953fd8))
|
|
372
|
+
|
|
373
|
+
## 2.1.1 (2021-03-13)
|
|
374
|
+
|
|
375
|
+
**Note:** Version bump only for package standard-log-color
|
|
376
|
+
|
|
377
|
+
# 2.1.0 (2021-02-24)
|
|
378
|
+
|
|
379
|
+
### Features
|
|
380
|
+
|
|
381
|
+
- add logger.write(entry) ([28fe6c9](https://github.com/unional/standard-log/commit/28fe6c955b7c5dd3a13bef5f3276b7f4641b2d1f))
|
|
382
|
+
|
|
383
|
+
# 2.0.0 (2021-02-24)
|
|
384
|
+
|
|
385
|
+
### Features
|
|
386
|
+
|
|
387
|
+
- return result in captureLogs() ([#97](https://github.com/unional/standard-log/issues/97)) ([3f457c3](https://github.com/unional/standard-log/commit/3f457c37a685435a0d20802bb0be33565e58ba20))
|
|
388
|
+
|
|
389
|
+
### BREAKING CHANGES
|
|
390
|
+
|
|
391
|
+
- return signagure of captureLogs changed
|
|
392
|
+
|
|
393
|
+
- chore: update deps
|
|
394
|
+
|
|
395
|
+
## 1.5.25 (2020-12-19)
|
|
396
|
+
|
|
397
|
+
### Bug Fixes
|
|
398
|
+
|
|
399
|
+
- **color:** remove isBrowser and use browser field ([9a468e8](https://github.com/unional/standard-log/commit/9a468e8fb696be680138e707b050b38b4bbb2344))
|
|
400
|
+
|
|
401
|
+
## 1.5.24 (2020-12-16)
|
|
402
|
+
|
|
403
|
+
### Bug Fixes
|
|
404
|
+
|
|
405
|
+
- **syslog:** distribute src to fix source map ([65d1a83](https://github.com/unional/standard-log/commit/65d1a83098bb7c590a88899a828698c661485572))
|
|
406
|
+
|
|
407
|
+
## 1.5.23 (2020-10-28)
|
|
408
|
+
|
|
409
|
+
### Bug Fixes
|
|
410
|
+
|
|
411
|
+
- allow @ \ / in id ([#94](https://github.com/unional/standard-log/issues/94)) ([5684a0e](https://github.com/unional/standard-log/commit/5684a0e43d7dbb5956b3652d87fccee0e638da06))
|
|
412
|
+
|
|
413
|
+
## 1.5.22 (2020-10-28)
|
|
414
|
+
|
|
415
|
+
### Bug Fixes
|
|
416
|
+
|
|
417
|
+
- upgrade dependencies ([#93](https://github.com/unional/standard-log/issues/93)) ([0afc399](https://github.com/unional/standard-log/commit/0afc39942b74e1b2dd551e25b74cdd00739e0416))
|
|
418
|
+
|
|
419
|
+
## 1.5.21 (2020-08-30)
|
|
420
|
+
|
|
421
|
+
**Note:** Version bump only for package standard-log-color
|
|
422
|
+
|
|
423
|
+
## 1.5.20 (2020-08-30)
|
|
424
|
+
|
|
425
|
+
### Bug Fixes
|
|
426
|
+
|
|
427
|
+
- store initializer ([#92](https://github.com/unional/standard-log/issues/92)) ([aedefd3](https://github.com/unional/standard-log/commit/aedefd37ab90baddd540e728fb3d60be7d539abf))
|
|
428
|
+
|
|
429
|
+
## 1.5.19 (2020-03-07)
|
|
430
|
+
|
|
431
|
+
**Note:** Version bump only for package standard-log-color
|
|
432
|
+
|
|
433
|
+
## 1.5.18 (2020-03-07)
|
|
434
|
+
|
|
435
|
+
**Note:** Version bump only for package standard-log-color
|
|
436
|
+
|
|
437
|
+
## [1.5.17](https://github.com/unional/standard-log/compare/standard-log-color@1.5.16...standard-log-color@1.5.17) (2020-03-01)
|
|
438
|
+
|
|
439
|
+
### Bug Fixes
|
|
440
|
+
|
|
441
|
+
- default logLevel to info ([391b973](https://github.com/unional/standard-log/commit/391b973d504742232786c5266e80fa51bcba7f27))
|
|
442
|
+
|
|
443
|
+
## [1.5.16](https://github.com/unional/standard-log/compare/standard-log-color@1.5.15...standard-log-color@1.5.16) (2020-01-08)
|
|
444
|
+
|
|
445
|
+
### Bug Fixes
|
|
446
|
+
|
|
447
|
+
- update deps ([14e7064](https://github.com/unional/standard-log/commit/14e7064ede66143a9ebc3ee46d720ea47d4eef07))
|
|
448
|
+
- **color:** add tslib ([ac594d5](https://github.com/unional/standard-log/commit/ac594d54d9a5e12752cd18ff4e7a4f77d9e6188d))
|
|
449
|
+
- add sideEffects flag ([95ae4dc](https://github.com/unional/standard-log/commit/95ae4dc056bfbf552a645b681182d08cf56ca0b1))
|
|
450
|
+
|
|
451
|
+
## [1.5.15](https://github.com/unional/standard-log/compare/standard-log-color@1.5.14...standard-log-color@1.5.15) (2019-12-29)
|
|
452
|
+
|
|
453
|
+
**Note:** Version bump only for package standard-log-color
|
|
454
|
+
|
|
455
|
+
## [1.5.14](https://github.com/unional/standard-log/compare/standard-log-color@1.5.13...standard-log-color@1.5.14) (2019-12-26)
|
|
456
|
+
|
|
457
|
+
**Note:** Version bump only for package standard-log-color
|
|
458
|
+
|
|
459
|
+
## [1.5.13](https://github.com/unional/standard-log/compare/standard-log-color@1.5.12...standard-log-color@1.5.13) (2019-11-16)
|
|
460
|
+
|
|
461
|
+
### Bug Fixes
|
|
462
|
+
|
|
463
|
+
- **color:** peerDeps to accept 4.0 ([06a7ddc](https://github.com/unional/standard-log/commit/06a7ddc))
|
|
464
|
+
|
|
465
|
+
## [1.5.12](https://github.com/unional/standard-log/compare/standard-log-color@1.5.11...standard-log-color@1.5.12) (2019-11-16)
|
|
466
|
+
|
|
467
|
+
**Note:** Version bump only for package standard-log-color
|
|
468
|
+
|
|
469
|
+
## [1.5.11](https://github.com/unional/standard-log/compare/standard-log-color@1.5.10...standard-log-color@1.5.11) (2019-10-24)
|
|
470
|
+
|
|
471
|
+
**Note:** Version bump only for package standard-log-color
|
|
472
|
+
|
|
473
|
+
## [1.5.10](https://github.com/unional/standard-log/compare/standard-log-color@1.5.9...standard-log-color@1.5.10) (2019-10-24)
|
|
474
|
+
|
|
475
|
+
**Note:** Version bump only for package standard-log-color
|
|
476
|
+
|
|
477
|
+
## [1.5.9](https://github.com/unional/standard-log/compare/standard-log-color@1.5.8...standard-log-color@1.5.9) (2019-10-24)
|
|
478
|
+
|
|
479
|
+
**Note:** Version bump only for package standard-log-color
|
|
480
|
+
|
|
481
|
+
## [1.5.8](https://github.com/unional/standard-log/compare/standard-log-color@1.5.7...standard-log-color@1.5.8) (2019-10-24)
|
|
482
|
+
|
|
483
|
+
**Note:** Version bump only for package standard-log-color
|
|
484
|
+
|
|
485
|
+
## [1.5.7](https://github.com/unional/standard-log/compare/standard-log-color@1.5.6...standard-log-color@1.5.7) (2019-10-24)
|
|
486
|
+
|
|
487
|
+
**Note:** Version bump only for package standard-log-color
|
|
488
|
+
|
|
489
|
+
## [1.5.6](https://github.com/unional/standard-log/compare/standard-log-color@1.5.5...standard-log-color@1.5.6) (2019-08-21)
|
|
490
|
+
|
|
491
|
+
**Note:** Version bump only for package standard-log-color
|
|
492
|
+
|
|
493
|
+
## [1.5.5](https://github.com/unional/standard-log/compare/standard-log-color@1.5.4...standard-log-color@1.5.5) (2019-08-10)
|
|
494
|
+
|
|
495
|
+
**Note:** Version bump only for package standard-log-color
|
|
496
|
+
|
|
497
|
+
## [1.5.4](https://github.com/unional/standard-log/compare/standard-log-color@1.5.3...standard-log-color@1.5.4) (2019-08-10)
|
|
498
|
+
|
|
499
|
+
**Note:** Version bump only for package standard-log-color
|
|
500
|
+
|
|
501
|
+
## [1.5.3](https://github.com/unional/standard-log/compare/standard-log-color@1.5.2...standard-log-color@1.5.3) (2019-08-10)
|
|
502
|
+
|
|
503
|
+
### Bug Fixes
|
|
504
|
+
|
|
505
|
+
- remove spec files from package ([cae7eb7](https://github.com/unional/standard-log/commit/cae7eb7))
|
|
506
|
+
|
|
507
|
+
## [1.5.2](https://github.com/unional/standard-log/compare/standard-log-color@1.5.1...standard-log-color@1.5.2) (2019-08-09)
|
|
508
|
+
|
|
509
|
+
**Note:** Version bump only for package standard-log-color
|
|
510
|
+
|
|
511
|
+
## [1.5.1](https://github.com/unional/standard-log/compare/standard-log-color@1.5.0...standard-log-color@1.5.1) (2019-08-09)
|
|
512
|
+
|
|
513
|
+
### Bug Fixes
|
|
514
|
+
|
|
515
|
+
- **color:** don't need to define id ([8fd5915](https://github.com/unional/standard-log/commit/8fd5915))
|
|
516
|
+
|
|
517
|
+
# [1.5.0](https://github.com/unional/standard-log/compare/standard-log-color@1.4.6...standard-log-color@1.5.0) (2019-08-08)
|
|
518
|
+
|
|
519
|
+
### Features
|
|
520
|
+
|
|
521
|
+
- **log:** remove isBrowser ([e7ff262](https://github.com/unional/standard-log/commit/e7ff262))
|
|
522
|
+
- remove core again ([5e1f021](https://github.com/unional/standard-log/commit/5e1f021))
|
|
523
|
+
|
|
524
|
+
## [1.4.6](https://github.com/unional/standard-log/compare/standard-log-color@1.4.5...standard-log-color@1.4.6) (2019-07-29)
|
|
525
|
+
|
|
526
|
+
### Bug Fixes
|
|
527
|
+
|
|
528
|
+
- **color:** not reference standard-log ([70d81f5](https://github.com/unional/standard-log/commit/70d81f5))
|
|
529
|
+
|
|
530
|
+
## [1.4.5](https://github.com/unional/standard-log/compare/standard-log-color@1.4.4...standard-log-color@1.4.5) (2019-07-29)
|
|
531
|
+
|
|
532
|
+
**Note:** Version bump only for package standard-log-color
|
|
533
|
+
|
|
534
|
+
## [1.4.4](https://github.com/unional/standard-log/compare/standard-log-color@1.4.3...standard-log-color@1.4.4) (2019-07-29)
|
|
535
|
+
|
|
536
|
+
### Bug Fixes
|
|
537
|
+
|
|
538
|
+
- move code to @standard-log/core ([#16](https://github.com/unional/standard-log/issues/16)) ([0c769f8](https://github.com/unional/standard-log/commit/0c769f8))
|
|
539
|
+
|
|
540
|
+
## [1.4.3](https://github.com/unional/standard-log/compare/standard-log-color@1.4.2...standard-log-color@1.4.3) (2019-07-29)
|
|
541
|
+
|
|
542
|
+
### Bug Fixes
|
|
543
|
+
|
|
544
|
+
- **color:** use local isBrowser ([#15](https://github.com/unional/standard-log/issues/15)) ([343b3cf](https://github.com/unional/standard-log/commit/343b3cf))
|
|
545
|
+
|
|
546
|
+
## [1.4.2](https://github.com/unional/standard-log/compare/standard-log-color@1.4.1...standard-log-color@1.4.2) (2019-07-29)
|
|
547
|
+
|
|
548
|
+
**Note:** Version bump only for package standard-log-color
|
|
549
|
+
|
|
550
|
+
## [1.4.1](https://github.com/unional/standard-log/compare/standard-log-color@1.4.0...standard-log-color@1.4.1) (2019-07-28)
|
|
551
|
+
|
|
552
|
+
### Bug Fixes
|
|
553
|
+
|
|
554
|
+
- udpate peerDeps to 2.0.0 ([83ba5d2](https://github.com/unional/standard-log/commit/83ba5d2))
|
|
555
|
+
|
|
556
|
+
# 1.4.0 (2019-07-28)
|
|
557
|
+
|
|
558
|
+
### Bug Fixes
|
|
559
|
+
|
|
560
|
+
- **memory:** add aurelia-logging back as dependency ([5987bb5](https://github.com/unional/standard-log/commit/5987bb5))
|
|
561
|
+
- console log for debug before NodeJS@9.3 ([#39](https://github.com/unional/standard-log/issues/39)) ([305a92f](https://github.com/unional/standard-log/commit/305a92f))
|
|
562
|
+
- preversion script ([cab5195](https://github.com/unional/standard-log/commit/cab5195))
|
|
563
|
+
- remove declaration from bundle folder ([6629661](https://github.com/unional/standard-log/commit/6629661))
|
|
564
|
+
- repass all tests ([9aa8a68](https://github.com/unional/standard-log/commit/9aa8a68))
|
|
565
|
+
|
|
566
|
+
### Features
|
|
567
|
+
|
|
568
|
+
- **color:** decouple form `Logger` ([2f48976](https://github.com/unional/standard-log/commit/2f48976))
|
|
569
|
+
- add aurelia-logging-file ([#43](https://github.com/unional/standard-log/issues/43)) ([2f7a7e8](https://github.com/unional/standard-log/commit/2f7a7e8))
|
|
570
|
+
- update aurelia-logging-color to not depend on Logger ([bb07b1b](https://github.com/unional/standard-log/commit/bb07b1b))
|
|
571
|
+
- **color:** rename standard-log-console to standard-log-color ([30fa7fb](https://github.com/unional/standard-log/commit/30fa7fb))
|
|
572
|
+
- **simple-console:** initial release ([946fd31](https://github.com/unional/standard-log/commit/946fd31))
|
|
573
|
+
|
|
574
|
+
## [1.3.6](https://github.com/unional/standard-log/compare/standard-log-console@1.3.5...standard-log-console@1.3.6) (2019-07-15)
|
|
575
|
+
|
|
576
|
+
### Bug Fixes
|
|
577
|
+
|
|
578
|
+
- **console:** remove semver library ([c7eabed](https://github.com/unional/standard-log/commit/c7eabed))
|
|
579
|
+
|
|
580
|
+
## [1.3.5](https://github.com/unional/standard-log/compare/standard-log-console@1.3.4...standard-log-console@1.3.5) (2019-07-15)
|
|
581
|
+
|
|
582
|
+
**Note:** Version bump only for package standard-log-console
|
|
583
|
+
|
|
584
|
+
## [1.3.4](https://github.com/unional/standard-log/compare/standard-log-console@1.3.3...standard-log-console@1.3.4) (2019-07-15)
|
|
585
|
+
|
|
586
|
+
**Note:** Version bump only for package standard-log-console
|
|
587
|
+
|
|
588
|
+
## [1.3.3](https://github.com/unional/standard-log/compare/standard-log-console@1.3.2...standard-log-console@1.3.3) (2019-07-15)
|
|
589
|
+
|
|
590
|
+
**Note:** Version bump only for package standard-log-console
|
|
591
|
+
|
|
592
|
+
## [1.3.2](https://github.com/unional/standard-log/compare/standard-log-console@1.3.1...standard-log-console@1.3.2) (2019-07-15)
|
|
593
|
+
|
|
594
|
+
**Note:** Version bump only for package standard-log-console
|
|
595
|
+
|
|
596
|
+
## [1.3.1](https://github.com/unional/standard-log/compare/standard-log-console@1.3.0...standard-log-console@1.3.1) (2019-07-15)
|
|
597
|
+
|
|
598
|
+
**Note:** Version bump only for package standard-log-console
|
|
599
|
+
|
|
600
|
+
# [1.3.0](https://github.com/unional/standard-log/compare/standard-log-console@1.2.2...standard-log-console@1.3.0) (2019-07-14)
|
|
601
|
+
|
|
602
|
+
### Features
|
|
603
|
+
|
|
604
|
+
- **log:** export LogReporterOptions ([#7](https://github.com/unional/standard-log/issues/7)) ([32122f0](https://github.com/unional/standard-log/commit/32122f0))
|
|
605
|
+
|
|
606
|
+
## [1.2.2](https://github.com/unional/standard-log/compare/standard-log-console@1.2.1...standard-log-console@1.2.2) (2019-07-14)
|
|
607
|
+
|
|
608
|
+
**Note:** Version bump only for package standard-log-console
|
|
609
|
+
|
|
610
|
+
## [1.2.1](https://github.com/unional/standard-log/compare/standard-log-console@1.2.0...standard-log-console@1.2.1) (2019-07-14)
|
|
611
|
+
|
|
612
|
+
### Bug Fixes
|
|
613
|
+
|
|
614
|
+
- include libm in distribution ([f844b9c](https://github.com/unional/standard-log/commit/f844b9c))
|
|
615
|
+
|
|
616
|
+
# 1.2.0 (2019-07-14)
|
|
617
|
+
|
|
618
|
+
### Bug Fixes
|
|
619
|
+
|
|
620
|
+
- **console:** clean up console options ([fb3020f](https://github.com/unional/standard-log/commit/fb3020f))
|
|
621
|
+
- **console:** polyfill console ([5367fe1](https://github.com/unional/standard-log/commit/5367fe1))
|
|
622
|
+
- use object.assign instead of spread for NodeJS6 ([#2](https://github.com/unional/standard-log/issues/2)) ([26ef224](https://github.com/unional/standard-log/commit/26ef224))
|
|
623
|
+
|
|
624
|
+
### Features
|
|
625
|
+
|
|
626
|
+
- **console:** add ConsoleLogFormatter type ([4460dd1](https://github.com/unional/standard-log/commit/4460dd1))
|
|
627
|
+
- **console:** expose createTimestampFormatter() ([91f3561](https://github.com/unional/standard-log/commit/91f3561))
|
|
628
|
+
- **console:** expose wrapAnsi and constants ([b3abc07](https://github.com/unional/standard-log/commit/b3abc07))
|
|
629
|
+
- **console:** move plainFormatter to core ([242d37b](https://github.com/unional/standard-log/commit/242d37b))
|
|
630
|
+
- **console:** remove dead types ([0253226](https://github.com/unional/standard-log/commit/0253226))
|
|
631
|
+
- **console:** remove default cssFormatter. ([4799308](https://github.com/unional/standard-log/commit/4799308))
|
|
632
|
+
- **core:** move isBrowser ([dc36f47](https://github.com/unional/standard-log/commit/dc36f47))
|
|
633
|
+
- **core:** remove LogReporter.filter ([2abf9b9](https://github.com/unional/standard-log/commit/2abf9b9))
|
|
@@ -233,7 +233,12 @@ function consoleFormatter({ args }) {
|
|
|
233
233
|
return args;
|
|
234
234
|
}
|
|
235
235
|
//#endregion
|
|
236
|
-
//#region
|
|
236
|
+
//#region ../log/esm/record.js
|
|
237
|
+
/**
|
|
238
|
+
* Creates a prototype-less object, optionally seeded with `value`.
|
|
239
|
+
*
|
|
240
|
+
* Inlined from `type-plus` so the CJS build does not `require()` the ESM-only `type-plus`.
|
|
241
|
+
*/
|
|
237
242
|
function record(value) {
|
|
238
243
|
const r = Object.create(null);
|
|
239
244
|
return value ? Object.assign(r, value) : r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard-log-color.esm.js","names":["ms","sc"],"sources":["../../log/esm/log_levels.js","../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","../../log/esm/formatter.js","../../../node_modules/.pnpm/type-plus@8.0.0-beta.12_typescript@7.0.2/node_modules/type-plus/esm/object/record.js","../../log/esm/platform.browser.js","../../../node_modules/.pnpm/unpartial@1.0.8/node_modules/unpartial/esm/index.js","../../log/esm/console.js","../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js","../ts/supportColor.ts","../ts/ansi/constants.ts","../ts/ansi/wrapAnsi.ts","../ts/ansi/ansiFormatter.ts","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColors.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColorsFromMap.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/rgbHex.js","../ts/css/colors.ts","../ts/css/cssFormatter.ts","../ts/createColorLogReporter.browser.ts"],"sourcesContent":["//#region ts/log_levels.ts\nconst logLevels = {\n\t/**\n\t* none: 0\n\t*/\n\tnone: 0,\n\t/**\n\t* emergency: 100\n\t*\n\t* emergency -> alert\n\t*/\n\temergency: 100,\n\t/**\n\t* alert: 200\n\t*\n\t* emergency -> alert -> critical\n\t*/\n\talert: 200,\n\t/**\n\t* critical: 300\n\t*\n\t* alert -> critical -> error\n\t*/\n\tcritical: 300,\n\t/**\n\t* error: 400\n\t*\n\t* critical -> error -> warn\n\t*/\n\terror: 400,\n\t/**\n\t* warn: 500\n\t*\n\t* error -> warn -> notice\n\t*/\n\twarn: 500,\n\t/**\n\t* notice: 600\n\t*\n\t* warn -> notice -> info\n\t*/\n\tnotice: 600,\n\t/**\n\t* info: 700\n\t*\n\t* notice -> info -> debug\n\t*/\n\tinfo: 700,\n\t/**\n\t* debug: 800\n\t*\n\t* info -> debug -> trace\n\t*/\n\tdebug: 800,\n\t/**\n\t* trace: 900\n\t*\n\t* debug -> trace -> planck\n\t*/\n\ttrace: 900,\n\t/**\n\t* planck: Infinity\n\t* `planck unit` is a very small unit <https://en.wikipedia.org/wiki/Planck_units>.\n\t*\n\t* trace -> planck\n\t*/\n\tplanck: Number.POSITIVE_INFINITY,\n\t/**\n\t* all: Infinity\n\t*/\n\tall: Number.POSITIVE_INFINITY\n};\n/**\n* Convert default log level value to log level name.\n*/\nfunction toLogLevelName(level) {\n\tif (level <= 100) return \"emergency\";\n\tif (level <= 200) return \"alert\";\n\tif (level <= 300) return \"critical\";\n\tif (level <= 400) return \"error\";\n\tif (level <= 500) return \"warn\";\n\tif (level <= 600) return \"notice\";\n\tif (level <= 700) return \"info\";\n\tif (level <= 800) return \"debug\";\n\tif (level <= 900) return \"trace\";\n\treturn \"planck\";\n}\n/**\n* Convert default log level name to log level value.\n*/\nfunction toLogLevel(name) {\n\treturn logLevels[name.toLocaleLowerCase()];\n}\nconst DEFAULT_LOG_METHOD_NAMES = [\n\t\"emergency\",\n\t\"alert\",\n\t\"critical\",\n\t\"error\",\n\t\"warn\",\n\t\"notice\",\n\t\"info\",\n\t\"debug\",\n\t\"trace\",\n\t\"planck\"\n];\n//#endregion\nexport { DEFAULT_LOG_METHOD_NAMES, logLevels, toLogLevel, toLogLevelName };\n\n//# sourceMappingURL=log_levels.js.map","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","import { toLogLevelName } from \"./log_levels.js\";\nimport ms from \"ms\";\n//#region ts/formatter.ts\nfunction createTimestampFormatter(format) {\n\tswitch (format) {\n\t\tcase \"none\": return (_timestamp) => void 0;\n\t\tcase \"iso\": return (timestamp) => timestamp.toISOString();\n\t\tcase \"elapsed\": {\n\t\t\tlet lastTick;\n\t\t\treturn (timestamp) => {\n\t\t\t\tconst newTick = timestamp.getTime();\n\t\t\t\tconst result = ms(lastTick === void 0 ? 0 : newTick - lastTick);\n\t\t\t\tlastTick = newTick;\n\t\t\t\treturn result;\n\t\t\t};\n\t\t}\n\t}\n}\nfunction formatLogLevel(level) {\n\treturn `(${toLogLevelName(level).toUpperCase()})`;\n}\n/**\n* Formats log entry as plain text with the following format:\n* `timestamp id level ...args`\n*\n* This is typically useful for writing logs to file\n*/\nfunction plainLogFormatter({ id, level, args, timestamp }) {\n\treturn [\n\t\ttimestamp.toISOString(),\n\t\tid,\n\t\tformatLogLevel(level),\n\t\t...args\n\t];\n}\n/**\n* Formats log entry like default console log.\n*/\nfunction consoleFormatter({ args }) {\n\treturn args;\n}\n//#endregion\nexport { consoleFormatter, createTimestampFormatter, formatLogLevel, plainLogFormatter };\n\n//# sourceMappingURL=formatter.js.map","export function record(value) {\n const r = Object.create(null);\n return (value ? Object.assign(r, value) : r);\n}\n//# sourceMappingURL=record.js.map","import { record } from \"type-plus\";\n//#region ts/platform.browser.ts\nconst toInspectLogEntry = (e) => e;\nconst polyfill = record();\n//#endregion\nexport { polyfill, toInspectLogEntry };\n\n//# sourceMappingURL=platform.browser.js.map","//#region ts/index.ts\nfunction required(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => {\n\t\treturn {\n\t\t\t...p,\n\t\t\t...e\n\t\t};\n\t});\n}\nfunction requiredDeep(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => deepmerge(p, e));\n}\nfunction merge(entries, reducer) {\n\tif (entries[0] === void 0 || entries[0] === null) return entries[0];\n\treturn entries.filter((x) => !!x).reduce(reducer, {});\n}\nfunction deepmerge(source1, source2) {\n\tif (typeof source1 !== \"object\" || source1 === null) return source2 !== void 0 ? source2 : source1;\n\tif (Array.isArray(source1)) {\n\t\tif (Array.isArray(source2)) return source2;\n\t\tif (source2 === void 0) return [...source1];\n\t\treturn [...source1, source2];\n\t}\n\treturn getAllKeys(source1).concat(getAllKeys(source2)).reduce((p, k) => {\n\t\tp[k] = deepmerge(source1[k], source2 && source2[k]);\n\t\treturn p;\n\t}, {});\n}\nfunction getAllKeys(subject, internal = false) {\n\tif (typeof subject !== \"object\") return [];\n\tconst propertyNames = Object.getOwnPropertyNames(subject);\n\tconst keys = internal ? propertyNames.filter((n) => n !== \"constructor\") : propertyNames;\n\tconst proto = Object.getPrototypeOf(subject);\n\treturn proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;\n}\nfunction unpartial(s1, s2, s3) {\n\tif (s1 === void 0 || s1 === null) return s1;\n\treturn [\n\t\ts1,\n\t\ts2,\n\t\ts3\n\t].filter(notNil).reduce((p, s) => ({\n\t\t...p,\n\t\t...trimNilProps(s)\n\t}), {});\n}\nfunction trimNilProps(value) {\n\treturn Object.keys(value).reduce((p, k) => {\n\t\tif (notNil(value[k])) p[k] = value[k];\n\t\treturn p;\n\t}, {});\n}\nfunction notNil(value) {\n\treturn value !== null && value !== void 0;\n}\nfunction unpartialRecursively(arg1, arg2, arg3) {\n\treturn requiredDeep(arg1, arg2, arg3);\n}\n//#endregion\nexport { required, requiredDeep, unpartial, unpartialRecursively };\n\n//# sourceMappingURL=index.js.map","import { logLevels } from \"./log_levels.js\";\nimport { consoleFormatter } from \"./formatter.js\";\nimport { polyfill } from \"./platform.js\";\nimport { unpartial } from \"unpartial\";\n//#region ts/console.ts\nfunction toConsoleMethod(level) {\n\tswitch (true) {\n\t\tcase level <= 0: return \"debug\";\n\t\tcase level <= logLevels.error: return \"error\";\n\t\tcase level <= logLevels.warn: return \"warn\";\n\t\tcase level <= logLevels.info: return \"info\";\n\t\tdefault: return \"debug\";\n\t}\n}\n// istanbul ignore next\nfunction buildPolyfillConsole() {\n\tif (!!console.log.bind) return {\n\t\tdebug: (typeof console.info === \"function\" ? console.debug : console.log).bind(console),\n\t\tinfo: (typeof console.info === \"function\" ? console.info : console.log).bind(console),\n\t\twarn: (typeof console.warn === \"function\" ? console.warn : console.log).bind(console),\n\t\terror: (typeof console.error === \"function\" ? console.error : console.log).bind(console)\n\t};\n\treturn {\n\t\tdebug: buildFn(typeof console.debug === \"function\" ? \"debug\" : \"log\"),\n\t\tinfo: buildFn(typeof console.info === \"function\" ? \"info\" : \"log\"),\n\t\twarn: buildFn(typeof console.warn === \"function\" ? \"warn\" : \"log\"),\n\t\terror: buildFn(typeof console.error === \"function\" ? \"error\" : \"log\")\n\t};\n}\n// istanbul ignore next\nfunction buildFn(name) {\n\treturn (...args) => {\n\t\tconsole[name](...args);\n\t};\n}\nfunction createConsoleLogReporter(options) {\n\tconst { id, formatter, filter } = unpartial({\n\t\tid: \"console\",\n\t\tformatter: consoleFormatter\n\t}, options);\n\tif (!polyfill.console) polyfill.console = buildPolyfillConsole();\n\treturn Object.freeze({\n\t\tid,\n\t\tisConsoleReporter: true,\n\t\tget formatter() {\n\t\t\treturn formatter;\n\t\t},\n\t\tget filter() {\n\t\t\treturn filter;\n\t\t},\n\t\tconsole: polyfill.console,\n\t\twrite(entry) {\n\t\t\tif (filter && !filter(entry)) return;\n\t\t\tconst values = formatter(entry);\n\t\t\tconst method = toConsoleMethod(entry.level);\n\t\t\tthis.console[method](...values);\n\t\t}\n\t});\n}\n//#endregion\nexport { createConsoleLogReporter, toConsoleMethod };\n\n//# sourceMappingURL=console.js.map","/* eslint-env browser */\n'use strict';\n\nfunction getChromeVersion() {\n\tconst matches = /(Chrome|Chromium)\\/(?<chromeVersion>\\d+)\\./.exec(navigator.userAgent);\n\n\tif (!matches) {\n\t\treturn;\n\t}\n\n\treturn Number.parseInt(matches.groups.chromeVersion, 10);\n}\n\nconst colorSupport = getChromeVersion() >= 69 ? {\n\tlevel: 1,\n\thasBasic: true,\n\thas256: false,\n\thas16m: false\n} : false;\n\nmodule.exports = {\n\tstdout: colorSupport,\n\tstderr: colorSupport\n};\n","import sc from 'supports-color'\n\n/**\n * Color level.\n * This is the same definition as the `ColorSupportLevel` in `supports-color`.\n * Using the same definition for simplicity\n * @see https://github.com/chalk/supports-color/blob/main/index.d.ts#L19\n */\nexport enum ColorLevels {\n\tDISABLED = 0,\n\t/**\n\t * Basic 16 colors (4-bits)\n\t */\n\tBASIC = 1,\n\t/**\n\t * ANSI 256 colors (8-bits)\n\t */\n\tANSI = 2,\n\t/**\n\t * Truecolor 16 million colors (24-bits)\n\t */\n\tTRUE = 3\n}\n\nexport namespace supportColor {\n\texport type Result = { stdout: ColorLevels; stderr: ColorLevels }\n}\n\nlet value: supportColor.Result\n\n/**\n * Detects if the platform supports color.\n * For browser, the value can only be:\n * - `{ stdout: 0, stderr: 0 }` (DISABLED), or\n * - `{ stdout: 3, stderr: 3 }` (TRUE).\n * So you only need to check one case.\n * The result value is made the same so that it can be used in all platforms.\n */\nexport function supportColor(): supportColor.Result {\n\t// istanbul ignore next\n\treturn (value = value || {\n\t\tstderr: sc.stderr ? sc.stderr.level : ColorLevels.DISABLED,\n\t\tstdout: sc.stdout ? sc.stdout.level : ColorLevels.DISABLED\n\t})\n}\n","export type AnsiColor = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7\nexport const ANSI_BLACK = 0\nexport const ANSI_RED = 1\nexport const ANSI_GREEN = 2\nexport const ANSI_YELLOW = 3\nexport const ANSI_BLUE = 4\nexport const ANSI_MAGENTA = 5\nexport const ANSI_CYAN = 6\nexport const ANSI_WHITE = 7\n\nexport type AnsiStyle = 1 | 4\nexport const ANSI_BRIGHT = 1\nexport const ANSI_UNDERSCORE = 4\n\nexport const ANSI_FOREGROUND = 30\nexport const ANSI_BACKGROUND = 40\n","export function wrapAnsi(text: string, codes: number[]) {\n\treturn `\\u001B[${codes.join(';')}m${text}\\u001B[0m`\n}\n","import { createTimestampFormatter, type LogEntry, type TimestampFormat, toConsoleMethod } from 'standard-log'\nimport { ColorLevels, supportColor } from '../supportColor.js'\nimport {\n\tANSI_BACKGROUND,\n\tANSI_BLACK,\n\tANSI_BLUE,\n\tANSI_BRIGHT,\n\tANSI_CYAN,\n\tANSI_FOREGROUND,\n\tANSI_GREEN,\n\tANSI_MAGENTA,\n\tANSI_RED,\n\tANSI_UNDERSCORE,\n\tANSI_WHITE,\n\tANSI_YELLOW\n} from './constants.js'\nimport { wrapAnsi } from './wrapAnsi.js'\n\nexport type AnsiFormatterOptions = {\n\ttimestamp: TimestampFormat\n}\n\nexport function createAnsiFormatter(options: AnsiFormatterOptions = { timestamp: 'none' }) {\n\tconst timestampFormatter = createTimestampFormatter(options.timestamp)\n\n\treturn function ansiFormatter(entry: LogEntry) {\n\t\tconst consoleMethod = toConsoleMethod(entry.level)\n\t\tconst id = formatID(consoleMethod, entry.id)\n\t\tconst args = formatArgs(timestampFormatter, consoleMethod, entry)\n\t\treturn [id, ...args]\n\t}\n}\n\nfunction formatArgs(\n\ttimestampFormatter: (timestamp: Date) => string | undefined,\n\tmethod: 'error' | 'warn' | 'info' | 'debug',\n\tentry: Pick<LogEntry, 'args' | 'timestamp'>\n) {\n\tconst args = [...entry.args]\n\tconst timestamp = timestampFormatter(entry.timestamp)\n\tif (timestamp !== undefined) args.push(timestamp)\n\tconst textCodes =\n\t\tmethod === 'error'\n\t\t\t? [ANSI_RED + ANSI_FOREGROUND]\n\t\t\t: method === 'warn'\n\t\t\t\t? [ANSI_YELLOW + ANSI_FOREGROUND]\n\t\t\t\t: undefined\n\n\treturn textCodes ? args.map(x => wrapAnsi(x, textCodes)) : args\n}\n\nfunction formatID(method: 'error' | 'warn' | 'info' | 'debug', id: string) {\n\tconst colorLevels = supportColor()\n\tconst colorLevel = method === 'error' ? colorLevels.stderr : colorLevels.stdout\n\treturn toIDFormatter(colorLevel)(id)\n}\n\nfunction toIDFormatter(colorLevel: ColorLevels) {\n\t// istanbul ignore next\n\tswitch (colorLevel) {\n\t\tcase ColorLevels.DISABLED:\n\t\t\treturn (id: string) => id\n\t\tcase ColorLevels.BASIC:\n\t\t\treturn basicIDFormatter\n\t\tcase ColorLevels.ANSI:\n\t\t\treturn ansiIDFormatter\n\t\tcase ColorLevels.TRUE:\n\t\t\treturn truecolorIDFormatter\n\t}\n}\n\nfunction basicIDFormatter(id: string) {\n\tconst codes = getAnsiColor(id)\n\treturn wrapAnsi(` ${id} `, codes)\n}\n\nconst ansiColors: {\n\tcounter: number\n\tlist: Array<number[]>\n} = {\n\tcounter: 0,\n\tlist: [\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE]\n\t]\n}\nconst ansiColorMap: Record<string, number[]> = Object.create(null)\n\nfunction getAnsiColor(id: string) {\n\treturn (ansiColorMap[id] =\n\t\tansiColorMap[id] || ansiColors.list[ansiColors.counter++ % ansiColors.list.length])\n}\n\n// istanbul ignore next\nfunction ansiIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n\n// istanbul ignore next\nfunction truecolorIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n","export function createColors(from, to, shades, alpha = [\n from.length === 4 ? from[3] : to.length === 4 ? to[3] : 1,\n to.length === 4 ? to[3] : from.length === 4 ? from[3] : 1\n]) {\n const start = [...from];\n const diff = [\n to[0] - from[0],\n to[1] - from[1],\n to[2] - from[2],\n alpha[1] - alpha[0]\n ];\n if (start.length === 3)\n start.push(alpha[0]);\n const inc = 1 / Math.max(shades - 1, 1);\n const rgba = [];\n for (let i = 0; i < shades; i++) {\n const color = [\n Math.round(start[0] + i * diff[0] * inc),\n Math.round(start[1] + i * diff[1] * inc),\n Math.round(start[2] + i * diff[2] * inc),\n start[3] + i * diff[3] * inc\n ];\n rgba.push(color);\n }\n return rgba;\n}\n//# sourceMappingURL=createColors.js.map","import { createColors } from './createColors.js';\n/**\n * Create colors with specified color map.\n */\nexport function createColorsFromMap(colormap, shades, alpha) {\n if (shades < colormap.length) {\n throw new Error(`Requires at least ${colormap.length} shades.`);\n }\n const result = [];\n const steps = [];\n for (let i = 0; i < colormap.length; i++) {\n steps.push(Math.round(colormap[i].index * shades));\n }\n for (let i = 0; i < colormap.length - 1; i++) {\n const n = steps[i + 1] - steps[i];\n const from = colormap[i].rgb;\n const to = colormap[i + 1].rgb;\n result.push(...createColors(from, to, n, alpha));\n }\n return result;\n}\n//# sourceMappingURL=createColorsFromMap.js.map","/**\n * Convert `RGB` to `#rgb`\n * JavaScript note: no check for array length, use it properly.\n */\nexport function rgbHex(rgb) {\n let hex = '#';\n for (let i = 0; i < 3; i++) {\n hex += d2h(rgb[i]);\n }\n return hex;\n}\nfunction d2h(d) {\n const s = (+d).toString(16);\n return s.length < 2 ? '0' + s : s;\n}\n//# sourceMappingURL=rgbHex.js.map","import type { ColorMap } from 'color-map'\n\nexport const rainbow: ColorMap = [\n\t{ index: 0, rgb: [150, 0, 90] },\n\t{ index: 0.125, rgb: [0, 0, 200] },\n\t{ index: 0.25, rgb: [0, 25, 255] },\n\t{ index: 0.375, rgb: [0, 152, 255] },\n\t{ index: 0.5, rgb: [44, 255, 150] },\n\t{ index: 0.625, rgb: [151, 255, 0] },\n\t{ index: 0.75, rgb: [255, 234, 0] },\n\t{ index: 0.875, rgb: [255, 111, 0] },\n\t{ index: 1, rgb: [255, 0, 0] }\n]\n","import { createColorsFromMap, type RGB, type RGBA, rgbHex } from 'color-map'\nimport { createTimestampFormatter, type LogEntry } from 'standard-log'\nimport { required } from 'unpartial'\nimport type { CssFormatterOptions } from '../types.js'\nimport { rainbow } from './colors.js'\n\nexport function createCssFormatter(options?: CssFormatterOptions) {\n\tconst { maxColor, timestamp, style } = required(\n\t\t{\n\t\t\tmaxColor: 20,\n\t\t\ttimestamp: 'none',\n\t\t\tstyle: 'padding: 2px; line-height: 1rem;'\n\t\t},\n\t\toptions\n\t)\n\tconst loggerMap: Record<string, RGB> = Object.create(null)\n\tconst colorMap: RGBA[] = createColorsFromMap(rainbow, maxColor)\n\tlet count = 0\n\n\tconst timestampFormatter = createTimestampFormatter(timestamp)\n\n\treturn function cssFormatter(entry: LogEntry) {\n\t\tlet idStr = `%c ${entry.id} `\n\t\tlet args: any[]\n\t\tif (firstArgIsColorTemplate(entry.args)) {\n\t\t\tidStr += entry.args[0]\n\t\t\targs = [...entry.args.slice(1)]\n\t\t} else {\n\t\t\targs = [...entry.args]\n\t\t}\n\t\tconst rgb = getRgb(entry.id)\n\t\tconst background = rgbHex(rgb)\n\t\tconst border = rgbHex(rgb.map(x => Math.max(0, x - 32)) as RGB)\n\t\tconst color = getForegroundColor(rgb)\n\t\tconst result = [\n\t\t\tidStr,\n\t\t\t`${style}background: ${background};border: 1px solid ${border};color: ${color};`,\n\t\t\t...args\n\t\t]\n\t\tconst t = timestampFormatter(entry.timestamp)\n\t\tif (t !== undefined) result.push(t)\n\t\treturn result\n\t}\n\n\tfunction firstArgIsColorTemplate(args: any[]) {\n\t\treturn typeof args[0] === 'string' && args[0].indexOf('%c') !== -1\n\t}\n\n\tfunction getRgb(id: string) {\n\t\treturn (loggerMap[id] = loggerMap[id] || colorMap[count++ & maxColor])\n\t}\n}\n\nconst gammaMap = {\n\trc: 0.2126,\n\tgc: 0.7152,\n\tbc: 0.0722,\n\tlowc: 1 / 12.92\n}\n\nfunction getForegroundColor(background: RGB) {\n\t// Setting the contrasting color as default\n\tlet color = getComplementary(background)\n\tconst bgLuminance = getRelativeLuminance(background)\n\tconst fgLuminance =\n\t\tcolor === '#ffffff' ? getRelativeLuminance([255, 255, 255]) : getRelativeLuminance([0, 0, 0])\n\tconst relativeL =\n\t\tbgLuminance > fgLuminance\n\t\t\t? (bgLuminance + 0.05) / (fgLuminance + 0.05)\n\t\t\t: (fgLuminance + 0.05) / (bgLuminance + 0.05)\n\n\t// Can set the contrast ratio based on text size later.\n\tif (relativeL < 4.5) {\n\t\tconst avgLuminance =\n\t\t\tbackground[0] * gammaMap['rc'] + background[1] * gammaMap['gc'] + background[2] * gammaMap['bc']\n\n\t\t// If the relative contrast is lower than standard, we switch color to black/white\n\t\tcolor = avgLuminance < 220 ? '#ffffff' : '#000000'\n\t}\n\treturn color\n}\n\nfunction getRelativeLuminance(rgb: RGB) {\n\t// https://www.w3.org/TR/WCAG/#relativeluminancedef\n\tconst rsrgb = rgb[0] / 255\n\tconst gsrgb = rgb[1] / 255\n\tconst bsrgb = rgb[2] / 255\n\n\tconst r = rsrgb <= 0.03928 ? rsrgb * gammaMap['lowc'] : ((rsrgb + 0.055) / 1.055) ** 2.4\n\tconst g = gsrgb <= 0.03928 ? gsrgb * gammaMap['lowc'] : ((gsrgb + 0.055) / 1.055) ** 2.4\n\tconst b = bsrgb <= 0.03928 ? bsrgb * gammaMap['lowc'] : ((bsrgb + 0.055) / 1.055) ** 2.4\n\n\treturn r * gammaMap['rc'] + g * gammaMap['gc'] + b * gammaMap['bc']\n}\n\nfunction getComplementary(rgb: RGB) {\n\tconst r = 255 - rgb[0]\n\tconst g = 255 - rgb[1]\n\tconst b = 255 - rgb[2]\n\treturn rgbHex([r, g, b])\n}\n","import { consoleFormatter, createConsoleLogReporter } from 'standard-log'\nimport { unpartial } from 'unpartial'\nimport { createCssFormatter } from './css/index.js'\nimport type { ColorLogReporterOptions } from './types.js'\n\nexport function createColorLogReporter(options?: ColorLogReporterOptions) {\n\treturn createConsoleLogReporter(\n\t\tunpartial(\n\t\t\t{\n\t\t\t\tformatter: supportCSSColorInConsole()\n\t\t\t\t\t? createCssFormatter(options?.cssFormatterOptions)\n\t\t\t\t\t: consoleFormatter\n\t\t\t},\n\t\t\toptions\n\t\t)\n\t)\n}\n\n// istanbul ignore next\nfunction supportCSSColorInConsole() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\t// @ts-expect-error\n\tif (window?.process?.type === 'renderer' || window?.process?.__nwjs) {\n\t\treturn true\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (navigator?.userAgent?.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (\n\t\t// @ts-expect-error\n\t\tdocument?.documentElement?.style?.WebkitAppearance ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t// @ts-expect-error\n\t\twindow?.console?.firebug ||\n\t\t// @ts-expect-error\n\t\t(window?.console?.exception && window?.console?.table) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(navigator?.userAgent?.toLowerCase().match(/firefox\\/(\\d+)/) && Number.parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\tnavigator?.userAgent?.toLowerCase().match(/applewebkit\\/(\\d+)/)\n\t)\n}\n"],"x_google_ignoreList":[1,3,5,7,12,13,14],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAM,YAAY;;;;CAIjB,MAAM;;;;;;CAMN,WAAW;;;;;;CAMX,OAAO;;;;;;CAMP,UAAU;;;;;;CAMV,OAAO;;;;;;CAMP,MAAM;;;;;;CAMN,QAAQ;;;;;;CAMR,MAAM;;;;;;CAMN,OAAO;;;;;;CAMP,OAAO;;;;;;;CAOP,QAAQ,OAAO;;;;CAIf,KAAK,OAAO;AACb;;;;;;;CCnEA,IAAI,IAAI;CACR,IAAI,IAAI,IAAI;CACZ,IAAI,IAAI,IAAI;CACZ,IAAI,IAAI,IAAI;CACZ,IAAI,IAAI,IAAI;CACZ,IAAI,IAAI,IAAI;;;;;;;;;;;;;;CAgBZ,OAAO,UAAU,SAAU,KAAK,SAAS;EACvC,UAAU,WAAW,CAAC;EACtB,IAAI,OAAO,OAAO;EAClB,IAAI,SAAS,YAAY,IAAI,SAAS,GACpC,OAAO,MAAM,GAAG;OACX,IAAI,SAAS,YAAY,SAAS,GAAG,GAC1C,OAAO,QAAQ,OAAO,QAAQ,GAAG,IAAI,SAAS,GAAG;EAEnD,MAAM,IAAI,MACR,0DACE,KAAK,UAAU,GAAG,CACtB;CACF;;;;;;;;CAUA,SAAS,MAAM,KAAK;EAClB,MAAM,OAAO,GAAG;EAChB,IAAI,IAAI,SAAS,KACf;EAEF,IAAI,QAAQ,mIAAmI,KAC7I,GACF;EACA,IAAI,CAAC,OACH;EAEF,IAAI,IAAI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AM,IAAI;EACV,MAAM,IAAI;CACE,CAAC;AACxB;;;AC/FA,SAAgB,uBAAuB,SAAmC;CACzE,OAAO,yBACN,UACC,EACC,WAAW,yBAAyB,IACjC,mBAAmB,SAAS,mBAAmB,IAC/C,iBACJ,GACA,OACD,CACD;AACD;;AAGA,SAAS,2BAA2B;CAKnC,IAAI,QAAQ,SAAS,SAAS,cAAc,QAAQ,SAAS,QAC5D,OAAO;CAIR,IAAI,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,uBAAuB,GACpE,OAAO;CAKR,OAEC,UAAU,iBAAiB,OAAO,oBAGlC,QAAQ,SAAS,WAEhB,QAAQ,SAAS,aAAa,QAAQ,SAAS,SAG/C,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,gBAAgB,KAAK,OAAO,SAAS,OAAO,IAAI,EAAE,KAAK,MAElG,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,oBAAoB;AAEhE"}
|
|
1
|
+
{"version":3,"file":"standard-log-color.esm.js","names":["ms","sc"],"sources":["../../log/esm/log_levels.js","../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","../../log/esm/formatter.js","../../log/esm/record.js","../../log/esm/platform.browser.js","../../../node_modules/.pnpm/unpartial@1.0.8/node_modules/unpartial/esm/index.js","../../log/esm/console.js","../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js","../ts/supportColor.ts","../ts/ansi/constants.ts","../ts/ansi/wrapAnsi.ts","../ts/ansi/ansiFormatter.ts","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColors.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColorsFromMap.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/rgbHex.js","../ts/css/colors.ts","../ts/css/cssFormatter.ts","../ts/createColorLogReporter.browser.ts"],"sourcesContent":["//#region ts/log_levels.ts\nconst logLevels = {\n\t/**\n\t* none: 0\n\t*/\n\tnone: 0,\n\t/**\n\t* emergency: 100\n\t*\n\t* emergency -> alert\n\t*/\n\temergency: 100,\n\t/**\n\t* alert: 200\n\t*\n\t* emergency -> alert -> critical\n\t*/\n\talert: 200,\n\t/**\n\t* critical: 300\n\t*\n\t* alert -> critical -> error\n\t*/\n\tcritical: 300,\n\t/**\n\t* error: 400\n\t*\n\t* critical -> error -> warn\n\t*/\n\terror: 400,\n\t/**\n\t* warn: 500\n\t*\n\t* error -> warn -> notice\n\t*/\n\twarn: 500,\n\t/**\n\t* notice: 600\n\t*\n\t* warn -> notice -> info\n\t*/\n\tnotice: 600,\n\t/**\n\t* info: 700\n\t*\n\t* notice -> info -> debug\n\t*/\n\tinfo: 700,\n\t/**\n\t* debug: 800\n\t*\n\t* info -> debug -> trace\n\t*/\n\tdebug: 800,\n\t/**\n\t* trace: 900\n\t*\n\t* debug -> trace -> planck\n\t*/\n\ttrace: 900,\n\t/**\n\t* planck: Infinity\n\t* `planck unit` is a very small unit <https://en.wikipedia.org/wiki/Planck_units>.\n\t*\n\t* trace -> planck\n\t*/\n\tplanck: Number.POSITIVE_INFINITY,\n\t/**\n\t* all: Infinity\n\t*/\n\tall: Number.POSITIVE_INFINITY\n};\n/**\n* Convert default log level value to log level name.\n*/\nfunction toLogLevelName(level) {\n\tif (level <= 100) return \"emergency\";\n\tif (level <= 200) return \"alert\";\n\tif (level <= 300) return \"critical\";\n\tif (level <= 400) return \"error\";\n\tif (level <= 500) return \"warn\";\n\tif (level <= 600) return \"notice\";\n\tif (level <= 700) return \"info\";\n\tif (level <= 800) return \"debug\";\n\tif (level <= 900) return \"trace\";\n\treturn \"planck\";\n}\n/**\n* Convert default log level name to log level value.\n*/\nfunction toLogLevel(name) {\n\treturn logLevels[name.toLocaleLowerCase()];\n}\nconst DEFAULT_LOG_METHOD_NAMES = [\n\t\"emergency\",\n\t\"alert\",\n\t\"critical\",\n\t\"error\",\n\t\"warn\",\n\t\"notice\",\n\t\"info\",\n\t\"debug\",\n\t\"trace\",\n\t\"planck\"\n];\n//#endregion\nexport { DEFAULT_LOG_METHOD_NAMES, logLevels, toLogLevel, toLogLevelName };\n\n//# sourceMappingURL=log_levels.js.map","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","import { toLogLevelName } from \"./log_levels.js\";\nimport ms from \"ms\";\n//#region ts/formatter.ts\nfunction createTimestampFormatter(format) {\n\tswitch (format) {\n\t\tcase \"none\": return (_timestamp) => void 0;\n\t\tcase \"iso\": return (timestamp) => timestamp.toISOString();\n\t\tcase \"elapsed\": {\n\t\t\tlet lastTick;\n\t\t\treturn (timestamp) => {\n\t\t\t\tconst newTick = timestamp.getTime();\n\t\t\t\tconst result = ms(lastTick === void 0 ? 0 : newTick - lastTick);\n\t\t\t\tlastTick = newTick;\n\t\t\t\treturn result;\n\t\t\t};\n\t\t}\n\t}\n}\nfunction formatLogLevel(level) {\n\treturn `(${toLogLevelName(level).toUpperCase()})`;\n}\n/**\n* Formats log entry as plain text with the following format:\n* `timestamp id level ...args`\n*\n* This is typically useful for writing logs to file\n*/\nfunction plainLogFormatter({ id, level, args, timestamp }) {\n\treturn [\n\t\ttimestamp.toISOString(),\n\t\tid,\n\t\tformatLogLevel(level),\n\t\t...args\n\t];\n}\n/**\n* Formats log entry like default console log.\n*/\nfunction consoleFormatter({ args }) {\n\treturn args;\n}\n//#endregion\nexport { consoleFormatter, createTimestampFormatter, formatLogLevel, plainLogFormatter };\n\n//# sourceMappingURL=formatter.js.map","//#region ts/record.ts\n/**\n* Creates a prototype-less object, optionally seeded with `value`.\n*\n* Inlined from `type-plus` so the CJS build does not `require()` the ESM-only `type-plus`.\n*/\nfunction record(value) {\n\tconst r = Object.create(null);\n\treturn value ? Object.assign(r, value) : r;\n}\n//#endregion\nexport { record };\n\n//# sourceMappingURL=record.js.map","import { record } from \"./record.js\";\n//#region ts/platform.browser.ts\nconst toInspectLogEntry = (e) => e;\nconst polyfill = record();\n//#endregion\nexport { polyfill, toInspectLogEntry };\n\n//# sourceMappingURL=platform.browser.js.map","//#region ts/index.ts\nfunction required(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => {\n\t\treturn {\n\t\t\t...p,\n\t\t\t...e\n\t\t};\n\t});\n}\nfunction requiredDeep(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => deepmerge(p, e));\n}\nfunction merge(entries, reducer) {\n\tif (entries[0] === void 0 || entries[0] === null) return entries[0];\n\treturn entries.filter((x) => !!x).reduce(reducer, {});\n}\nfunction deepmerge(source1, source2) {\n\tif (typeof source1 !== \"object\" || source1 === null) return source2 !== void 0 ? source2 : source1;\n\tif (Array.isArray(source1)) {\n\t\tif (Array.isArray(source2)) return source2;\n\t\tif (source2 === void 0) return [...source1];\n\t\treturn [...source1, source2];\n\t}\n\treturn getAllKeys(source1).concat(getAllKeys(source2)).reduce((p, k) => {\n\t\tp[k] = deepmerge(source1[k], source2 && source2[k]);\n\t\treturn p;\n\t}, {});\n}\nfunction getAllKeys(subject, internal = false) {\n\tif (typeof subject !== \"object\") return [];\n\tconst propertyNames = Object.getOwnPropertyNames(subject);\n\tconst keys = internal ? propertyNames.filter((n) => n !== \"constructor\") : propertyNames;\n\tconst proto = Object.getPrototypeOf(subject);\n\treturn proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;\n}\nfunction unpartial(s1, s2, s3) {\n\tif (s1 === void 0 || s1 === null) return s1;\n\treturn [\n\t\ts1,\n\t\ts2,\n\t\ts3\n\t].filter(notNil).reduce((p, s) => ({\n\t\t...p,\n\t\t...trimNilProps(s)\n\t}), {});\n}\nfunction trimNilProps(value) {\n\treturn Object.keys(value).reduce((p, k) => {\n\t\tif (notNil(value[k])) p[k] = value[k];\n\t\treturn p;\n\t}, {});\n}\nfunction notNil(value) {\n\treturn value !== null && value !== void 0;\n}\nfunction unpartialRecursively(arg1, arg2, arg3) {\n\treturn requiredDeep(arg1, arg2, arg3);\n}\n//#endregion\nexport { required, requiredDeep, unpartial, unpartialRecursively };\n\n//# sourceMappingURL=index.js.map","import { logLevels } from \"./log_levels.js\";\nimport { consoleFormatter } from \"./formatter.js\";\nimport { polyfill } from \"./platform.js\";\nimport { unpartial } from \"unpartial\";\n//#region ts/console.ts\nfunction toConsoleMethod(level) {\n\tswitch (true) {\n\t\tcase level <= 0: return \"debug\";\n\t\tcase level <= logLevels.error: return \"error\";\n\t\tcase level <= logLevels.warn: return \"warn\";\n\t\tcase level <= logLevels.info: return \"info\";\n\t\tdefault: return \"debug\";\n\t}\n}\n// istanbul ignore next\nfunction buildPolyfillConsole() {\n\tif (!!console.log.bind) return {\n\t\tdebug: (typeof console.info === \"function\" ? console.debug : console.log).bind(console),\n\t\tinfo: (typeof console.info === \"function\" ? console.info : console.log).bind(console),\n\t\twarn: (typeof console.warn === \"function\" ? console.warn : console.log).bind(console),\n\t\terror: (typeof console.error === \"function\" ? console.error : console.log).bind(console)\n\t};\n\treturn {\n\t\tdebug: buildFn(typeof console.debug === \"function\" ? \"debug\" : \"log\"),\n\t\tinfo: buildFn(typeof console.info === \"function\" ? \"info\" : \"log\"),\n\t\twarn: buildFn(typeof console.warn === \"function\" ? \"warn\" : \"log\"),\n\t\terror: buildFn(typeof console.error === \"function\" ? \"error\" : \"log\")\n\t};\n}\n// istanbul ignore next\nfunction buildFn(name) {\n\treturn (...args) => {\n\t\tconsole[name](...args);\n\t};\n}\nfunction createConsoleLogReporter(options) {\n\tconst { id, formatter, filter } = unpartial({\n\t\tid: \"console\",\n\t\tformatter: consoleFormatter\n\t}, options);\n\tif (!polyfill.console) polyfill.console = buildPolyfillConsole();\n\treturn Object.freeze({\n\t\tid,\n\t\tisConsoleReporter: true,\n\t\tget formatter() {\n\t\t\treturn formatter;\n\t\t},\n\t\tget filter() {\n\t\t\treturn filter;\n\t\t},\n\t\tconsole: polyfill.console,\n\t\twrite(entry) {\n\t\t\tif (filter && !filter(entry)) return;\n\t\t\tconst values = formatter(entry);\n\t\t\tconst method = toConsoleMethod(entry.level);\n\t\t\tthis.console[method](...values);\n\t\t}\n\t});\n}\n//#endregion\nexport { createConsoleLogReporter, toConsoleMethod };\n\n//# sourceMappingURL=console.js.map","/* eslint-env browser */\n'use strict';\n\nfunction getChromeVersion() {\n\tconst matches = /(Chrome|Chromium)\\/(?<chromeVersion>\\d+)\\./.exec(navigator.userAgent);\n\n\tif (!matches) {\n\t\treturn;\n\t}\n\n\treturn Number.parseInt(matches.groups.chromeVersion, 10);\n}\n\nconst colorSupport = getChromeVersion() >= 69 ? {\n\tlevel: 1,\n\thasBasic: true,\n\thas256: false,\n\thas16m: false\n} : false;\n\nmodule.exports = {\n\tstdout: colorSupport,\n\tstderr: colorSupport\n};\n","import sc from 'supports-color'\n\n/**\n * Color level.\n * This is the same definition as the `ColorSupportLevel` in `supports-color`.\n * Using the same definition for simplicity\n * @see https://github.com/chalk/supports-color/blob/main/index.d.ts#L19\n */\nexport enum ColorLevels {\n\tDISABLED = 0,\n\t/**\n\t * Basic 16 colors (4-bits)\n\t */\n\tBASIC = 1,\n\t/**\n\t * ANSI 256 colors (8-bits)\n\t */\n\tANSI = 2,\n\t/**\n\t * Truecolor 16 million colors (24-bits)\n\t */\n\tTRUE = 3\n}\n\nexport namespace supportColor {\n\texport type Result = { stdout: ColorLevels; stderr: ColorLevels }\n}\n\nlet value: supportColor.Result\n\n/**\n * Detects if the platform supports color.\n * For browser, the value can only be:\n * - `{ stdout: 0, stderr: 0 }` (DISABLED), or\n * - `{ stdout: 3, stderr: 3 }` (TRUE).\n * So you only need to check one case.\n * The result value is made the same so that it can be used in all platforms.\n */\nexport function supportColor(): supportColor.Result {\n\t// istanbul ignore next\n\treturn (value = value || {\n\t\tstderr: sc.stderr ? sc.stderr.level : ColorLevels.DISABLED,\n\t\tstdout: sc.stdout ? sc.stdout.level : ColorLevels.DISABLED\n\t})\n}\n","export type AnsiColor = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7\nexport const ANSI_BLACK = 0\nexport const ANSI_RED = 1\nexport const ANSI_GREEN = 2\nexport const ANSI_YELLOW = 3\nexport const ANSI_BLUE = 4\nexport const ANSI_MAGENTA = 5\nexport const ANSI_CYAN = 6\nexport const ANSI_WHITE = 7\n\nexport type AnsiStyle = 1 | 4\nexport const ANSI_BRIGHT = 1\nexport const ANSI_UNDERSCORE = 4\n\nexport const ANSI_FOREGROUND = 30\nexport const ANSI_BACKGROUND = 40\n","export function wrapAnsi(text: string, codes: number[]) {\n\treturn `\\u001B[${codes.join(';')}m${text}\\u001B[0m`\n}\n","import { createTimestampFormatter, type LogEntry, type TimestampFormat, toConsoleMethod } from 'standard-log'\nimport { ColorLevels, supportColor } from '../supportColor.js'\nimport {\n\tANSI_BACKGROUND,\n\tANSI_BLACK,\n\tANSI_BLUE,\n\tANSI_BRIGHT,\n\tANSI_CYAN,\n\tANSI_FOREGROUND,\n\tANSI_GREEN,\n\tANSI_MAGENTA,\n\tANSI_RED,\n\tANSI_UNDERSCORE,\n\tANSI_WHITE,\n\tANSI_YELLOW\n} from './constants.js'\nimport { wrapAnsi } from './wrapAnsi.js'\n\nexport type AnsiFormatterOptions = {\n\ttimestamp: TimestampFormat\n}\n\nexport function createAnsiFormatter(options: AnsiFormatterOptions = { timestamp: 'none' }) {\n\tconst timestampFormatter = createTimestampFormatter(options.timestamp)\n\n\treturn function ansiFormatter(entry: LogEntry) {\n\t\tconst consoleMethod = toConsoleMethod(entry.level)\n\t\tconst id = formatID(consoleMethod, entry.id)\n\t\tconst args = formatArgs(timestampFormatter, consoleMethod, entry)\n\t\treturn [id, ...args]\n\t}\n}\n\nfunction formatArgs(\n\ttimestampFormatter: (timestamp: Date) => string | undefined,\n\tmethod: 'error' | 'warn' | 'info' | 'debug',\n\tentry: Pick<LogEntry, 'args' | 'timestamp'>\n) {\n\tconst args = [...entry.args]\n\tconst timestamp = timestampFormatter(entry.timestamp)\n\tif (timestamp !== undefined) args.push(timestamp)\n\tconst textCodes =\n\t\tmethod === 'error'\n\t\t\t? [ANSI_RED + ANSI_FOREGROUND]\n\t\t\t: method === 'warn'\n\t\t\t\t? [ANSI_YELLOW + ANSI_FOREGROUND]\n\t\t\t\t: undefined\n\n\treturn textCodes ? args.map(x => wrapAnsi(x, textCodes)) : args\n}\n\nfunction formatID(method: 'error' | 'warn' | 'info' | 'debug', id: string) {\n\tconst colorLevels = supportColor()\n\tconst colorLevel = method === 'error' ? colorLevels.stderr : colorLevels.stdout\n\treturn toIDFormatter(colorLevel)(id)\n}\n\nfunction toIDFormatter(colorLevel: ColorLevels) {\n\t// istanbul ignore next\n\tswitch (colorLevel) {\n\t\tcase ColorLevels.DISABLED:\n\t\t\treturn (id: string) => id\n\t\tcase ColorLevels.BASIC:\n\t\t\treturn basicIDFormatter\n\t\tcase ColorLevels.ANSI:\n\t\t\treturn ansiIDFormatter\n\t\tcase ColorLevels.TRUE:\n\t\t\treturn truecolorIDFormatter\n\t}\n}\n\nfunction basicIDFormatter(id: string) {\n\tconst codes = getAnsiColor(id)\n\treturn wrapAnsi(` ${id} `, codes)\n}\n\nconst ansiColors: {\n\tcounter: number\n\tlist: Array<number[]>\n} = {\n\tcounter: 0,\n\tlist: [\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE]\n\t]\n}\nconst ansiColorMap: Record<string, number[]> = Object.create(null)\n\nfunction getAnsiColor(id: string) {\n\treturn (ansiColorMap[id] =\n\t\tansiColorMap[id] || ansiColors.list[ansiColors.counter++ % ansiColors.list.length])\n}\n\n// istanbul ignore next\nfunction ansiIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n\n// istanbul ignore next\nfunction truecolorIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n","export function createColors(from, to, shades, alpha = [\n from.length === 4 ? from[3] : to.length === 4 ? to[3] : 1,\n to.length === 4 ? to[3] : from.length === 4 ? from[3] : 1\n]) {\n const start = [...from];\n const diff = [\n to[0] - from[0],\n to[1] - from[1],\n to[2] - from[2],\n alpha[1] - alpha[0]\n ];\n if (start.length === 3)\n start.push(alpha[0]);\n const inc = 1 / Math.max(shades - 1, 1);\n const rgba = [];\n for (let i = 0; i < shades; i++) {\n const color = [\n Math.round(start[0] + i * diff[0] * inc),\n Math.round(start[1] + i * diff[1] * inc),\n Math.round(start[2] + i * diff[2] * inc),\n start[3] + i * diff[3] * inc\n ];\n rgba.push(color);\n }\n return rgba;\n}\n//# sourceMappingURL=createColors.js.map","import { createColors } from './createColors.js';\n/**\n * Create colors with specified color map.\n */\nexport function createColorsFromMap(colormap, shades, alpha) {\n if (shades < colormap.length) {\n throw new Error(`Requires at least ${colormap.length} shades.`);\n }\n const result = [];\n const steps = [];\n for (let i = 0; i < colormap.length; i++) {\n steps.push(Math.round(colormap[i].index * shades));\n }\n for (let i = 0; i < colormap.length - 1; i++) {\n const n = steps[i + 1] - steps[i];\n const from = colormap[i].rgb;\n const to = colormap[i + 1].rgb;\n result.push(...createColors(from, to, n, alpha));\n }\n return result;\n}\n//# sourceMappingURL=createColorsFromMap.js.map","/**\n * Convert `RGB` to `#rgb`\n * JavaScript note: no check for array length, use it properly.\n */\nexport function rgbHex(rgb) {\n let hex = '#';\n for (let i = 0; i < 3; i++) {\n hex += d2h(rgb[i]);\n }\n return hex;\n}\nfunction d2h(d) {\n const s = (+d).toString(16);\n return s.length < 2 ? '0' + s : s;\n}\n//# sourceMappingURL=rgbHex.js.map","import type { ColorMap } from 'color-map'\n\nexport const rainbow: ColorMap = [\n\t{ index: 0, rgb: [150, 0, 90] },\n\t{ index: 0.125, rgb: [0, 0, 200] },\n\t{ index: 0.25, rgb: [0, 25, 255] },\n\t{ index: 0.375, rgb: [0, 152, 255] },\n\t{ index: 0.5, rgb: [44, 255, 150] },\n\t{ index: 0.625, rgb: [151, 255, 0] },\n\t{ index: 0.75, rgb: [255, 234, 0] },\n\t{ index: 0.875, rgb: [255, 111, 0] },\n\t{ index: 1, rgb: [255, 0, 0] }\n]\n","import { createColorsFromMap, type RGB, type RGBA, rgbHex } from 'color-map'\nimport { createTimestampFormatter, type LogEntry } from 'standard-log'\nimport { required } from 'unpartial'\nimport type { CssFormatterOptions } from '../types.js'\nimport { rainbow } from './colors.js'\n\nexport function createCssFormatter(options?: CssFormatterOptions) {\n\tconst { maxColor, timestamp, style } = required(\n\t\t{\n\t\t\tmaxColor: 20,\n\t\t\ttimestamp: 'none',\n\t\t\tstyle: 'padding: 2px; line-height: 1rem;'\n\t\t},\n\t\toptions\n\t)\n\tconst loggerMap: Record<string, RGB> = Object.create(null)\n\tconst colorMap: RGBA[] = createColorsFromMap(rainbow, maxColor)\n\tlet count = 0\n\n\tconst timestampFormatter = createTimestampFormatter(timestamp)\n\n\treturn function cssFormatter(entry: LogEntry) {\n\t\tlet idStr = `%c ${entry.id} `\n\t\tlet args: any[]\n\t\tif (firstArgIsColorTemplate(entry.args)) {\n\t\t\tidStr += entry.args[0]\n\t\t\targs = [...entry.args.slice(1)]\n\t\t} else {\n\t\t\targs = [...entry.args]\n\t\t}\n\t\tconst rgb = getRgb(entry.id)\n\t\tconst background = rgbHex(rgb)\n\t\tconst border = rgbHex(rgb.map(x => Math.max(0, x - 32)) as RGB)\n\t\tconst color = getForegroundColor(rgb)\n\t\tconst result = [\n\t\t\tidStr,\n\t\t\t`${style}background: ${background};border: 1px solid ${border};color: ${color};`,\n\t\t\t...args\n\t\t]\n\t\tconst t = timestampFormatter(entry.timestamp)\n\t\tif (t !== undefined) result.push(t)\n\t\treturn result\n\t}\n\n\tfunction firstArgIsColorTemplate(args: any[]) {\n\t\treturn typeof args[0] === 'string' && args[0].indexOf('%c') !== -1\n\t}\n\n\tfunction getRgb(id: string) {\n\t\treturn (loggerMap[id] = loggerMap[id] || colorMap[count++ & maxColor])\n\t}\n}\n\nconst gammaMap = {\n\trc: 0.2126,\n\tgc: 0.7152,\n\tbc: 0.0722,\n\tlowc: 1 / 12.92\n}\n\nfunction getForegroundColor(background: RGB) {\n\t// Setting the contrasting color as default\n\tlet color = getComplementary(background)\n\tconst bgLuminance = getRelativeLuminance(background)\n\tconst fgLuminance =\n\t\tcolor === '#ffffff' ? getRelativeLuminance([255, 255, 255]) : getRelativeLuminance([0, 0, 0])\n\tconst relativeL =\n\t\tbgLuminance > fgLuminance\n\t\t\t? (bgLuminance + 0.05) / (fgLuminance + 0.05)\n\t\t\t: (fgLuminance + 0.05) / (bgLuminance + 0.05)\n\n\t// Can set the contrast ratio based on text size later.\n\tif (relativeL < 4.5) {\n\t\tconst avgLuminance =\n\t\t\tbackground[0] * gammaMap['rc'] + background[1] * gammaMap['gc'] + background[2] * gammaMap['bc']\n\n\t\t// If the relative contrast is lower than standard, we switch color to black/white\n\t\tcolor = avgLuminance < 220 ? '#ffffff' : '#000000'\n\t}\n\treturn color\n}\n\nfunction getRelativeLuminance(rgb: RGB) {\n\t// https://www.w3.org/TR/WCAG/#relativeluminancedef\n\tconst rsrgb = rgb[0] / 255\n\tconst gsrgb = rgb[1] / 255\n\tconst bsrgb = rgb[2] / 255\n\n\tconst r = rsrgb <= 0.03928 ? rsrgb * gammaMap['lowc'] : ((rsrgb + 0.055) / 1.055) ** 2.4\n\tconst g = gsrgb <= 0.03928 ? gsrgb * gammaMap['lowc'] : ((gsrgb + 0.055) / 1.055) ** 2.4\n\tconst b = bsrgb <= 0.03928 ? bsrgb * gammaMap['lowc'] : ((bsrgb + 0.055) / 1.055) ** 2.4\n\n\treturn r * gammaMap['rc'] + g * gammaMap['gc'] + b * gammaMap['bc']\n}\n\nfunction getComplementary(rgb: RGB) {\n\tconst r = 255 - rgb[0]\n\tconst g = 255 - rgb[1]\n\tconst b = 255 - rgb[2]\n\treturn rgbHex([r, g, b])\n}\n","import { consoleFormatter, createConsoleLogReporter } from 'standard-log'\nimport { unpartial } from 'unpartial'\nimport { createCssFormatter } from './css/index.js'\nimport type { ColorLogReporterOptions } from './types.js'\n\nexport function createColorLogReporter(options?: ColorLogReporterOptions) {\n\treturn createConsoleLogReporter(\n\t\tunpartial(\n\t\t\t{\n\t\t\t\tformatter: supportCSSColorInConsole()\n\t\t\t\t\t? createCssFormatter(options?.cssFormatterOptions)\n\t\t\t\t\t: consoleFormatter\n\t\t\t},\n\t\t\toptions\n\t\t)\n\t)\n}\n\n// istanbul ignore next\nfunction supportCSSColorInConsole() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\t// @ts-expect-error\n\tif (window?.process?.type === 'renderer' || window?.process?.__nwjs) {\n\t\treturn true\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (navigator?.userAgent?.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (\n\t\t// @ts-expect-error\n\t\tdocument?.documentElement?.style?.WebkitAppearance ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t// @ts-expect-error\n\t\twindow?.console?.firebug ||\n\t\t// @ts-expect-error\n\t\t(window?.console?.exception && window?.console?.table) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(navigator?.userAgent?.toLowerCase().match(/firefox\\/(\\d+)/) && Number.parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\tnavigator?.userAgent?.toLowerCase().match(/applewebkit\\/(\\d+)/)\n\t)\n}\n"],"x_google_ignoreList":[1,5,7,12,13,14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B,GACpE,OAAO;CAKR,OAEC,UAAU,iBAAiB,OAAO,oBAGlC,QAAQ,SAAS,WAEhB,QAAQ,SAAS,aAAa,QAAQ,SAAS,SAG/C,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,gBAAgB,KAAK,OAAO,SAAS,OAAO,IAAI,EAAE,KAAK,MAElG,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,oBAAoB;AAEhE"}
|
|
@@ -235,7 +235,12 @@ var StandardLogColor = (function(exports) {
|
|
|
235
235
|
return args;
|
|
236
236
|
}
|
|
237
237
|
//#endregion
|
|
238
|
-
//#region
|
|
238
|
+
//#region ../log/esm/record.js
|
|
239
|
+
/**
|
|
240
|
+
* Creates a prototype-less object, optionally seeded with `value`.
|
|
241
|
+
*
|
|
242
|
+
* Inlined from `type-plus` so the CJS build does not `require()` the ESM-only `type-plus`.
|
|
243
|
+
*/
|
|
239
244
|
function record(value) {
|
|
240
245
|
const r = Object.create(null);
|
|
241
246
|
return value ? Object.assign(r, value) : r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard-log-color.iife.js","names":["ms","sc"],"sources":["../../log/esm/log_levels.js","../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","../../log/esm/formatter.js","../../../node_modules/.pnpm/type-plus@8.0.0-beta.12_typescript@7.0.2/node_modules/type-plus/esm/object/record.js","../../log/esm/platform.browser.js","../../../node_modules/.pnpm/unpartial@1.0.8/node_modules/unpartial/esm/index.js","../../log/esm/console.js","../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js","../ts/supportColor.ts","../ts/ansi/constants.ts","../ts/ansi/wrapAnsi.ts","../ts/ansi/ansiFormatter.ts","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColors.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColorsFromMap.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/rgbHex.js","../ts/css/colors.ts","../ts/css/cssFormatter.ts","../ts/createColorLogReporter.browser.ts"],"sourcesContent":["//#region ts/log_levels.ts\nconst logLevels = {\n\t/**\n\t* none: 0\n\t*/\n\tnone: 0,\n\t/**\n\t* emergency: 100\n\t*\n\t* emergency -> alert\n\t*/\n\temergency: 100,\n\t/**\n\t* alert: 200\n\t*\n\t* emergency -> alert -> critical\n\t*/\n\talert: 200,\n\t/**\n\t* critical: 300\n\t*\n\t* alert -> critical -> error\n\t*/\n\tcritical: 300,\n\t/**\n\t* error: 400\n\t*\n\t* critical -> error -> warn\n\t*/\n\terror: 400,\n\t/**\n\t* warn: 500\n\t*\n\t* error -> warn -> notice\n\t*/\n\twarn: 500,\n\t/**\n\t* notice: 600\n\t*\n\t* warn -> notice -> info\n\t*/\n\tnotice: 600,\n\t/**\n\t* info: 700\n\t*\n\t* notice -> info -> debug\n\t*/\n\tinfo: 700,\n\t/**\n\t* debug: 800\n\t*\n\t* info -> debug -> trace\n\t*/\n\tdebug: 800,\n\t/**\n\t* trace: 900\n\t*\n\t* debug -> trace -> planck\n\t*/\n\ttrace: 900,\n\t/**\n\t* planck: Infinity\n\t* `planck unit` is a very small unit <https://en.wikipedia.org/wiki/Planck_units>.\n\t*\n\t* trace -> planck\n\t*/\n\tplanck: Number.POSITIVE_INFINITY,\n\t/**\n\t* all: Infinity\n\t*/\n\tall: Number.POSITIVE_INFINITY\n};\n/**\n* Convert default log level value to log level name.\n*/\nfunction toLogLevelName(level) {\n\tif (level <= 100) return \"emergency\";\n\tif (level <= 200) return \"alert\";\n\tif (level <= 300) return \"critical\";\n\tif (level <= 400) return \"error\";\n\tif (level <= 500) return \"warn\";\n\tif (level <= 600) return \"notice\";\n\tif (level <= 700) return \"info\";\n\tif (level <= 800) return \"debug\";\n\tif (level <= 900) return \"trace\";\n\treturn \"planck\";\n}\n/**\n* Convert default log level name to log level value.\n*/\nfunction toLogLevel(name) {\n\treturn logLevels[name.toLocaleLowerCase()];\n}\nconst DEFAULT_LOG_METHOD_NAMES = [\n\t\"emergency\",\n\t\"alert\",\n\t\"critical\",\n\t\"error\",\n\t\"warn\",\n\t\"notice\",\n\t\"info\",\n\t\"debug\",\n\t\"trace\",\n\t\"planck\"\n];\n//#endregion\nexport { DEFAULT_LOG_METHOD_NAMES, logLevels, toLogLevel, toLogLevelName };\n\n//# sourceMappingURL=log_levels.js.map","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","import { toLogLevelName } from \"./log_levels.js\";\nimport ms from \"ms\";\n//#region ts/formatter.ts\nfunction createTimestampFormatter(format) {\n\tswitch (format) {\n\t\tcase \"none\": return (_timestamp) => void 0;\n\t\tcase \"iso\": return (timestamp) => timestamp.toISOString();\n\t\tcase \"elapsed\": {\n\t\t\tlet lastTick;\n\t\t\treturn (timestamp) => {\n\t\t\t\tconst newTick = timestamp.getTime();\n\t\t\t\tconst result = ms(lastTick === void 0 ? 0 : newTick - lastTick);\n\t\t\t\tlastTick = newTick;\n\t\t\t\treturn result;\n\t\t\t};\n\t\t}\n\t}\n}\nfunction formatLogLevel(level) {\n\treturn `(${toLogLevelName(level).toUpperCase()})`;\n}\n/**\n* Formats log entry as plain text with the following format:\n* `timestamp id level ...args`\n*\n* This is typically useful for writing logs to file\n*/\nfunction plainLogFormatter({ id, level, args, timestamp }) {\n\treturn [\n\t\ttimestamp.toISOString(),\n\t\tid,\n\t\tformatLogLevel(level),\n\t\t...args\n\t];\n}\n/**\n* Formats log entry like default console log.\n*/\nfunction consoleFormatter({ args }) {\n\treturn args;\n}\n//#endregion\nexport { consoleFormatter, createTimestampFormatter, formatLogLevel, plainLogFormatter };\n\n//# sourceMappingURL=formatter.js.map","export function record(value) {\n const r = Object.create(null);\n return (value ? Object.assign(r, value) : r);\n}\n//# sourceMappingURL=record.js.map","import { record } from \"type-plus\";\n//#region ts/platform.browser.ts\nconst toInspectLogEntry = (e) => e;\nconst polyfill = record();\n//#endregion\nexport { polyfill, toInspectLogEntry };\n\n//# sourceMappingURL=platform.browser.js.map","//#region ts/index.ts\nfunction required(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => {\n\t\treturn {\n\t\t\t...p,\n\t\t\t...e\n\t\t};\n\t});\n}\nfunction requiredDeep(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => deepmerge(p, e));\n}\nfunction merge(entries, reducer) {\n\tif (entries[0] === void 0 || entries[0] === null) return entries[0];\n\treturn entries.filter((x) => !!x).reduce(reducer, {});\n}\nfunction deepmerge(source1, source2) {\n\tif (typeof source1 !== \"object\" || source1 === null) return source2 !== void 0 ? source2 : source1;\n\tif (Array.isArray(source1)) {\n\t\tif (Array.isArray(source2)) return source2;\n\t\tif (source2 === void 0) return [...source1];\n\t\treturn [...source1, source2];\n\t}\n\treturn getAllKeys(source1).concat(getAllKeys(source2)).reduce((p, k) => {\n\t\tp[k] = deepmerge(source1[k], source2 && source2[k]);\n\t\treturn p;\n\t}, {});\n}\nfunction getAllKeys(subject, internal = false) {\n\tif (typeof subject !== \"object\") return [];\n\tconst propertyNames = Object.getOwnPropertyNames(subject);\n\tconst keys = internal ? propertyNames.filter((n) => n !== \"constructor\") : propertyNames;\n\tconst proto = Object.getPrototypeOf(subject);\n\treturn proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;\n}\nfunction unpartial(s1, s2, s3) {\n\tif (s1 === void 0 || s1 === null) return s1;\n\treturn [\n\t\ts1,\n\t\ts2,\n\t\ts3\n\t].filter(notNil).reduce((p, s) => ({\n\t\t...p,\n\t\t...trimNilProps(s)\n\t}), {});\n}\nfunction trimNilProps(value) {\n\treturn Object.keys(value).reduce((p, k) => {\n\t\tif (notNil(value[k])) p[k] = value[k];\n\t\treturn p;\n\t}, {});\n}\nfunction notNil(value) {\n\treturn value !== null && value !== void 0;\n}\nfunction unpartialRecursively(arg1, arg2, arg3) {\n\treturn requiredDeep(arg1, arg2, arg3);\n}\n//#endregion\nexport { required, requiredDeep, unpartial, unpartialRecursively };\n\n//# sourceMappingURL=index.js.map","import { logLevels } from \"./log_levels.js\";\nimport { consoleFormatter } from \"./formatter.js\";\nimport { polyfill } from \"./platform.js\";\nimport { unpartial } from \"unpartial\";\n//#region ts/console.ts\nfunction toConsoleMethod(level) {\n\tswitch (true) {\n\t\tcase level <= 0: return \"debug\";\n\t\tcase level <= logLevels.error: return \"error\";\n\t\tcase level <= logLevels.warn: return \"warn\";\n\t\tcase level <= logLevels.info: return \"info\";\n\t\tdefault: return \"debug\";\n\t}\n}\n// istanbul ignore next\nfunction buildPolyfillConsole() {\n\tif (!!console.log.bind) return {\n\t\tdebug: (typeof console.info === \"function\" ? console.debug : console.log).bind(console),\n\t\tinfo: (typeof console.info === \"function\" ? console.info : console.log).bind(console),\n\t\twarn: (typeof console.warn === \"function\" ? console.warn : console.log).bind(console),\n\t\terror: (typeof console.error === \"function\" ? console.error : console.log).bind(console)\n\t};\n\treturn {\n\t\tdebug: buildFn(typeof console.debug === \"function\" ? \"debug\" : \"log\"),\n\t\tinfo: buildFn(typeof console.info === \"function\" ? \"info\" : \"log\"),\n\t\twarn: buildFn(typeof console.warn === \"function\" ? \"warn\" : \"log\"),\n\t\terror: buildFn(typeof console.error === \"function\" ? \"error\" : \"log\")\n\t};\n}\n// istanbul ignore next\nfunction buildFn(name) {\n\treturn (...args) => {\n\t\tconsole[name](...args);\n\t};\n}\nfunction createConsoleLogReporter(options) {\n\tconst { id, formatter, filter } = unpartial({\n\t\tid: \"console\",\n\t\tformatter: consoleFormatter\n\t}, options);\n\tif (!polyfill.console) polyfill.console = buildPolyfillConsole();\n\treturn Object.freeze({\n\t\tid,\n\t\tisConsoleReporter: true,\n\t\tget formatter() {\n\t\t\treturn formatter;\n\t\t},\n\t\tget filter() {\n\t\t\treturn filter;\n\t\t},\n\t\tconsole: polyfill.console,\n\t\twrite(entry) {\n\t\t\tif (filter && !filter(entry)) return;\n\t\t\tconst values = formatter(entry);\n\t\t\tconst method = toConsoleMethod(entry.level);\n\t\t\tthis.console[method](...values);\n\t\t}\n\t});\n}\n//#endregion\nexport { createConsoleLogReporter, toConsoleMethod };\n\n//# sourceMappingURL=console.js.map","/* eslint-env browser */\n'use strict';\n\nfunction getChromeVersion() {\n\tconst matches = /(Chrome|Chromium)\\/(?<chromeVersion>\\d+)\\./.exec(navigator.userAgent);\n\n\tif (!matches) {\n\t\treturn;\n\t}\n\n\treturn Number.parseInt(matches.groups.chromeVersion, 10);\n}\n\nconst colorSupport = getChromeVersion() >= 69 ? {\n\tlevel: 1,\n\thasBasic: true,\n\thas256: false,\n\thas16m: false\n} : false;\n\nmodule.exports = {\n\tstdout: colorSupport,\n\tstderr: colorSupport\n};\n","import sc from 'supports-color'\n\n/**\n * Color level.\n * This is the same definition as the `ColorSupportLevel` in `supports-color`.\n * Using the same definition for simplicity\n * @see https://github.com/chalk/supports-color/blob/main/index.d.ts#L19\n */\nexport enum ColorLevels {\n\tDISABLED = 0,\n\t/**\n\t * Basic 16 colors (4-bits)\n\t */\n\tBASIC = 1,\n\t/**\n\t * ANSI 256 colors (8-bits)\n\t */\n\tANSI = 2,\n\t/**\n\t * Truecolor 16 million colors (24-bits)\n\t */\n\tTRUE = 3\n}\n\nexport namespace supportColor {\n\texport type Result = { stdout: ColorLevels; stderr: ColorLevels }\n}\n\nlet value: supportColor.Result\n\n/**\n * Detects if the platform supports color.\n * For browser, the value can only be:\n * - `{ stdout: 0, stderr: 0 }` (DISABLED), or\n * - `{ stdout: 3, stderr: 3 }` (TRUE).\n * So you only need to check one case.\n * The result value is made the same so that it can be used in all platforms.\n */\nexport function supportColor(): supportColor.Result {\n\t// istanbul ignore next\n\treturn (value = value || {\n\t\tstderr: sc.stderr ? sc.stderr.level : ColorLevels.DISABLED,\n\t\tstdout: sc.stdout ? sc.stdout.level : ColorLevels.DISABLED\n\t})\n}\n","export type AnsiColor = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7\nexport const ANSI_BLACK = 0\nexport const ANSI_RED = 1\nexport const ANSI_GREEN = 2\nexport const ANSI_YELLOW = 3\nexport const ANSI_BLUE = 4\nexport const ANSI_MAGENTA = 5\nexport const ANSI_CYAN = 6\nexport const ANSI_WHITE = 7\n\nexport type AnsiStyle = 1 | 4\nexport const ANSI_BRIGHT = 1\nexport const ANSI_UNDERSCORE = 4\n\nexport const ANSI_FOREGROUND = 30\nexport const ANSI_BACKGROUND = 40\n","export function wrapAnsi(text: string, codes: number[]) {\n\treturn `\\u001B[${codes.join(';')}m${text}\\u001B[0m`\n}\n","import { createTimestampFormatter, type LogEntry, type TimestampFormat, toConsoleMethod } from 'standard-log'\nimport { ColorLevels, supportColor } from '../supportColor.js'\nimport {\n\tANSI_BACKGROUND,\n\tANSI_BLACK,\n\tANSI_BLUE,\n\tANSI_BRIGHT,\n\tANSI_CYAN,\n\tANSI_FOREGROUND,\n\tANSI_GREEN,\n\tANSI_MAGENTA,\n\tANSI_RED,\n\tANSI_UNDERSCORE,\n\tANSI_WHITE,\n\tANSI_YELLOW\n} from './constants.js'\nimport { wrapAnsi } from './wrapAnsi.js'\n\nexport type AnsiFormatterOptions = {\n\ttimestamp: TimestampFormat\n}\n\nexport function createAnsiFormatter(options: AnsiFormatterOptions = { timestamp: 'none' }) {\n\tconst timestampFormatter = createTimestampFormatter(options.timestamp)\n\n\treturn function ansiFormatter(entry: LogEntry) {\n\t\tconst consoleMethod = toConsoleMethod(entry.level)\n\t\tconst id = formatID(consoleMethod, entry.id)\n\t\tconst args = formatArgs(timestampFormatter, consoleMethod, entry)\n\t\treturn [id, ...args]\n\t}\n}\n\nfunction formatArgs(\n\ttimestampFormatter: (timestamp: Date) => string | undefined,\n\tmethod: 'error' | 'warn' | 'info' | 'debug',\n\tentry: Pick<LogEntry, 'args' | 'timestamp'>\n) {\n\tconst args = [...entry.args]\n\tconst timestamp = timestampFormatter(entry.timestamp)\n\tif (timestamp !== undefined) args.push(timestamp)\n\tconst textCodes =\n\t\tmethod === 'error'\n\t\t\t? [ANSI_RED + ANSI_FOREGROUND]\n\t\t\t: method === 'warn'\n\t\t\t\t? [ANSI_YELLOW + ANSI_FOREGROUND]\n\t\t\t\t: undefined\n\n\treturn textCodes ? args.map(x => wrapAnsi(x, textCodes)) : args\n}\n\nfunction formatID(method: 'error' | 'warn' | 'info' | 'debug', id: string) {\n\tconst colorLevels = supportColor()\n\tconst colorLevel = method === 'error' ? colorLevels.stderr : colorLevels.stdout\n\treturn toIDFormatter(colorLevel)(id)\n}\n\nfunction toIDFormatter(colorLevel: ColorLevels) {\n\t// istanbul ignore next\n\tswitch (colorLevel) {\n\t\tcase ColorLevels.DISABLED:\n\t\t\treturn (id: string) => id\n\t\tcase ColorLevels.BASIC:\n\t\t\treturn basicIDFormatter\n\t\tcase ColorLevels.ANSI:\n\t\t\treturn ansiIDFormatter\n\t\tcase ColorLevels.TRUE:\n\t\t\treturn truecolorIDFormatter\n\t}\n}\n\nfunction basicIDFormatter(id: string) {\n\tconst codes = getAnsiColor(id)\n\treturn wrapAnsi(` ${id} `, codes)\n}\n\nconst ansiColors: {\n\tcounter: number\n\tlist: Array<number[]>\n} = {\n\tcounter: 0,\n\tlist: [\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE]\n\t]\n}\nconst ansiColorMap: Record<string, number[]> = Object.create(null)\n\nfunction getAnsiColor(id: string) {\n\treturn (ansiColorMap[id] =\n\t\tansiColorMap[id] || ansiColors.list[ansiColors.counter++ % ansiColors.list.length])\n}\n\n// istanbul ignore next\nfunction ansiIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n\n// istanbul ignore next\nfunction truecolorIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n","export function createColors(from, to, shades, alpha = [\n from.length === 4 ? from[3] : to.length === 4 ? to[3] : 1,\n to.length === 4 ? to[3] : from.length === 4 ? from[3] : 1\n]) {\n const start = [...from];\n const diff = [\n to[0] - from[0],\n to[1] - from[1],\n to[2] - from[2],\n alpha[1] - alpha[0]\n ];\n if (start.length === 3)\n start.push(alpha[0]);\n const inc = 1 / Math.max(shades - 1, 1);\n const rgba = [];\n for (let i = 0; i < shades; i++) {\n const color = [\n Math.round(start[0] + i * diff[0] * inc),\n Math.round(start[1] + i * diff[1] * inc),\n Math.round(start[2] + i * diff[2] * inc),\n start[3] + i * diff[3] * inc\n ];\n rgba.push(color);\n }\n return rgba;\n}\n//# sourceMappingURL=createColors.js.map","import { createColors } from './createColors.js';\n/**\n * Create colors with specified color map.\n */\nexport function createColorsFromMap(colormap, shades, alpha) {\n if (shades < colormap.length) {\n throw new Error(`Requires at least ${colormap.length} shades.`);\n }\n const result = [];\n const steps = [];\n for (let i = 0; i < colormap.length; i++) {\n steps.push(Math.round(colormap[i].index * shades));\n }\n for (let i = 0; i < colormap.length - 1; i++) {\n const n = steps[i + 1] - steps[i];\n const from = colormap[i].rgb;\n const to = colormap[i + 1].rgb;\n result.push(...createColors(from, to, n, alpha));\n }\n return result;\n}\n//# sourceMappingURL=createColorsFromMap.js.map","/**\n * Convert `RGB` to `#rgb`\n * JavaScript note: no check for array length, use it properly.\n */\nexport function rgbHex(rgb) {\n let hex = '#';\n for (let i = 0; i < 3; i++) {\n hex += d2h(rgb[i]);\n }\n return hex;\n}\nfunction d2h(d) {\n const s = (+d).toString(16);\n return s.length < 2 ? '0' + s : s;\n}\n//# sourceMappingURL=rgbHex.js.map","import type { ColorMap } from 'color-map'\n\nexport const rainbow: ColorMap = [\n\t{ index: 0, rgb: [150, 0, 90] },\n\t{ index: 0.125, rgb: [0, 0, 200] },\n\t{ index: 0.25, rgb: [0, 25, 255] },\n\t{ index: 0.375, rgb: [0, 152, 255] },\n\t{ index: 0.5, rgb: [44, 255, 150] },\n\t{ index: 0.625, rgb: [151, 255, 0] },\n\t{ index: 0.75, rgb: [255, 234, 0] },\n\t{ index: 0.875, rgb: [255, 111, 0] },\n\t{ index: 1, rgb: [255, 0, 0] }\n]\n","import { createColorsFromMap, type RGB, type RGBA, rgbHex } from 'color-map'\nimport { createTimestampFormatter, type LogEntry } from 'standard-log'\nimport { required } from 'unpartial'\nimport type { CssFormatterOptions } from '../types.js'\nimport { rainbow } from './colors.js'\n\nexport function createCssFormatter(options?: CssFormatterOptions) {\n\tconst { maxColor, timestamp, style } = required(\n\t\t{\n\t\t\tmaxColor: 20,\n\t\t\ttimestamp: 'none',\n\t\t\tstyle: 'padding: 2px; line-height: 1rem;'\n\t\t},\n\t\toptions\n\t)\n\tconst loggerMap: Record<string, RGB> = Object.create(null)\n\tconst colorMap: RGBA[] = createColorsFromMap(rainbow, maxColor)\n\tlet count = 0\n\n\tconst timestampFormatter = createTimestampFormatter(timestamp)\n\n\treturn function cssFormatter(entry: LogEntry) {\n\t\tlet idStr = `%c ${entry.id} `\n\t\tlet args: any[]\n\t\tif (firstArgIsColorTemplate(entry.args)) {\n\t\t\tidStr += entry.args[0]\n\t\t\targs = [...entry.args.slice(1)]\n\t\t} else {\n\t\t\targs = [...entry.args]\n\t\t}\n\t\tconst rgb = getRgb(entry.id)\n\t\tconst background = rgbHex(rgb)\n\t\tconst border = rgbHex(rgb.map(x => Math.max(0, x - 32)) as RGB)\n\t\tconst color = getForegroundColor(rgb)\n\t\tconst result = [\n\t\t\tidStr,\n\t\t\t`${style}background: ${background};border: 1px solid ${border};color: ${color};`,\n\t\t\t...args\n\t\t]\n\t\tconst t = timestampFormatter(entry.timestamp)\n\t\tif (t !== undefined) result.push(t)\n\t\treturn result\n\t}\n\n\tfunction firstArgIsColorTemplate(args: any[]) {\n\t\treturn typeof args[0] === 'string' && args[0].indexOf('%c') !== -1\n\t}\n\n\tfunction getRgb(id: string) {\n\t\treturn (loggerMap[id] = loggerMap[id] || colorMap[count++ & maxColor])\n\t}\n}\n\nconst gammaMap = {\n\trc: 0.2126,\n\tgc: 0.7152,\n\tbc: 0.0722,\n\tlowc: 1 / 12.92\n}\n\nfunction getForegroundColor(background: RGB) {\n\t// Setting the contrasting color as default\n\tlet color = getComplementary(background)\n\tconst bgLuminance = getRelativeLuminance(background)\n\tconst fgLuminance =\n\t\tcolor === '#ffffff' ? getRelativeLuminance([255, 255, 255]) : getRelativeLuminance([0, 0, 0])\n\tconst relativeL =\n\t\tbgLuminance > fgLuminance\n\t\t\t? (bgLuminance + 0.05) / (fgLuminance + 0.05)\n\t\t\t: (fgLuminance + 0.05) / (bgLuminance + 0.05)\n\n\t// Can set the contrast ratio based on text size later.\n\tif (relativeL < 4.5) {\n\t\tconst avgLuminance =\n\t\t\tbackground[0] * gammaMap['rc'] + background[1] * gammaMap['gc'] + background[2] * gammaMap['bc']\n\n\t\t// If the relative contrast is lower than standard, we switch color to black/white\n\t\tcolor = avgLuminance < 220 ? '#ffffff' : '#000000'\n\t}\n\treturn color\n}\n\nfunction getRelativeLuminance(rgb: RGB) {\n\t// https://www.w3.org/TR/WCAG/#relativeluminancedef\n\tconst rsrgb = rgb[0] / 255\n\tconst gsrgb = rgb[1] / 255\n\tconst bsrgb = rgb[2] / 255\n\n\tconst r = rsrgb <= 0.03928 ? rsrgb * gammaMap['lowc'] : ((rsrgb + 0.055) / 1.055) ** 2.4\n\tconst g = gsrgb <= 0.03928 ? gsrgb * gammaMap['lowc'] : ((gsrgb + 0.055) / 1.055) ** 2.4\n\tconst b = bsrgb <= 0.03928 ? bsrgb * gammaMap['lowc'] : ((bsrgb + 0.055) / 1.055) ** 2.4\n\n\treturn r * gammaMap['rc'] + g * gammaMap['gc'] + b * gammaMap['bc']\n}\n\nfunction getComplementary(rgb: RGB) {\n\tconst r = 255 - rgb[0]\n\tconst g = 255 - rgb[1]\n\tconst b = 255 - rgb[2]\n\treturn rgbHex([r, g, b])\n}\n","import { consoleFormatter, createConsoleLogReporter } from 'standard-log'\nimport { unpartial } from 'unpartial'\nimport { createCssFormatter } from './css/index.js'\nimport type { ColorLogReporterOptions } from './types.js'\n\nexport function createColorLogReporter(options?: ColorLogReporterOptions) {\n\treturn createConsoleLogReporter(\n\t\tunpartial(\n\t\t\t{\n\t\t\t\tformatter: supportCSSColorInConsole()\n\t\t\t\t\t? createCssFormatter(options?.cssFormatterOptions)\n\t\t\t\t\t: consoleFormatter\n\t\t\t},\n\t\t\toptions\n\t\t)\n\t)\n}\n\n// istanbul ignore next\nfunction supportCSSColorInConsole() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\t// @ts-expect-error\n\tif (window?.process?.type === 'renderer' || window?.process?.__nwjs) {\n\t\treturn true\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (navigator?.userAgent?.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (\n\t\t// @ts-expect-error\n\t\tdocument?.documentElement?.style?.WebkitAppearance ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t// @ts-expect-error\n\t\twindow?.console?.firebug ||\n\t\t// @ts-expect-error\n\t\t(window?.console?.exception && window?.console?.table) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(navigator?.userAgent?.toLowerCase().match(/firefox\\/(\\d+)/) && Number.parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\tnavigator?.userAgent?.toLowerCase().match(/applewebkit\\/(\\d+)/)\n\t)\n}\n"],"x_google_ignoreList":[1,3,5,7,12,13,14],"m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GACpE,OAAO;EAKR,OAEC,UAAU,iBAAiB,OAAO,oBAGlC,QAAQ,SAAS,WAEhB,QAAQ,SAAS,aAAa,QAAQ,SAAS,SAG/C,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,gBAAgB,KAAK,OAAO,SAAS,OAAO,IAAI,EAAE,KAAK,MAElG,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,oBAAoB;CAEhE"}
|
|
1
|
+
{"version":3,"file":"standard-log-color.iife.js","names":["ms","sc"],"sources":["../../log/esm/log_levels.js","../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","../../log/esm/formatter.js","../../log/esm/record.js","../../log/esm/platform.browser.js","../../../node_modules/.pnpm/unpartial@1.0.8/node_modules/unpartial/esm/index.js","../../log/esm/console.js","../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js","../ts/supportColor.ts","../ts/ansi/constants.ts","../ts/ansi/wrapAnsi.ts","../ts/ansi/ansiFormatter.ts","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColors.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColorsFromMap.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/rgbHex.js","../ts/css/colors.ts","../ts/css/cssFormatter.ts","../ts/createColorLogReporter.browser.ts"],"sourcesContent":["//#region ts/log_levels.ts\nconst logLevels = {\n\t/**\n\t* none: 0\n\t*/\n\tnone: 0,\n\t/**\n\t* emergency: 100\n\t*\n\t* emergency -> alert\n\t*/\n\temergency: 100,\n\t/**\n\t* alert: 200\n\t*\n\t* emergency -> alert -> critical\n\t*/\n\talert: 200,\n\t/**\n\t* critical: 300\n\t*\n\t* alert -> critical -> error\n\t*/\n\tcritical: 300,\n\t/**\n\t* error: 400\n\t*\n\t* critical -> error -> warn\n\t*/\n\terror: 400,\n\t/**\n\t* warn: 500\n\t*\n\t* error -> warn -> notice\n\t*/\n\twarn: 500,\n\t/**\n\t* notice: 600\n\t*\n\t* warn -> notice -> info\n\t*/\n\tnotice: 600,\n\t/**\n\t* info: 700\n\t*\n\t* notice -> info -> debug\n\t*/\n\tinfo: 700,\n\t/**\n\t* debug: 800\n\t*\n\t* info -> debug -> trace\n\t*/\n\tdebug: 800,\n\t/**\n\t* trace: 900\n\t*\n\t* debug -> trace -> planck\n\t*/\n\ttrace: 900,\n\t/**\n\t* planck: Infinity\n\t* `planck unit` is a very small unit <https://en.wikipedia.org/wiki/Planck_units>.\n\t*\n\t* trace -> planck\n\t*/\n\tplanck: Number.POSITIVE_INFINITY,\n\t/**\n\t* all: Infinity\n\t*/\n\tall: Number.POSITIVE_INFINITY\n};\n/**\n* Convert default log level value to log level name.\n*/\nfunction toLogLevelName(level) {\n\tif (level <= 100) return \"emergency\";\n\tif (level <= 200) return \"alert\";\n\tif (level <= 300) return \"critical\";\n\tif (level <= 400) return \"error\";\n\tif (level <= 500) return \"warn\";\n\tif (level <= 600) return \"notice\";\n\tif (level <= 700) return \"info\";\n\tif (level <= 800) return \"debug\";\n\tif (level <= 900) return \"trace\";\n\treturn \"planck\";\n}\n/**\n* Convert default log level name to log level value.\n*/\nfunction toLogLevel(name) {\n\treturn logLevels[name.toLocaleLowerCase()];\n}\nconst DEFAULT_LOG_METHOD_NAMES = [\n\t\"emergency\",\n\t\"alert\",\n\t\"critical\",\n\t\"error\",\n\t\"warn\",\n\t\"notice\",\n\t\"info\",\n\t\"debug\",\n\t\"trace\",\n\t\"planck\"\n];\n//#endregion\nexport { DEFAULT_LOG_METHOD_NAMES, logLevels, toLogLevel, toLogLevelName };\n\n//# sourceMappingURL=log_levels.js.map","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","import { toLogLevelName } from \"./log_levels.js\";\nimport ms from \"ms\";\n//#region ts/formatter.ts\nfunction createTimestampFormatter(format) {\n\tswitch (format) {\n\t\tcase \"none\": return (_timestamp) => void 0;\n\t\tcase \"iso\": return (timestamp) => timestamp.toISOString();\n\t\tcase \"elapsed\": {\n\t\t\tlet lastTick;\n\t\t\treturn (timestamp) => {\n\t\t\t\tconst newTick = timestamp.getTime();\n\t\t\t\tconst result = ms(lastTick === void 0 ? 0 : newTick - lastTick);\n\t\t\t\tlastTick = newTick;\n\t\t\t\treturn result;\n\t\t\t};\n\t\t}\n\t}\n}\nfunction formatLogLevel(level) {\n\treturn `(${toLogLevelName(level).toUpperCase()})`;\n}\n/**\n* Formats log entry as plain text with the following format:\n* `timestamp id level ...args`\n*\n* This is typically useful for writing logs to file\n*/\nfunction plainLogFormatter({ id, level, args, timestamp }) {\n\treturn [\n\t\ttimestamp.toISOString(),\n\t\tid,\n\t\tformatLogLevel(level),\n\t\t...args\n\t];\n}\n/**\n* Formats log entry like default console log.\n*/\nfunction consoleFormatter({ args }) {\n\treturn args;\n}\n//#endregion\nexport { consoleFormatter, createTimestampFormatter, formatLogLevel, plainLogFormatter };\n\n//# sourceMappingURL=formatter.js.map","//#region ts/record.ts\n/**\n* Creates a prototype-less object, optionally seeded with `value`.\n*\n* Inlined from `type-plus` so the CJS build does not `require()` the ESM-only `type-plus`.\n*/\nfunction record(value) {\n\tconst r = Object.create(null);\n\treturn value ? Object.assign(r, value) : r;\n}\n//#endregion\nexport { record };\n\n//# sourceMappingURL=record.js.map","import { record } from \"./record.js\";\n//#region ts/platform.browser.ts\nconst toInspectLogEntry = (e) => e;\nconst polyfill = record();\n//#endregion\nexport { polyfill, toInspectLogEntry };\n\n//# sourceMappingURL=platform.browser.js.map","//#region ts/index.ts\nfunction required(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => {\n\t\treturn {\n\t\t\t...p,\n\t\t\t...e\n\t\t};\n\t});\n}\nfunction requiredDeep(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => deepmerge(p, e));\n}\nfunction merge(entries, reducer) {\n\tif (entries[0] === void 0 || entries[0] === null) return entries[0];\n\treturn entries.filter((x) => !!x).reduce(reducer, {});\n}\nfunction deepmerge(source1, source2) {\n\tif (typeof source1 !== \"object\" || source1 === null) return source2 !== void 0 ? source2 : source1;\n\tif (Array.isArray(source1)) {\n\t\tif (Array.isArray(source2)) return source2;\n\t\tif (source2 === void 0) return [...source1];\n\t\treturn [...source1, source2];\n\t}\n\treturn getAllKeys(source1).concat(getAllKeys(source2)).reduce((p, k) => {\n\t\tp[k] = deepmerge(source1[k], source2 && source2[k]);\n\t\treturn p;\n\t}, {});\n}\nfunction getAllKeys(subject, internal = false) {\n\tif (typeof subject !== \"object\") return [];\n\tconst propertyNames = Object.getOwnPropertyNames(subject);\n\tconst keys = internal ? propertyNames.filter((n) => n !== \"constructor\") : propertyNames;\n\tconst proto = Object.getPrototypeOf(subject);\n\treturn proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;\n}\nfunction unpartial(s1, s2, s3) {\n\tif (s1 === void 0 || s1 === null) return s1;\n\treturn [\n\t\ts1,\n\t\ts2,\n\t\ts3\n\t].filter(notNil).reduce((p, s) => ({\n\t\t...p,\n\t\t...trimNilProps(s)\n\t}), {});\n}\nfunction trimNilProps(value) {\n\treturn Object.keys(value).reduce((p, k) => {\n\t\tif (notNil(value[k])) p[k] = value[k];\n\t\treturn p;\n\t}, {});\n}\nfunction notNil(value) {\n\treturn value !== null && value !== void 0;\n}\nfunction unpartialRecursively(arg1, arg2, arg3) {\n\treturn requiredDeep(arg1, arg2, arg3);\n}\n//#endregion\nexport { required, requiredDeep, unpartial, unpartialRecursively };\n\n//# sourceMappingURL=index.js.map","import { logLevels } from \"./log_levels.js\";\nimport { consoleFormatter } from \"./formatter.js\";\nimport { polyfill } from \"./platform.js\";\nimport { unpartial } from \"unpartial\";\n//#region ts/console.ts\nfunction toConsoleMethod(level) {\n\tswitch (true) {\n\t\tcase level <= 0: return \"debug\";\n\t\tcase level <= logLevels.error: return \"error\";\n\t\tcase level <= logLevels.warn: return \"warn\";\n\t\tcase level <= logLevels.info: return \"info\";\n\t\tdefault: return \"debug\";\n\t}\n}\n// istanbul ignore next\nfunction buildPolyfillConsole() {\n\tif (!!console.log.bind) return {\n\t\tdebug: (typeof console.info === \"function\" ? console.debug : console.log).bind(console),\n\t\tinfo: (typeof console.info === \"function\" ? console.info : console.log).bind(console),\n\t\twarn: (typeof console.warn === \"function\" ? console.warn : console.log).bind(console),\n\t\terror: (typeof console.error === \"function\" ? console.error : console.log).bind(console)\n\t};\n\treturn {\n\t\tdebug: buildFn(typeof console.debug === \"function\" ? \"debug\" : \"log\"),\n\t\tinfo: buildFn(typeof console.info === \"function\" ? \"info\" : \"log\"),\n\t\twarn: buildFn(typeof console.warn === \"function\" ? \"warn\" : \"log\"),\n\t\terror: buildFn(typeof console.error === \"function\" ? \"error\" : \"log\")\n\t};\n}\n// istanbul ignore next\nfunction buildFn(name) {\n\treturn (...args) => {\n\t\tconsole[name](...args);\n\t};\n}\nfunction createConsoleLogReporter(options) {\n\tconst { id, formatter, filter } = unpartial({\n\t\tid: \"console\",\n\t\tformatter: consoleFormatter\n\t}, options);\n\tif (!polyfill.console) polyfill.console = buildPolyfillConsole();\n\treturn Object.freeze({\n\t\tid,\n\t\tisConsoleReporter: true,\n\t\tget formatter() {\n\t\t\treturn formatter;\n\t\t},\n\t\tget filter() {\n\t\t\treturn filter;\n\t\t},\n\t\tconsole: polyfill.console,\n\t\twrite(entry) {\n\t\t\tif (filter && !filter(entry)) return;\n\t\t\tconst values = formatter(entry);\n\t\t\tconst method = toConsoleMethod(entry.level);\n\t\t\tthis.console[method](...values);\n\t\t}\n\t});\n}\n//#endregion\nexport { createConsoleLogReporter, toConsoleMethod };\n\n//# sourceMappingURL=console.js.map","/* eslint-env browser */\n'use strict';\n\nfunction getChromeVersion() {\n\tconst matches = /(Chrome|Chromium)\\/(?<chromeVersion>\\d+)\\./.exec(navigator.userAgent);\n\n\tif (!matches) {\n\t\treturn;\n\t}\n\n\treturn Number.parseInt(matches.groups.chromeVersion, 10);\n}\n\nconst colorSupport = getChromeVersion() >= 69 ? {\n\tlevel: 1,\n\thasBasic: true,\n\thas256: false,\n\thas16m: false\n} : false;\n\nmodule.exports = {\n\tstdout: colorSupport,\n\tstderr: colorSupport\n};\n","import sc from 'supports-color'\n\n/**\n * Color level.\n * This is the same definition as the `ColorSupportLevel` in `supports-color`.\n * Using the same definition for simplicity\n * @see https://github.com/chalk/supports-color/blob/main/index.d.ts#L19\n */\nexport enum ColorLevels {\n\tDISABLED = 0,\n\t/**\n\t * Basic 16 colors (4-bits)\n\t */\n\tBASIC = 1,\n\t/**\n\t * ANSI 256 colors (8-bits)\n\t */\n\tANSI = 2,\n\t/**\n\t * Truecolor 16 million colors (24-bits)\n\t */\n\tTRUE = 3\n}\n\nexport namespace supportColor {\n\texport type Result = { stdout: ColorLevels; stderr: ColorLevels }\n}\n\nlet value: supportColor.Result\n\n/**\n * Detects if the platform supports color.\n * For browser, the value can only be:\n * - `{ stdout: 0, stderr: 0 }` (DISABLED), or\n * - `{ stdout: 3, stderr: 3 }` (TRUE).\n * So you only need to check one case.\n * The result value is made the same so that it can be used in all platforms.\n */\nexport function supportColor(): supportColor.Result {\n\t// istanbul ignore next\n\treturn (value = value || {\n\t\tstderr: sc.stderr ? sc.stderr.level : ColorLevels.DISABLED,\n\t\tstdout: sc.stdout ? sc.stdout.level : ColorLevels.DISABLED\n\t})\n}\n","export type AnsiColor = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7\nexport const ANSI_BLACK = 0\nexport const ANSI_RED = 1\nexport const ANSI_GREEN = 2\nexport const ANSI_YELLOW = 3\nexport const ANSI_BLUE = 4\nexport const ANSI_MAGENTA = 5\nexport const ANSI_CYAN = 6\nexport const ANSI_WHITE = 7\n\nexport type AnsiStyle = 1 | 4\nexport const ANSI_BRIGHT = 1\nexport const ANSI_UNDERSCORE = 4\n\nexport const ANSI_FOREGROUND = 30\nexport const ANSI_BACKGROUND = 40\n","export function wrapAnsi(text: string, codes: number[]) {\n\treturn `\\u001B[${codes.join(';')}m${text}\\u001B[0m`\n}\n","import { createTimestampFormatter, type LogEntry, type TimestampFormat, toConsoleMethod } from 'standard-log'\nimport { ColorLevels, supportColor } from '../supportColor.js'\nimport {\n\tANSI_BACKGROUND,\n\tANSI_BLACK,\n\tANSI_BLUE,\n\tANSI_BRIGHT,\n\tANSI_CYAN,\n\tANSI_FOREGROUND,\n\tANSI_GREEN,\n\tANSI_MAGENTA,\n\tANSI_RED,\n\tANSI_UNDERSCORE,\n\tANSI_WHITE,\n\tANSI_YELLOW\n} from './constants.js'\nimport { wrapAnsi } from './wrapAnsi.js'\n\nexport type AnsiFormatterOptions = {\n\ttimestamp: TimestampFormat\n}\n\nexport function createAnsiFormatter(options: AnsiFormatterOptions = { timestamp: 'none' }) {\n\tconst timestampFormatter = createTimestampFormatter(options.timestamp)\n\n\treturn function ansiFormatter(entry: LogEntry) {\n\t\tconst consoleMethod = toConsoleMethod(entry.level)\n\t\tconst id = formatID(consoleMethod, entry.id)\n\t\tconst args = formatArgs(timestampFormatter, consoleMethod, entry)\n\t\treturn [id, ...args]\n\t}\n}\n\nfunction formatArgs(\n\ttimestampFormatter: (timestamp: Date) => string | undefined,\n\tmethod: 'error' | 'warn' | 'info' | 'debug',\n\tentry: Pick<LogEntry, 'args' | 'timestamp'>\n) {\n\tconst args = [...entry.args]\n\tconst timestamp = timestampFormatter(entry.timestamp)\n\tif (timestamp !== undefined) args.push(timestamp)\n\tconst textCodes =\n\t\tmethod === 'error'\n\t\t\t? [ANSI_RED + ANSI_FOREGROUND]\n\t\t\t: method === 'warn'\n\t\t\t\t? [ANSI_YELLOW + ANSI_FOREGROUND]\n\t\t\t\t: undefined\n\n\treturn textCodes ? args.map(x => wrapAnsi(x, textCodes)) : args\n}\n\nfunction formatID(method: 'error' | 'warn' | 'info' | 'debug', id: string) {\n\tconst colorLevels = supportColor()\n\tconst colorLevel = method === 'error' ? colorLevels.stderr : colorLevels.stdout\n\treturn toIDFormatter(colorLevel)(id)\n}\n\nfunction toIDFormatter(colorLevel: ColorLevels) {\n\t// istanbul ignore next\n\tswitch (colorLevel) {\n\t\tcase ColorLevels.DISABLED:\n\t\t\treturn (id: string) => id\n\t\tcase ColorLevels.BASIC:\n\t\t\treturn basicIDFormatter\n\t\tcase ColorLevels.ANSI:\n\t\t\treturn ansiIDFormatter\n\t\tcase ColorLevels.TRUE:\n\t\t\treturn truecolorIDFormatter\n\t}\n}\n\nfunction basicIDFormatter(id: string) {\n\tconst codes = getAnsiColor(id)\n\treturn wrapAnsi(` ${id} `, codes)\n}\n\nconst ansiColors: {\n\tcounter: number\n\tlist: Array<number[]>\n} = {\n\tcounter: 0,\n\tlist: [\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE]\n\t]\n}\nconst ansiColorMap: Record<string, number[]> = Object.create(null)\n\nfunction getAnsiColor(id: string) {\n\treturn (ansiColorMap[id] =\n\t\tansiColorMap[id] || ansiColors.list[ansiColors.counter++ % ansiColors.list.length])\n}\n\n// istanbul ignore next\nfunction ansiIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n\n// istanbul ignore next\nfunction truecolorIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n","export function createColors(from, to, shades, alpha = [\n from.length === 4 ? from[3] : to.length === 4 ? to[3] : 1,\n to.length === 4 ? to[3] : from.length === 4 ? from[3] : 1\n]) {\n const start = [...from];\n const diff = [\n to[0] - from[0],\n to[1] - from[1],\n to[2] - from[2],\n alpha[1] - alpha[0]\n ];\n if (start.length === 3)\n start.push(alpha[0]);\n const inc = 1 / Math.max(shades - 1, 1);\n const rgba = [];\n for (let i = 0; i < shades; i++) {\n const color = [\n Math.round(start[0] + i * diff[0] * inc),\n Math.round(start[1] + i * diff[1] * inc),\n Math.round(start[2] + i * diff[2] * inc),\n start[3] + i * diff[3] * inc\n ];\n rgba.push(color);\n }\n return rgba;\n}\n//# sourceMappingURL=createColors.js.map","import { createColors } from './createColors.js';\n/**\n * Create colors with specified color map.\n */\nexport function createColorsFromMap(colormap, shades, alpha) {\n if (shades < colormap.length) {\n throw new Error(`Requires at least ${colormap.length} shades.`);\n }\n const result = [];\n const steps = [];\n for (let i = 0; i < colormap.length; i++) {\n steps.push(Math.round(colormap[i].index * shades));\n }\n for (let i = 0; i < colormap.length - 1; i++) {\n const n = steps[i + 1] - steps[i];\n const from = colormap[i].rgb;\n const to = colormap[i + 1].rgb;\n result.push(...createColors(from, to, n, alpha));\n }\n return result;\n}\n//# sourceMappingURL=createColorsFromMap.js.map","/**\n * Convert `RGB` to `#rgb`\n * JavaScript note: no check for array length, use it properly.\n */\nexport function rgbHex(rgb) {\n let hex = '#';\n for (let i = 0; i < 3; i++) {\n hex += d2h(rgb[i]);\n }\n return hex;\n}\nfunction d2h(d) {\n const s = (+d).toString(16);\n return s.length < 2 ? '0' + s : s;\n}\n//# sourceMappingURL=rgbHex.js.map","import type { ColorMap } from 'color-map'\n\nexport const rainbow: ColorMap = [\n\t{ index: 0, rgb: [150, 0, 90] },\n\t{ index: 0.125, rgb: [0, 0, 200] },\n\t{ index: 0.25, rgb: [0, 25, 255] },\n\t{ index: 0.375, rgb: [0, 152, 255] },\n\t{ index: 0.5, rgb: [44, 255, 150] },\n\t{ index: 0.625, rgb: [151, 255, 0] },\n\t{ index: 0.75, rgb: [255, 234, 0] },\n\t{ index: 0.875, rgb: [255, 111, 0] },\n\t{ index: 1, rgb: [255, 0, 0] }\n]\n","import { createColorsFromMap, type RGB, type RGBA, rgbHex } from 'color-map'\nimport { createTimestampFormatter, type LogEntry } from 'standard-log'\nimport { required } from 'unpartial'\nimport type { CssFormatterOptions } from '../types.js'\nimport { rainbow } from './colors.js'\n\nexport function createCssFormatter(options?: CssFormatterOptions) {\n\tconst { maxColor, timestamp, style } = required(\n\t\t{\n\t\t\tmaxColor: 20,\n\t\t\ttimestamp: 'none',\n\t\t\tstyle: 'padding: 2px; line-height: 1rem;'\n\t\t},\n\t\toptions\n\t)\n\tconst loggerMap: Record<string, RGB> = Object.create(null)\n\tconst colorMap: RGBA[] = createColorsFromMap(rainbow, maxColor)\n\tlet count = 0\n\n\tconst timestampFormatter = createTimestampFormatter(timestamp)\n\n\treturn function cssFormatter(entry: LogEntry) {\n\t\tlet idStr = `%c ${entry.id} `\n\t\tlet args: any[]\n\t\tif (firstArgIsColorTemplate(entry.args)) {\n\t\t\tidStr += entry.args[0]\n\t\t\targs = [...entry.args.slice(1)]\n\t\t} else {\n\t\t\targs = [...entry.args]\n\t\t}\n\t\tconst rgb = getRgb(entry.id)\n\t\tconst background = rgbHex(rgb)\n\t\tconst border = rgbHex(rgb.map(x => Math.max(0, x - 32)) as RGB)\n\t\tconst color = getForegroundColor(rgb)\n\t\tconst result = [\n\t\t\tidStr,\n\t\t\t`${style}background: ${background};border: 1px solid ${border};color: ${color};`,\n\t\t\t...args\n\t\t]\n\t\tconst t = timestampFormatter(entry.timestamp)\n\t\tif (t !== undefined) result.push(t)\n\t\treturn result\n\t}\n\n\tfunction firstArgIsColorTemplate(args: any[]) {\n\t\treturn typeof args[0] === 'string' && args[0].indexOf('%c') !== -1\n\t}\n\n\tfunction getRgb(id: string) {\n\t\treturn (loggerMap[id] = loggerMap[id] || colorMap[count++ & maxColor])\n\t}\n}\n\nconst gammaMap = {\n\trc: 0.2126,\n\tgc: 0.7152,\n\tbc: 0.0722,\n\tlowc: 1 / 12.92\n}\n\nfunction getForegroundColor(background: RGB) {\n\t// Setting the contrasting color as default\n\tlet color = getComplementary(background)\n\tconst bgLuminance = getRelativeLuminance(background)\n\tconst fgLuminance =\n\t\tcolor === '#ffffff' ? getRelativeLuminance([255, 255, 255]) : getRelativeLuminance([0, 0, 0])\n\tconst relativeL =\n\t\tbgLuminance > fgLuminance\n\t\t\t? (bgLuminance + 0.05) / (fgLuminance + 0.05)\n\t\t\t: (fgLuminance + 0.05) / (bgLuminance + 0.05)\n\n\t// Can set the contrast ratio based on text size later.\n\tif (relativeL < 4.5) {\n\t\tconst avgLuminance =\n\t\t\tbackground[0] * gammaMap['rc'] + background[1] * gammaMap['gc'] + background[2] * gammaMap['bc']\n\n\t\t// If the relative contrast is lower than standard, we switch color to black/white\n\t\tcolor = avgLuminance < 220 ? '#ffffff' : '#000000'\n\t}\n\treturn color\n}\n\nfunction getRelativeLuminance(rgb: RGB) {\n\t// https://www.w3.org/TR/WCAG/#relativeluminancedef\n\tconst rsrgb = rgb[0] / 255\n\tconst gsrgb = rgb[1] / 255\n\tconst bsrgb = rgb[2] / 255\n\n\tconst r = rsrgb <= 0.03928 ? rsrgb * gammaMap['lowc'] : ((rsrgb + 0.055) / 1.055) ** 2.4\n\tconst g = gsrgb <= 0.03928 ? gsrgb * gammaMap['lowc'] : ((gsrgb + 0.055) / 1.055) ** 2.4\n\tconst b = bsrgb <= 0.03928 ? bsrgb * gammaMap['lowc'] : ((bsrgb + 0.055) / 1.055) ** 2.4\n\n\treturn r * gammaMap['rc'] + g * gammaMap['gc'] + b * gammaMap['bc']\n}\n\nfunction getComplementary(rgb: RGB) {\n\tconst r = 255 - rgb[0]\n\tconst g = 255 - rgb[1]\n\tconst b = 255 - rgb[2]\n\treturn rgbHex([r, g, b])\n}\n","import { consoleFormatter, createConsoleLogReporter } from 'standard-log'\nimport { unpartial } from 'unpartial'\nimport { createCssFormatter } from './css/index.js'\nimport type { ColorLogReporterOptions } from './types.js'\n\nexport function createColorLogReporter(options?: ColorLogReporterOptions) {\n\treturn createConsoleLogReporter(\n\t\tunpartial(\n\t\t\t{\n\t\t\t\tformatter: supportCSSColorInConsole()\n\t\t\t\t\t? createCssFormatter(options?.cssFormatterOptions)\n\t\t\t\t\t: consoleFormatter\n\t\t\t},\n\t\t\toptions\n\t\t)\n\t)\n}\n\n// istanbul ignore next\nfunction supportCSSColorInConsole() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\t// @ts-expect-error\n\tif (window?.process?.type === 'renderer' || window?.process?.__nwjs) {\n\t\treturn true\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (navigator?.userAgent?.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (\n\t\t// @ts-expect-error\n\t\tdocument?.documentElement?.style?.WebkitAppearance ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t// @ts-expect-error\n\t\twindow?.console?.firebug ||\n\t\t// @ts-expect-error\n\t\t(window?.console?.exception && window?.console?.table) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(navigator?.userAgent?.toLowerCase().match(/firefox\\/(\\d+)/) && Number.parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\tnavigator?.userAgent?.toLowerCase().match(/applewebkit\\/(\\d+)/)\n\t)\n}\n"],"x_google_ignoreList":[1,5,7,12,13,14],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;CACA,MAAM,YAAY;;;;EAIjB,MAAM;;;;;;EAMN,WAAW;;;;;;EAMX,OAAO;;;;;;EAMP,UAAU;;;;;;EAMV,OAAO;;;;;;EAMP,MAAM;;;;;;EAMN,QAAQ;;;;;;EAMR,MAAM;;;;;;EAMN,OAAO;;;;;;EAMP,OAAO;;;;;;;EAOP,QAAQ,OAAO;;;;EAIf,KAAK,OAAO;CACb;;;;;;;ECnEA,IAAI,IAAI;EACR,IAA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
2
2
|
"name": "standard-log-color",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.3",
|
|
4
4
|
"description": "Color console reporter for `standard-log`",
|
|
5
5
|
"homepage": "https://github.com/cyberuni/standard-log/tree/main/packages/color",
|
|
6
6
|
"bugs": {
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"cjs",
|
|
52
52
|
"esm",
|
|
53
53
|
"ts",
|
|
54
|
-
"!**/*.spec.*"
|
|
54
|
+
"!**/*.spec.*",
|
|
55
|
+
"CHANGELOG.md"
|
|
55
56
|
],
|
|
56
57
|
"dependencies": {
|
|
57
58
|
"color-map": "^2.0.6",
|
|
@@ -59,17 +60,17 @@
|
|
|
59
60
|
"unpartial": "^1.0.8"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@repobuddy/vitest": "^
|
|
63
|
+
"@repobuddy/vitest": "^3.0.0",
|
|
63
64
|
"@types/node": "^24.0.0",
|
|
64
65
|
"@types/supports-color": "^8.1.3",
|
|
65
|
-
"assertron": "^11.
|
|
66
|
+
"assertron": "^11.7.2",
|
|
66
67
|
"depcheck": "^1.4.3",
|
|
67
68
|
"rimraf": "^6.0.0",
|
|
68
|
-
"satisfier": "^5.4.
|
|
69
|
-
"standard-log": "13.3.
|
|
69
|
+
"satisfier": "^5.4.6",
|
|
70
|
+
"standard-log": "13.3.3",
|
|
70
71
|
"tsdown": "^0.23.0",
|
|
71
72
|
"typescript": "^7.0.2",
|
|
72
|
-
"vitest": "^
|
|
73
|
+
"vitest": "^5.0.0"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
75
76
|
"standard-log": ">=11.0.1"
|