nightingale-markdown-formatter 12.1.3 → 12.1.4
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
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [12.1.4](https://github.com/christophehurpeau/nightingale/compare/v12.1.3...v12.1.4) (2022-02-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* cjs build ([2e24ac5](https://github.com/christophehurpeau/nightingale/commit/2e24ac5753ee386c5be9ca56796194ee598f10ff))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [12.1.3](https://github.com/christophehurpeau/nightingale/compare/v12.1.2...v12.1.3) (2022-01-15)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package nightingale-markdown-formatter
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node14.cjs","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { Styles, LogRecord, Metadata } from 'nightingale-types';\n\nexport function style(styles: Styles, string: string): string {\n if (!styles || styles.length === 0 || !string) {\n return string;\n }\n\n // eslint-disable-next-line unicorn/no-array-reduce\n return styles.reduce((part, styleName) => {\n switch (styleName) {\n case 'bold':\n return `*${part}*`;\n case 'italic':\n return `_${part}_`;\n case 'strikethrough':\n return `~${part}~`;\n }\n\n return part;\n }, string);\n}\n\nexport default function format<T extends Metadata>(\n record: LogRecord<T>,\n): string {\n return formatRecordToString(record, style);\n}\n"],"names":["style","styles","string","length","reduce","part","styleName","format","record","formatRecordToString"],"mappings":";;;;;;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,MAA/B,EAAuD;AAC5D,MAAI,CAACD,MAAD,IAAWA,MAAM,CAACE,MAAP,KAAkB,CAA7B,IAAkC,CAACD,MAAvC,EAA+C;AAC7C,WAAOA,MAAP;AACD,GAH2D;;;AAM5D,SAAOD,MAAM,CAACG,MAAP,CAAc,CAACC,IAAD,EAAOC,SAAP,KAAqB;AACxC,YAAQA,SAAR;AACE,WAAK,MAAL;AACE,eAAQ,IAAGD,IAAK,GAAhB;;AACF,WAAK,QAAL;AACE,eAAQ,IAAGA,IAAK,GAAhB;;AACF,WAAK,eAAL;AACE,eAAQ,IAAGA,IAAK,GAAhB;AANJ;;AASA,WAAOA,IAAP;AACD,GAXM,EAWJH,MAXI,CAAP;AAYD;AAEc,SAASK,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,yCAAoB,CAACD,MAAD,EAASR,KAAT,CAA3B;AACD;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nightingale-markdown-formatter",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.4",
|
|
4
4
|
"description": "Nightingale Markdown formatter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nightingale",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
".": {
|
|
35
35
|
"node": {
|
|
36
36
|
"import": "./dist/index-node14.mjs",
|
|
37
|
-
"require": "./dist/index-node14.cjs
|
|
37
|
+
"require": "./dist/index-node14.cjs"
|
|
38
38
|
},
|
|
39
39
|
"browser": {
|
|
40
40
|
"browser:modern": {
|
|
@@ -91,16 +91,16 @@
|
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"nightingale-formatter": "12.1.
|
|
95
|
-
"nightingale-types": "12.1.
|
|
94
|
+
"nightingale-formatter": "12.1.4",
|
|
95
|
+
"nightingale-types": "12.1.4"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@babel/core": "7.
|
|
99
|
-
"@babel/preset-env": "7.16.
|
|
98
|
+
"@babel/core": "7.17.0",
|
|
99
|
+
"@babel/preset-env": "7.16.11",
|
|
100
100
|
"babel-preset-modern-browsers": "15.0.2",
|
|
101
|
-
"nightingale-levels": "12.1.
|
|
102
|
-
"pob-babel": "
|
|
103
|
-
"typescript": "4.5.
|
|
101
|
+
"nightingale-levels": "12.1.4",
|
|
102
|
+
"pob-babel": "30.0.1",
|
|
103
|
+
"typescript": "4.5.5"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "3754d4575d948b5bb8c5227d3c3f4ca25e801db5"
|
|
106
106
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-node14.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { Styles, LogRecord, Metadata } from 'nightingale-types';\n\nexport function style(styles: Styles, string: string): string {\n if (!styles || styles.length === 0 || !string) {\n return string;\n }\n\n // eslint-disable-next-line unicorn/no-array-reduce\n return styles.reduce((part, styleName) => {\n switch (styleName) {\n case 'bold':\n return `*${part}*`;\n case 'italic':\n return `_${part}_`;\n case 'strikethrough':\n return `~${part}~`;\n }\n\n return part;\n }, string);\n}\n\nexport default function format<T extends Metadata>(\n record: LogRecord<T>,\n): string {\n return formatRecordToString(record, style);\n}\n"],"names":["style","styles","string","length","reduce","part","styleName","format","record","formatRecordToString"],"mappings":";;;;;;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,MAA/B,EAAuD;AAC5D,MAAI,CAACD,MAAD,IAAWA,MAAM,CAACE,MAAP,KAAkB,CAA7B,IAAkC,CAACD,MAAvC,EAA+C;AAC7C,WAAOA,MAAP;AACD,GAH2D;;;AAM5D,SAAOD,MAAM,CAACG,MAAP,CAAc,CAACC,IAAD,EAAOC,SAAP,KAAqB;AACxC,YAAQA,SAAR;AACE,WAAK,MAAL;AACE,eAAQ,IAAGD,IAAK,GAAhB;;AACF,WAAK,QAAL;AACE,eAAQ,IAAGA,IAAK,GAAhB;;AACF,WAAK,eAAL;AACE,eAAQ,IAAGA,IAAK,GAAhB;AANJ;;AASA,WAAOA,IAAP;AACD,GAXM,EAWJH,MAXI,CAAP;AAYD;AAEc,SAASK,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,yCAAoB,CAACD,MAAD,EAASR,KAAT,CAA3B;AACD;;;;;"}
|