standard-log-color 3.2.3 → 5.0.0
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/LICENSE +1 -1
- package/{lib → cjs}/ansi/adjustCodes.d.ts +0 -0
- package/cjs/ansi/adjustCodes.d.ts.map +1 -0
- package/cjs/ansi/adjustCodes.js +24 -0
- package/cjs/ansi/adjustCodes.js.map +1 -0
- package/cjs/ansi/adjustCodes.spec.d.ts +2 -0
- package/cjs/ansi/adjustCodes.spec.d.ts.map +1 -0
- package/cjs/ansi/adjustCodes.spec.js +13 -0
- package/cjs/ansi/adjustCodes.spec.js.map +1 -0
- package/{lib → cjs}/ansi/ansiFormatter.d.ts +0 -0
- package/cjs/ansi/ansiFormatter.d.ts.map +1 -0
- package/cjs/ansi/ansiFormatter.js +47 -0
- package/cjs/ansi/ansiFormatter.js.map +1 -0
- package/{lib → cjs}/ansi/constants.d.ts +0 -0
- package/cjs/ansi/constants.d.ts.map +1 -0
- package/{lib → cjs}/ansi/constants.js +0 -0
- package/cjs/ansi/constants.js.map +1 -0
- package/{lib → cjs}/ansi/createColorCodes.d.ts +0 -0
- package/cjs/ansi/createColorCodes.d.ts.map +1 -0
- package/cjs/ansi/createColorCodes.js +49 -0
- package/cjs/ansi/createColorCodes.js.map +1 -0
- package/cjs/ansi/createColorCodes.spec.d.ts +2 -0
- package/cjs/ansi/createColorCodes.spec.d.ts.map +1 -0
- package/cjs/ansi/createColorCodes.spec.js +34 -0
- package/cjs/ansi/createColorCodes.spec.js.map +1 -0
- package/cjs/ansi/index.d.ts +4 -0
- package/cjs/ansi/index.d.ts.map +1 -0
- package/cjs/ansi/index.js +20 -0
- package/cjs/ansi/index.js.map +1 -0
- package/{lib → cjs}/ansi/isColor.d.ts +1 -1
- package/cjs/ansi/isColor.d.ts.map +1 -0
- package/cjs/ansi/isColor.js +13 -0
- package/cjs/ansi/isColor.js.map +1 -0
- package/cjs/ansi/isColor.spec.d.ts +2 -0
- package/cjs/ansi/isColor.spec.d.ts.map +1 -0
- package/cjs/ansi/isColor.spec.js +17 -0
- package/cjs/ansi/isColor.spec.js.map +1 -0
- package/{lib → cjs}/ansi/wrapAnsi.d.ts +0 -0
- package/cjs/ansi/wrapAnsi.d.ts.map +1 -0
- package/{lib → cjs}/ansi/wrapAnsi.js +2 -2
- package/cjs/ansi/wrapAnsi.js.map +1 -0
- package/cjs/ansi/wrapAnsi.spec.d.ts +2 -0
- package/cjs/ansi/wrapAnsi.spec.d.ts.map +1 -0
- package/cjs/ansi/wrapAnsi.spec.js +9 -0
- package/cjs/ansi/wrapAnsi.spec.js.map +1 -0
- package/{lib → cjs}/createColorLogReporter.browser.d.ts +0 -0
- package/cjs/createColorLogReporter.browser.d.ts.map +1 -0
- package/{lib → cjs}/createColorLogReporter.browser.js +5 -5
- package/cjs/createColorLogReporter.browser.js.map +1 -0
- package/{lib → cjs}/createColorLogReporter.d.ts +0 -0
- package/cjs/createColorLogReporter.d.ts.map +1 -0
- package/{lib → cjs}/createColorLogReporter.js +5 -5
- package/cjs/createColorLogReporter.js.map +1 -0
- package/cjs/createColorLogReporter.spec.d.ts +2 -0
- package/cjs/createColorLogReporter.spec.d.ts.map +1 -0
- package/cjs/createColorLogReporter.spec.js +178 -0
- package/cjs/createColorLogReporter.spec.js.map +1 -0
- package/{lib → cjs}/css/colors.d.ts +0 -0
- package/cjs/css/colors.d.ts.map +1 -0
- package/{lib → cjs}/css/colors.js +0 -0
- package/cjs/css/colors.js.map +1 -0
- package/{lib → cjs}/css/cssFormatter.d.ts +0 -0
- package/cjs/css/cssFormatter.d.ts.map +1 -0
- package/{lib → cjs}/css/cssFormatter.js +22 -14
- package/cjs/css/cssFormatter.js.map +1 -0
- package/cjs/css/cssFormatter.spec.d.ts +2 -0
- package/cjs/css/cssFormatter.spec.d.ts.map +1 -0
- package/cjs/css/cssFormatter.spec.js +33 -0
- package/cjs/css/cssFormatter.spec.js.map +1 -0
- package/cjs/css/index.d.ts +2 -0
- package/cjs/css/index.d.ts.map +1 -0
- package/cjs/css/index.js +18 -0
- package/cjs/css/index.js.map +1 -0
- package/cjs/index.d.ts +4 -0
- package/cjs/index.d.ts.map +1 -0
- package/cjs/index.js +20 -0
- package/cjs/index.js.map +1 -0
- package/cjs/package.json +3 -0
- package/cjs/utils/index.d.ts +2 -0
- package/cjs/utils/index.d.ts.map +1 -0
- package/cjs/utils/index.js +18 -0
- package/cjs/utils/index.js.map +1 -0
- package/{lib → cjs}/utils/supportColor.browser.d.ts +0 -0
- package/cjs/utils/supportColor.browser.d.ts.map +1 -0
- package/{lib → cjs}/utils/supportColor.browser.js +3 -0
- package/cjs/utils/supportColor.browser.js.map +1 -0
- package/{lib → cjs}/utils/supportColor.d.ts +0 -0
- package/cjs/utils/supportColor.d.ts.map +1 -0
- package/{lib → cjs}/utils/supportColor.js +0 -0
- package/cjs/utils/supportColor.js.map +1 -0
- package/dist/standard-log-color.es5.js +2 -0
- package/dist/standard-log-color.es5.js.gz +0 -0
- package/dist/standard-log-color.es5.js.map +1 -0
- package/dist/standard-log-color.es5.js.map.gz +0 -0
- package/dist/standard-log-color.esm.js +2 -0
- package/dist/standard-log-color.esm.js.gz +0 -0
- package/dist/standard-log-color.esm.js.map +1 -0
- package/dist/standard-log-color.esm.js.map.gz +0 -0
- package/{libm → esm}/ansi/adjustCodes.d.ts +0 -0
- package/esm/ansi/adjustCodes.d.ts.map +1 -0
- package/{libm → esm}/ansi/adjustCodes.js +1 -1
- package/esm/ansi/adjustCodes.js.map +1 -0
- package/esm/ansi/adjustCodes.spec.d.ts +2 -0
- package/esm/ansi/adjustCodes.spec.d.ts.map +1 -0
- package/esm/ansi/adjustCodes.spec.js +11 -0
- package/esm/ansi/adjustCodes.spec.js.map +1 -0
- package/{libm → esm}/ansi/ansiFormatter.d.ts +0 -0
- package/esm/ansi/ansiFormatter.d.ts.map +1 -0
- package/{libm → esm}/ansi/ansiFormatter.js +4 -4
- package/esm/ansi/ansiFormatter.js.map +1 -0
- package/{libm → esm}/ansi/constants.d.ts +0 -0
- package/esm/ansi/constants.d.ts.map +1 -0
- package/{libm → esm}/ansi/constants.js +0 -0
- package/esm/ansi/constants.js.map +1 -0
- package/{libm → esm}/ansi/createColorCodes.d.ts +0 -0
- package/esm/ansi/createColorCodes.d.ts.map +1 -0
- package/{libm → esm}/ansi/createColorCodes.js +2 -2
- package/esm/ansi/createColorCodes.js.map +1 -0
- package/esm/ansi/createColorCodes.spec.d.ts +2 -0
- package/esm/ansi/createColorCodes.spec.d.ts.map +1 -0
- package/esm/ansi/createColorCodes.spec.js +32 -0
- package/esm/ansi/createColorCodes.spec.js.map +1 -0
- package/esm/ansi/index.d.ts +4 -0
- package/esm/ansi/index.d.ts.map +1 -0
- package/esm/ansi/index.js +4 -0
- package/esm/ansi/index.js.map +1 -0
- package/{libm → esm}/ansi/isColor.d.ts +1 -1
- package/esm/ansi/isColor.d.ts.map +1 -0
- package/{libm → esm}/ansi/isColor.js +1 -1
- package/esm/ansi/isColor.js.map +1 -0
- package/esm/ansi/isColor.spec.d.ts +2 -0
- package/esm/ansi/isColor.spec.d.ts.map +1 -0
- package/esm/ansi/isColor.spec.js +15 -0
- package/esm/ansi/isColor.spec.js.map +1 -0
- package/{libm → esm}/ansi/wrapAnsi.d.ts +0 -0
- package/esm/ansi/wrapAnsi.d.ts.map +1 -0
- package/{libm → esm}/ansi/wrapAnsi.js +0 -0
- package/esm/ansi/wrapAnsi.js.map +1 -0
- package/esm/ansi/wrapAnsi.spec.d.ts +2 -0
- package/esm/ansi/wrapAnsi.spec.d.ts.map +1 -0
- package/esm/ansi/wrapAnsi.spec.js +7 -0
- package/esm/ansi/wrapAnsi.spec.js.map +1 -0
- package/{libm → esm}/createColorLogReporter.browser.d.ts +0 -0
- package/esm/createColorLogReporter.browser.d.ts.map +1 -0
- package/{libm → esm}/createColorLogReporter.browser.js +2 -2
- package/esm/createColorLogReporter.browser.js.map +1 -0
- package/{libm → esm}/createColorLogReporter.d.ts +0 -0
- package/esm/createColorLogReporter.d.ts.map +1 -0
- package/{libm → esm}/createColorLogReporter.js +2 -2
- package/esm/createColorLogReporter.js.map +1 -0
- package/esm/createColorLogReporter.spec.d.ts +2 -0
- package/esm/createColorLogReporter.spec.d.ts.map +1 -0
- package/esm/createColorLogReporter.spec.js +152 -0
- package/esm/createColorLogReporter.spec.js.map +1 -0
- package/{libm → esm}/css/colors.d.ts +0 -0
- package/esm/css/colors.d.ts.map +1 -0
- package/{libm → esm}/css/colors.js +0 -0
- package/esm/css/colors.js.map +1 -0
- package/{libm → esm}/css/cssFormatter.d.ts +0 -0
- package/esm/css/cssFormatter.d.ts.map +1 -0
- package/{libm → esm}/css/cssFormatter.js +1 -1
- package/esm/css/cssFormatter.js.map +1 -0
- package/esm/css/cssFormatter.spec.d.ts +2 -0
- package/esm/css/cssFormatter.spec.d.ts.map +1 -0
- package/esm/css/cssFormatter.spec.js +28 -0
- package/esm/css/cssFormatter.spec.js.map +1 -0
- package/esm/css/index.d.ts +2 -0
- package/esm/css/index.d.ts.map +1 -0
- package/esm/css/index.js +2 -0
- package/esm/css/index.js.map +1 -0
- package/esm/index.d.ts +4 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +4 -0
- package/esm/index.js.map +1 -0
- package/esm/utils/index.d.ts +2 -0
- package/esm/utils/index.d.ts.map +1 -0
- package/esm/utils/index.js +2 -0
- package/esm/utils/index.js.map +1 -0
- package/{libm → esm}/utils/supportColor.browser.d.ts +0 -0
- package/esm/utils/supportColor.browser.d.ts.map +1 -0
- package/{libm → esm}/utils/supportColor.browser.js +3 -0
- package/esm/utils/supportColor.browser.js.map +1 -0
- package/{libm → esm}/utils/supportColor.d.ts +0 -0
- package/esm/utils/supportColor.d.ts.map +1 -0
- package/{libm → esm}/utils/supportColor.js +0 -0
- package/esm/utils/supportColor.js.map +1 -0
- package/package.json +81 -35
- package/{src → ts}/ansi/adjustCodes.ts +1 -1
- package/{src → ts}/ansi/ansiFormatter.ts +5 -5
- package/{src → ts}/ansi/constants.ts +0 -0
- package/{src → ts}/ansi/createColorCodes.ts +2 -3
- package/ts/ansi/index.ts +3 -0
- package/{src → ts}/ansi/isColor.ts +1 -1
- package/{src → ts}/ansi/wrapAnsi.ts +0 -0
- package/{src → ts}/createColorLogReporter.browser.ts +2 -2
- package/{src → ts}/createColorLogReporter.ts +2 -2
- package/{src → ts}/css/colors.ts +0 -0
- package/{src → ts}/css/cssFormatter.ts +1 -1
- package/ts/css/index.ts +1 -0
- package/ts/index.ts +3 -0
- package/ts/utils/index.ts +1 -0
- package/{src → ts}/utils/supportColor.browser.ts +6 -3
- package/{src → ts}/utils/supportColor.ts +0 -0
- package/CHANGELOG.md +0 -631
- package/dist/standard-log-color.js +0 -2
- package/dist/standard-log-color.js.gz +0 -0
- package/dist/standard-log-color.js.map +0 -1
- package/dist/standard-log-color.js.map.gz +0 -0
- package/lib/ansi/adjustCodes.d.ts.map +0 -1
- package/lib/ansi/adjustCodes.js +0 -16
- package/lib/ansi/adjustCodes.js.map +0 -1
- package/lib/ansi/ansiFormatter.d.ts.map +0 -1
- package/lib/ansi/ansiFormatter.js +0 -39
- package/lib/ansi/ansiFormatter.js.map +0 -1
- package/lib/ansi/constants.d.ts.map +0 -1
- package/lib/ansi/constants.js.map +0 -1
- package/lib/ansi/createColorCodes.d.ts.map +0 -1
- package/lib/ansi/createColorCodes.js +0 -41
- package/lib/ansi/createColorCodes.js.map +0 -1
- package/lib/ansi/index.d.ts +0 -4
- package/lib/ansi/index.d.ts.map +0 -1
- package/lib/ansi/index.js +0 -7
- package/lib/ansi/index.js.map +0 -1
- package/lib/ansi/isColor.d.ts.map +0 -1
- package/lib/ansi/isColor.js +0 -13
- package/lib/ansi/isColor.js.map +0 -1
- package/lib/ansi/wrapAnsi.d.ts.map +0 -1
- package/lib/ansi/wrapAnsi.js.map +0 -1
- package/lib/createColorLogReporter.browser.d.ts.map +0 -1
- package/lib/createColorLogReporter.browser.js.map +0 -1
- package/lib/createColorLogReporter.d.ts.map +0 -1
- package/lib/createColorLogReporter.js.map +0 -1
- package/lib/css/colors.d.ts.map +0 -1
- package/lib/css/colors.js.map +0 -1
- package/lib/css/cssFormatter.d.ts.map +0 -1
- package/lib/css/cssFormatter.js.map +0 -1
- package/lib/css/index.d.ts +0 -2
- package/lib/css/index.d.ts.map +0 -1
- package/lib/css/index.js +0 -5
- package/lib/css/index.js.map +0 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -7
- package/lib/index.js.map +0 -1
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js +0 -5
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/supportColor.browser.d.ts.map +0 -1
- package/lib/utils/supportColor.browser.js.map +0 -1
- package/lib/utils/supportColor.d.ts.map +0 -1
- package/lib/utils/supportColor.js.map +0 -1
- package/libm/ansi/adjustCodes.d.ts.map +0 -1
- package/libm/ansi/adjustCodes.js.map +0 -1
- package/libm/ansi/ansiFormatter.d.ts.map +0 -1
- package/libm/ansi/ansiFormatter.js.map +0 -1
- package/libm/ansi/constants.d.ts.map +0 -1
- package/libm/ansi/constants.js.map +0 -1
- package/libm/ansi/createColorCodes.d.ts.map +0 -1
- package/libm/ansi/createColorCodes.js.map +0 -1
- package/libm/ansi/index.d.ts +0 -4
- package/libm/ansi/index.d.ts.map +0 -1
- package/libm/ansi/index.js +0 -4
- package/libm/ansi/index.js.map +0 -1
- package/libm/ansi/isColor.d.ts.map +0 -1
- package/libm/ansi/isColor.js.map +0 -1
- package/libm/ansi/wrapAnsi.d.ts.map +0 -1
- package/libm/ansi/wrapAnsi.js.map +0 -1
- package/libm/createColorLogReporter.browser.d.ts.map +0 -1
- package/libm/createColorLogReporter.browser.js.map +0 -1
- package/libm/createColorLogReporter.d.ts.map +0 -1
- package/libm/createColorLogReporter.js.map +0 -1
- package/libm/css/colors.d.ts.map +0 -1
- package/libm/css/colors.js.map +0 -1
- package/libm/css/cssFormatter.d.ts.map +0 -1
- package/libm/css/cssFormatter.js.map +0 -1
- package/libm/css/index.d.ts +0 -2
- package/libm/css/index.d.ts.map +0 -1
- package/libm/css/index.js +0 -2
- package/libm/css/index.js.map +0 -1
- package/libm/index.d.ts +0 -4
- package/libm/index.d.ts.map +0 -1
- package/libm/index.js +0 -4
- package/libm/index.js.map +0 -1
- package/libm/utils/index.d.ts +0 -2
- package/libm/utils/index.d.ts.map +0 -1
- package/libm/utils/index.js +0 -2
- package/libm/utils/index.js.map +0 -1
- package/libm/utils/supportColor.browser.d.ts.map +0 -1
- package/libm/utils/supportColor.browser.js.map +0 -1
- package/libm/utils/supportColor.d.ts.map +0 -1
- package/libm/utils/supportColor.js.map +0 -1
- package/src/ansi/adjustCodes.spec.ts +0 -12
- package/src/ansi/createColorCodes.spec.ts +0 -35
- package/src/ansi/index.ts +0 -3
- package/src/ansi/isColor.spec.ts +0 -18
- package/src/ansi/wrapAnsi.spec.ts +0 -7
- package/src/createColorLogReporter.spec.ts +0 -193
- package/src/css/cssFormatter.spec.ts +0 -30
- package/src/css/index.ts +0 -1
- package/src/index.ts +0 -3
- package/src/utils/index.ts +0 -1
package/ts/css/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cssFormatter.js'
|
package/ts/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './supportColor.js'
|
|
@@ -7,23 +7,26 @@ function doesBrowserSupportColor() {
|
|
|
7
7
|
// NB: In an Electron preload script, document will be defined but not fully
|
|
8
8
|
// initialized. Since we know we're in Chrome, we'll just detect this case
|
|
9
9
|
// explicitly
|
|
10
|
+
// @ts-ignore
|
|
10
11
|
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
|
11
|
-
return true
|
|
12
|
+
return true
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
// Internet Explorer and Edge do not support colors.
|
|
15
16
|
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
16
|
-
return false
|
|
17
|
+
return false
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
20
21
|
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
22
|
+
// @ts-ignore
|
|
21
23
|
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
22
24
|
// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
25
|
+
// @ts-ignore
|
|
23
26
|
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
24
27
|
// Is firefox >= v31?
|
|
25
28
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
26
29
|
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
|
|
27
30
|
// Double check webkit in userAgent just in case we are in a worker
|
|
28
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))
|
|
31
|
+
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))
|
|
29
32
|
}
|
|
File without changes
|
package/CHANGELOG.md
DELETED
|
@@ -1,631 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## 3.2.3 (2022-01-02)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package standard-log-color
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## 3.2.2 (2022-01-02)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package standard-log-color
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## 3.2.1 (2021-05-21)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
* update tslib ([#110](https://github.com/unional/standard-log/issues/110)) ([2d7a0d2](https://github.com/unional/standard-log/commit/2d7a0d200d442794d7152aa284a65c00e0840bd7))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# 3.2.0 (2021-05-12)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
* add configForTest() ([#109](https://github.com/unional/standard-log/issues/109)) ([9170b29](https://github.com/unional/standard-log/commit/9170b2976896b5f0bf577480ee72ec3d9b64a836))
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## 3.1.3 (2021-04-30)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
### Bug Fixes
|
|
48
|
-
|
|
49
|
-
* diable destructuring ([#108](https://github.com/unional/standard-log/issues/108)) ([664d33a](https://github.com/unional/standard-log/commit/664d33ae3e499b5cde2c1a9d409730a8e38b261f))
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
## 3.1.2 (2021-04-30)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### Bug Fixes
|
|
59
|
-
|
|
60
|
-
* support old phantomjs ([#107](https://github.com/unional/standard-log/issues/107)) ([5fee141](https://github.com/unional/standard-log/commit/5fee14132ec3c220f7447c2347223dfee0a0b2b7))
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
## 3.1.1 (2021-04-29)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### Bug Fixes
|
|
70
|
-
|
|
71
|
-
* remove arrow function from bundle ([#106](https://github.com/unional/standard-log/issues/106)) ([cc36f64](https://github.com/unional/standard-log/commit/cc36f646b6d2d24ba0a104e9b8861df5c4dc40a4))
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
# 3.1.0 (2021-04-18)
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### Features
|
|
81
|
-
|
|
82
|
-
* add MemoryReporter.getLogMessageWithLevel() ([5c923d9](https://github.com/unional/standard-log/commit/5c923d971d22aff015d47c0a9317004717ce96a2))
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
## 3.0.1 (2021-04-17)
|
|
89
|
-
|
|
90
|
-
**Note:** Version bump only for package standard-log-color
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
# [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)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
### Bug Fixes
|
|
100
|
-
|
|
101
|
-
* print log message with pretty object ([#104](https://github.com/unional/standard-log/issues/104)) ([3b6709b](https://github.com/unional/standard-log/commit/3b6709b9dea152989b662755cf41c1503895dd8c))
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
### BREAKING CHANGES
|
|
105
|
-
|
|
106
|
-
* elasped -> elapsed
|
|
107
|
-
|
|
108
|
-
The `TimestampFormat` has fixed the typo from `elasped` to `elapsed`.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
# 2.3.0 (2021-03-31)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
### Features
|
|
118
|
-
|
|
119
|
-
* adding getLogMessage() for MemoryLogReporter ([19e08d5](https://github.com/unional/standard-log/commit/19e08d536e46258e7d151f40659f502062696c43))
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
## 2.2.2 (2021-03-19)
|
|
126
|
-
|
|
127
|
-
**Note:** Version bump only for package standard-log-color
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
## 2.2.1 (2021-03-19)
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
### Bug Fixes
|
|
137
|
-
|
|
138
|
-
* support case when adding first console reporter ([fda7209](https://github.com/unional/standard-log/commit/fda7209a8f72ea6cf2f8d942ed8c1dd29d3cff69))
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
# 2.2.0 (2021-03-19)
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### Features
|
|
148
|
-
|
|
149
|
-
* getLogger can specify a custom reporter ([1ba85e5](https://github.com/unional/standard-log/commit/1ba85e51c639de8147a82386473c25b2fcf861ca))
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
## 2.1.2 (2021-03-19)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
### Bug Fixes
|
|
159
|
-
|
|
160
|
-
* filter should be optional ([#100](https://github.com/unional/standard-log/issues/100)) ([6fa73c2](https://github.com/unional/standard-log/commit/6fa73c24d979061c4b390aab4597688d29953fd8))
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
## 2.1.1 (2021-03-13)
|
|
167
|
-
|
|
168
|
-
**Note:** Version bump only for package standard-log-color
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
# 2.1.0 (2021-02-24)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
### Features
|
|
178
|
-
|
|
179
|
-
* add logger.write(entry) ([28fe6c9](https://github.com/unional/standard-log/commit/28fe6c955b7c5dd3a13bef5f3276b7f4641b2d1f))
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
# 2.0.0 (2021-02-24)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### Features
|
|
189
|
-
|
|
190
|
-
* return result in captureLogs() ([#97](https://github.com/unional/standard-log/issues/97)) ([3f457c3](https://github.com/unional/standard-log/commit/3f457c37a685435a0d20802bb0be33565e58ba20))
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
### BREAKING CHANGES
|
|
194
|
-
|
|
195
|
-
* return signagure of captureLogs changed
|
|
196
|
-
|
|
197
|
-
* chore: update deps
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
## 1.5.25 (2020-12-19)
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
### Bug Fixes
|
|
207
|
-
|
|
208
|
-
* **color:** remove isBrowser and use browser field ([9a468e8](https://github.com/unional/standard-log/commit/9a468e8fb696be680138e707b050b38b4bbb2344))
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
## 1.5.24 (2020-12-16)
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
### Bug Fixes
|
|
218
|
-
|
|
219
|
-
* **syslog:** distribute src to fix source map ([65d1a83](https://github.com/unional/standard-log/commit/65d1a83098bb7c590a88899a828698c661485572))
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
## 1.5.23 (2020-10-28)
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
### Bug Fixes
|
|
229
|
-
|
|
230
|
-
* allow @ \ / in id ([#94](https://github.com/unional/standard-log/issues/94)) ([5684a0e](https://github.com/unional/standard-log/commit/5684a0e43d7dbb5956b3652d87fccee0e638da06))
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
## 1.5.22 (2020-10-28)
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
### Bug Fixes
|
|
240
|
-
|
|
241
|
-
* upgrade dependencies ([#93](https://github.com/unional/standard-log/issues/93)) ([0afc399](https://github.com/unional/standard-log/commit/0afc39942b74e1b2dd551e25b74cdd00739e0416))
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
## 1.5.21 (2020-08-30)
|
|
248
|
-
|
|
249
|
-
**Note:** Version bump only for package standard-log-color
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
## 1.5.20 (2020-08-30)
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
### Bug Fixes
|
|
259
|
-
|
|
260
|
-
* store initializer ([#92](https://github.com/unional/standard-log/issues/92)) ([aedefd3](https://github.com/unional/standard-log/commit/aedefd37ab90baddd540e728fb3d60be7d539abf))
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
## 1.5.19 (2020-03-07)
|
|
267
|
-
|
|
268
|
-
**Note:** Version bump only for package standard-log-color
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
## 1.5.18 (2020-03-07)
|
|
275
|
-
|
|
276
|
-
**Note:** Version bump only for package standard-log-color
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
## [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)
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
### Bug Fixes
|
|
286
|
-
|
|
287
|
-
* default logLevel to info ([391b973](https://github.com/unional/standard-log/commit/391b973d504742232786c5266e80fa51bcba7f27))
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
## [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)
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
### Bug Fixes
|
|
297
|
-
|
|
298
|
-
* update deps ([14e7064](https://github.com/unional/standard-log/commit/14e7064ede66143a9ebc3ee46d720ea47d4eef07))
|
|
299
|
-
* **color:** add tslib ([ac594d5](https://github.com/unional/standard-log/commit/ac594d54d9a5e12752cd18ff4e7a4f77d9e6188d))
|
|
300
|
-
* add sideEffects flag ([95ae4dc](https://github.com/unional/standard-log/commit/95ae4dc056bfbf552a645b681182d08cf56ca0b1))
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
## [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)
|
|
307
|
-
|
|
308
|
-
**Note:** Version bump only for package standard-log-color
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
## [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)
|
|
315
|
-
|
|
316
|
-
**Note:** Version bump only for package standard-log-color
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
## [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)
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
### Bug Fixes
|
|
326
|
-
|
|
327
|
-
* **color:** peerDeps to accept 4.0 ([06a7ddc](https://github.com/unional/standard-log/commit/06a7ddc))
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
## [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)
|
|
334
|
-
|
|
335
|
-
**Note:** Version bump only for package standard-log-color
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
## [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)
|
|
342
|
-
|
|
343
|
-
**Note:** Version bump only for package standard-log-color
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
## [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)
|
|
350
|
-
|
|
351
|
-
**Note:** Version bump only for package standard-log-color
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
## [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)
|
|
358
|
-
|
|
359
|
-
**Note:** Version bump only for package standard-log-color
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
## [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)
|
|
366
|
-
|
|
367
|
-
**Note:** Version bump only for package standard-log-color
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
## [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)
|
|
374
|
-
|
|
375
|
-
**Note:** Version bump only for package standard-log-color
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
## [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)
|
|
382
|
-
|
|
383
|
-
**Note:** Version bump only for package standard-log-color
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
## [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)
|
|
390
|
-
|
|
391
|
-
**Note:** Version bump only for package standard-log-color
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
## [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)
|
|
398
|
-
|
|
399
|
-
**Note:** Version bump only for package standard-log-color
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
## [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)
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
### Bug Fixes
|
|
409
|
-
|
|
410
|
-
* remove spec files from package ([cae7eb7](https://github.com/unional/standard-log/commit/cae7eb7))
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
## [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)
|
|
417
|
-
|
|
418
|
-
**Note:** Version bump only for package standard-log-color
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
## [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)
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
### Bug Fixes
|
|
428
|
-
|
|
429
|
-
* **color:** don't need to define id ([8fd5915](https://github.com/unional/standard-log/commit/8fd5915))
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
# [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)
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
### Features
|
|
439
|
-
|
|
440
|
-
* **log:** remove isBrowser ([e7ff262](https://github.com/unional/standard-log/commit/e7ff262))
|
|
441
|
-
* remove core again ([5e1f021](https://github.com/unional/standard-log/commit/5e1f021))
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
## [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)
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
### Bug Fixes
|
|
451
|
-
|
|
452
|
-
* **color:** not reference standard-log ([70d81f5](https://github.com/unional/standard-log/commit/70d81f5))
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
## [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)
|
|
459
|
-
|
|
460
|
-
**Note:** Version bump only for package standard-log-color
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
## [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)
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
### Bug Fixes
|
|
470
|
-
|
|
471
|
-
* move code to @standard-log/core ([#16](https://github.com/unional/standard-log/issues/16)) ([0c769f8](https://github.com/unional/standard-log/commit/0c769f8))
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
## [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)
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
### Bug Fixes
|
|
481
|
-
|
|
482
|
-
* **color:** use local isBrowser ([#15](https://github.com/unional/standard-log/issues/15)) ([343b3cf](https://github.com/unional/standard-log/commit/343b3cf))
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
## [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)
|
|
489
|
-
|
|
490
|
-
**Note:** Version bump only for package standard-log-color
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
## [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)
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
### Bug Fixes
|
|
500
|
-
|
|
501
|
-
* udpate peerDeps to 2.0.0 ([83ba5d2](https://github.com/unional/standard-log/commit/83ba5d2))
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
# 1.4.0 (2019-07-28)
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
### Bug Fixes
|
|
511
|
-
|
|
512
|
-
* **memory:** add aurelia-logging back as dependency ([5987bb5](https://github.com/unional/standard-log/commit/5987bb5))
|
|
513
|
-
* 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))
|
|
514
|
-
* preversion script ([cab5195](https://github.com/unional/standard-log/commit/cab5195))
|
|
515
|
-
* remove declaration from bundle folder ([6629661](https://github.com/unional/standard-log/commit/6629661))
|
|
516
|
-
* repass all tests ([9aa8a68](https://github.com/unional/standard-log/commit/9aa8a68))
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
### Features
|
|
520
|
-
|
|
521
|
-
* **color:** decouple form `Logger` ([2f48976](https://github.com/unional/standard-log/commit/2f48976))
|
|
522
|
-
* add aurelia-logging-file ([#43](https://github.com/unional/standard-log/issues/43)) ([2f7a7e8](https://github.com/unional/standard-log/commit/2f7a7e8))
|
|
523
|
-
* update aurelia-logging-color to not depend on Logger ([bb07b1b](https://github.com/unional/standard-log/commit/bb07b1b))
|
|
524
|
-
* **color:** rename standard-log-console to standard-log-color ([30fa7fb](https://github.com/unional/standard-log/commit/30fa7fb))
|
|
525
|
-
* **simple-console:** initial release ([946fd31](https://github.com/unional/standard-log/commit/946fd31))
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
## [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)
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
### Bug Fixes
|
|
535
|
-
|
|
536
|
-
* **console:** remove semver library ([c7eabed](https://github.com/unional/standard-log/commit/c7eabed))
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
## [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)
|
|
543
|
-
|
|
544
|
-
**Note:** Version bump only for package standard-log-console
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
## [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)
|
|
551
|
-
|
|
552
|
-
**Note:** Version bump only for package standard-log-console
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
## [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)
|
|
559
|
-
|
|
560
|
-
**Note:** Version bump only for package standard-log-console
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
## [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)
|
|
567
|
-
|
|
568
|
-
**Note:** Version bump only for package standard-log-console
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
## [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)
|
|
575
|
-
|
|
576
|
-
**Note:** Version bump only for package standard-log-console
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
# [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)
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
### Features
|
|
586
|
-
|
|
587
|
-
* **log:** export LogReporterOptions ([#7](https://github.com/unional/standard-log/issues/7)) ([32122f0](https://github.com/unional/standard-log/commit/32122f0))
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
## [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)
|
|
594
|
-
|
|
595
|
-
**Note:** Version bump only for package standard-log-console
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
## [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)
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
### Bug Fixes
|
|
605
|
-
|
|
606
|
-
* include libm in distribution ([f844b9c](https://github.com/unional/standard-log/commit/f844b9c))
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
# 1.2.0 (2019-07-14)
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
### Bug Fixes
|
|
616
|
-
|
|
617
|
-
* **console:** clean up console options ([fb3020f](https://github.com/unional/standard-log/commit/fb3020f))
|
|
618
|
-
* **console:** polyfill console ([5367fe1](https://github.com/unional/standard-log/commit/5367fe1))
|
|
619
|
-
* 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))
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
### Features
|
|
623
|
-
|
|
624
|
-
* **console:** add ConsoleLogFormatter type ([4460dd1](https://github.com/unional/standard-log/commit/4460dd1))
|
|
625
|
-
* **console:** expose createTimestampFormatter() ([91f3561](https://github.com/unional/standard-log/commit/91f3561))
|
|
626
|
-
* **console:** expose wrapAnsi and constants ([b3abc07](https://github.com/unional/standard-log/commit/b3abc07))
|
|
627
|
-
* **console:** move plainFormatter to core ([242d37b](https://github.com/unional/standard-log/commit/242d37b))
|
|
628
|
-
* **console:** remove dead types ([0253226](https://github.com/unional/standard-log/commit/0253226))
|
|
629
|
-
* **console:** remove default cssFormatter. ([4799308](https://github.com/unional/standard-log/commit/4799308))
|
|
630
|
-
* **core:** move isBrowser ([dc36f47](https://github.com/unional/standard-log/commit/dc36f47))
|
|
631
|
-
* **core:** remove LogReporter.filter ([2abf9b9](https://github.com/unional/standard-log/commit/2abf9b9))
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var StandardLogColor;!function(){"use strict";var r={261:function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.createColors=function(r,e,t,n){void 0===n&&(n=[4===r.length?r[3]:4===e.length?e[3]:1,4===e.length?e[3]:4===r.length?r[3]:1]);var o=r.slice(),i=[e[0]-r[0],e[1]-r[1],e[2]-r[2],n[1]-n[0]];3===o.length&&o.push(n[0]);for(var u=1/Math.max(t-1,1),a=[],c=0;c<t;c++){var s=[Math.round(o[0]+c*i[0]*u),Math.round(o[1]+c*i[1]*u),Math.round(o[2]+c*i[2]*u),o[3]+c*i[3]*u];a.push(s)}return a}},296:function(r,e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=t(261);e.createColorsFromMap=function(r,e,t){if(e<r.length)throw new Error("Requires at least "+r.length+" shades.");for(var o=[],i=[],u=0;u<r.length;u++)i.push(Math.round(r[u].index*e));for(u=0;u<r.length-1;u++){var a=i[u+1]-i[u],c=r[u].rgb,s=r[u+1].rgb;o.push.apply(o,n.createColors(c,s,a,t))}return o}},340:function(r,e,t){function n(r){for(var t in r)e.hasOwnProperty(t)||(e[t]=r[t])}Object.defineProperty(e,"__esModule",{value:!0}),n(t(261)),n(t(296)),n(t(228)),n(t(463))},228:function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.rgbHex=function(r){for(var e,t="#",n=0;n<3;n++)t+=(void 0,(e=(+r[n]).toString(16)).length<2?"0"+e:e);return t}},463:function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.rgbaString=function(r){return"rgba("+r.join(",")+")"}},251:function(r,e,t){var n=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,o=r.length;t<n;t++,o++)r[o]=e[t];return r};e.__esModule=!0,e.adjustCodes=void 0;var o=t(918);e.adjustCodes=function(r,e){if("error"===e&&r[0]===o.ANSI_RED+o.ANSI_BACKGROUND||"warn"===e&&r[0]===o.ANSI_YELLOW+o.ANSI_BACKGROUND){var t=n([],r);return t[1]=o.ANSI_BLACK+o.ANSI_FOREGROUND,t}return r}},250:function(r,e,t){var n=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,o=r.length;t<n;t++,o++)r[o]=e[t];return r};e.__esModule=!0,e.createAnsiFormatter=void 0;var o=t(357),i=t(251),u=t(918),a=t(635),c=t(465);e.createAnsiFormatter=function(r){void 0===r&&(r={timestamp:"none"});var e={colorMap:a.createColorCodes(),idMap:{},counter:0},t=o.createTimestampFormatter(r.timestamp);return function(r){var a=o.toConsoleMethod(r.level),s=i.adjustCodes(function(r,e){return r.idMap[e]=r.idMap[e]||r.colorMap[r.counter++%r.colorMap.length]}(e,r.id),a),f=c.wrapAnsiId(r.id,s),d=n([],r.args),_=t(r.timestamp);void 0!==_&&d.push(_);var l="error"===a?[u.ANSI_RED+u.ANSI_FOREGROUND]:"warn"===a?[u.ANSI_YELLOW+u.ANSI_FOREGROUND]:void 0;return n([f],l?d.map((function(r){return c.wrapAnsi(r,l)})):d)}}},918:function(r,e){e.__esModule=!0,e.ANSI_BACKGROUND=e.ANSI_FOREGROUND=e.ANSI_UNDERSCORE=e.ANSI_BRIGHT=e.ANSI_WHITE=e.ANSI_CYAN=e.ANSI_MAGENTA=e.ANSI_BLUE=e.ANSI_YELLOW=e.ANSI_GREEN=e.ANSI_RED=e.ANSI_BLACK=void 0,e.ANSI_BLACK=0,e.ANSI_RED=1,e.ANSI_GREEN=2,e.ANSI_YELLOW=3,e.ANSI_BLUE=4,e.ANSI_MAGENTA=5,e.ANSI_CYAN=6,e.ANSI_WHITE=7,e.ANSI_BRIGHT=1,e.ANSI_UNDERSCORE=4,e.ANSI_FOREGROUND=30,e.ANSI_BACKGROUND=40},635:function(r,e,t){var n=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,o=r.length;t<n;t++,o++)r[o]=e[t];return r};e.__esModule=!0,e.createColorCodes=void 0;var o=t(918),i=t(218);e.createColorCodes=function(){var r=[o.ANSI_RED,o.ANSI_GREEN,o.ANSI_YELLOW,o.ANSI_BLUE,o.ANSI_MAGENTA,o.ANSI_CYAN],e=r.map((function(r){return r+o.ANSI_BACKGROUND})),t=e.map((function(r){return[r]}));r.forEach((function(r){return t.push.apply(t,e.map((function(e){return[e,r+o.ANSI_FOREGROUND]})))}));var u=(t=function(r){return r.filter((function(r){return!(i.isColor(r,o.ANSI_WHITE,o.ANSI_YELLOW)||i.isColor(r,o.ANSI_MAGENTA,o.ANSI_RED)||i.isColor(r,o.ANSI_RED,o.ANSI_MAGENTA)||i.isColor(r,o.ANSI_CYAN,o.ANSI_BLUE)||i.isColor(r,o.ANSI_BLUE,o.ANSI_CYAN)||i.isColor(r,o.ANSI_CYAN,o.ANSI_GREEN)||i.isColor(r,o.ANSI_GREEN,o.ANSI_CYAN)||i.isColor(r,o.ANSI_RED,o.ANSI_BLUE)||i.isColor(r,o.ANSI_BLUE,o.ANSI_RED)||i.isColor(r,o.ANSI_BLUE,o.ANSI_MAGENTA)||i.isColor(r,o.ANSI_MAGENTA,o.ANSI_BLUE)||i.isColor(r,o.ANSI_GREEN,o.ANSI_YELLOW)||i.isColor(r,o.ANSI_YELLOW,o.ANSI_GREEN)||i.isColor(r,o.ANSI_CYAN,o.ANSI_YELLOW)||i.isColor(r,o.ANSI_YELLOW,o.ANSI_CYAN))}))}(t=function(r){return r.filter((function(r){return 1===r.length||r[0]!==r[1]+10}))}(t))).filter((function(r){return 1!==r.length})).map((function(r){return n(n([],r),[o.ANSI_BRIGHT])})),a=t.filter((function(r){return 1!==r.length})).map((function(r){return n(n([],r),[o.ANSI_UNDERSCORE])}));return n(n(n([],t),u),a)}},686:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(r,e,t,n){void 0===n&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){void 0===n&&(n=t),r[n]=e[t]}),o=this&&this.__exportStar||function(r,e){for(var t in r)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||n(e,r,t)};e.__esModule=!0,o(t(250),e),o(t(918),e),o(t(465),e)},218:function(r,e,t){e.__esModule=!0,e.isColor=void 0;var n=t(918);e.isColor=function(r,e,t,o){if(1===r.length)return e===n.ANSI_WHITE&&r[0]===t+n.ANSI_BACKGROUND;var i=r[1]===e+n.ANSI_FOREGROUND&&r[0]===t+n.ANSI_BACKGROUND;return o?r[2]===o&&i:i}},465:function(r,e){function t(r,e){return"["+e.join(";")+"m"+r+"[0m"}e.__esModule=!0,e.wrapAnsi=e.wrapAnsiId=void 0,e.wrapAnsiId=function(r,e){return t(function(r,e){return e.some((function(r){return r>40}))?" "+r+" ":r}(r,e),e)},e.wrapAnsi=t},522:function(r,e,t){e.__esModule=!0,e.createColorLogReporter=void 0;var n=t(357),o=t(531),i=t(841),u=t(708);e.createColorLogReporter=function(r){return n.createConsoleLogReporter(o.required({formatter:u.supportColor()?i.createCssFormatter():n.plainLogFormatter},r))}},101:function(r,e){e.__esModule=!0,e.rainbow=void 0,e.rainbow=[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}]},180:function(r,e,t){var n=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,o=r.length;t<n;t++,o++)r[o]=e[t];return r};e.__esModule=!0,e.createCssFormatter=void 0;var o=t(357),i=t(340),u=t(531),a=t(101);e.createCssFormatter=function(r){var e=u.required({maxColor:20,timestamp:"none"},r),t=e.maxColor,d=e.timestamp,l={},A=i.createColorsFromMap(a.rainbow,t),p=0,N=o.createTimestampFormatter(d);return function(r){var e,o="%c "+r.id+" ";!function(r){return"string"==typeof r[0]&&-1!==r[0].indexOf("%c")}(r.args)?e=n([],r.args):(o+=r.args[0],e=n([],r.args.slice(1)));var u,a=(u=r.id,l[u]=l[u]||A[p++&t]),d=i.rgbHex(a),v=i.rgbHex(a.map((function(r){return Math.max(0,r-32)}))),g=function(r){var e=function(r){var e=255-r[0],t=255-r[1],n=255-r[2];return i.rgbHex([e,t,n])}(r),t=_(r),n=_("#ffffff"===e?[255,255,255]:[0,0,0]);return(t>n?(t+.05)/(n+.05):(n+.05)/(t+.05))<4.5&&(e=r[0]*c+r[1]*s+r[2]*f<220?"#ffffff":"#000000"),e}(a),S=n([o,"padding: 2px; margin: 2px; line-height: 1.8em;background: "+d+";border: 1px solid "+v+";color: "+g+";"],e),I=N(r.timestamp);return void 0!==I&&S.push(I),S}};var c=.2126,s=.7152,f=.0722,d=1/12.92;function _(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,o=e<=.03928?e*d:Math.pow((e+.055)/1.055,2.4),i=t<=.03928?t*d:Math.pow((t+.055)/1.055,2.4),u=n<=.03928?n*d:Math.pow((n+.055)/1.055,2.4);return o*c+i*s+u*f}},841:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(r,e,t,n){void 0===n&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){void 0===n&&(n=t),r[n]=e[t]}),o=this&&this.__exportStar||function(r,e){for(var t in r)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||n(e,r,t)};e.__esModule=!0,o(t(180),e)},97:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(r,e,t,n){void 0===n&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){void 0===n&&(n=t),r[n]=e[t]}),o=this&&this.__exportStar||function(r,e){for(var t in r)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||n(e,r,t)};e.__esModule=!0,o(t(686),e),o(t(522),e),o(t(841),e)},708:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(r,e,t,n){void 0===n&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){void 0===n&&(n=t),r[n]=e[t]}),o=this&&this.__exportStar||function(r,e){for(var t in r)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||n(e,r,t)};e.__esModule=!0,o(t(378),e)},378:function(r,e){e.__esModule=!0,e.supportColor=void 0,e.supportColor=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}},531:function(r,e,t){function n(r){for(var t in r)e.hasOwnProperty(t)||(e[t]=r[t])}Object.defineProperty(e,"__esModule",{value:!0}),n(t(76)),n(t(341))},76:function(r,e){var t=this&&this.__assign||function(){return(t=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)};function n(r,e){return void 0===r[0]||null===r[0]?r[0]:r.filter((function(r){return!!r})).reduce(e,{})}function o(r,e){return"object"!=typeof r||null===r?void 0!==e?e:r:Array.isArray(r)?Array.isArray(e)?e:void 0===e?r.slice():r.concat([e]):i(r).concat(i(e)).reduce((function(t,n){return t[n]=o(r[n],e&&e[n]),t}),{})}function i(r,e){if(void 0===e&&(e=!1),"object"!=typeof r)return[];var t=Object.getOwnPropertyNames(r),n=e?t.filter((function(r){return"constructor"!==r})):t,o=Object.getPrototypeOf(r);return o!==Object.prototype?n.concat(i(o,!0)):n}Object.defineProperty(e,"__esModule",{value:!0}),e.required=function(r,e,o){return n([r,e,o],(function(r,e){return t({},r,e)}))},e.requiredDeep=function(r,e,t){return n([r,e,t],(function(r,e){return o(r,e)}))}},341:function(r,e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=t(76);e.unpartial=function(r,e,t){return n.required(r,e,t)},e.unpartialRecursively=function(r,e,t){return n.requiredDeep(r,e,t)}},357:function(r){r.exports=StandardLog}},e={},t=function t(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return r[n].call(o.exports,o,o.exports,t),o.exports}(97);StandardLogColor=t}();
|
|
2
|
-
//# sourceMappingURL=standard-log-color.js.map
|