nightingale-html-formatter 12.1.0 → 12.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "root": true,
3
- "extends": ["@pob/eslint-config/root-commonjs"],
3
+ "extends": ["@pob/eslint-config/root-module"],
4
4
  "ignorePatterns": ["*.d.ts", "/dist"]
5
5
  }
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.1](https://github.com/christophehurpeau/nightingale/compare/v12.1.0...v12.1.1) (2022-01-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * properly configure package type ([2e0cbf5](https://github.com/christophehurpeau/nightingale/commit/2e0cbf555bd3b9fa3c3851025452937f64408aa8))
12
+
13
+
14
+
15
+
16
+
6
17
  # [12.1.0](https://github.com/christophehurpeau/nightingale/compare/v12.0.1...v12.1.0) (2021-12-15)
7
18
 
8
19
  **Note:** Version bump only for package nightingale-html-formatter
@@ -9,9 +9,9 @@ function style(styles, string) {
9
9
  return string;
10
10
  }
11
11
 
12
- return `<span style="${styles.map(function (styleName) {
12
+ return "<span style=\"" + styles.map(function (styleName) {
13
13
  return nightingaleFormatter.styleToHtmlStyleThemeLight[styleName].open;
14
- }).join('; ')}">${string}</span>`;
14
+ }).join('; ') + "\">" + string + "</span>";
15
15
  }
16
16
  /**
17
17
  * @param {Object} record
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import {\n formatRecordToString,\n styleToHtmlStyleThemeLight,\n} 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 return `<span style=\"${styles\n .map((styleName: string) => styleToHtmlStyleThemeLight[styleName].open)\n .join('; ')}\">${string}</span>`;\n}\n\n/**\n * @param {Object} record\n * @returns {string}\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","map","styleName","styleToHtmlStyleThemeLight","open","join","format","record","formatRecordToString"],"mappings":";;;;;;AAMO,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;;AAED,SAAQ,gBAAeD,MAAM,CAC1BG,GADoB,CAChB,UAACC,SAAD;AAAA,WAAuBC,+CAA0B,CAACD,SAAD,CAA1B,CAAsCE,IAA7D;AAAA,GADgB,EAEpBC,IAFoB,CAEf,IAFe,CAET,KAAIN,MAAO,SAFzB;AAGD;AAED;AACA;AACA;AACA;;AACe,SAASO,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,yCAAoB,CAACD,MAAD,EAASV,KAAT,CAA3B;AACD;;;;;"}
1
+ {"version":3,"file":"index-browser.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import {\n formatRecordToString,\n styleToHtmlStyleThemeLight,\n} 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 return `<span style=\"${styles\n .map((styleName: string) => styleToHtmlStyleThemeLight[styleName].open)\n .join('; ')}\">${string}</span>`;\n}\n\n/**\n * @param {Object} record\n * @returns {string}\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","map","styleName","styleToHtmlStyleThemeLight","open","join","format","record","formatRecordToString"],"mappings":";;;;;;AAMO,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;;AAED,4BAAuBD,MAAM,CAC1BG,GADoB,CAChB,UAACC,SAAD;AAAA,WAAuBC,+CAA0B,CAACD,SAAD,CAA1B,CAAsCE,IAA7D;AAAA,GADgB,EAEpBC,IAFoB,CAEf,IAFe,CAAvB,WAEkBN,MAFlB;AAGD;AAED;AACA;AACA;AACA;;AACe,SAASO,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,yCAAoB,CAACD,MAAD,EAASV,KAAT,CAA3B;AACD;;;;;"}
@@ -5,9 +5,9 @@ function style(styles, string) {
5
5
  return string;
6
6
  }
7
7
 
8
- return `<span style="${styles.map(function (styleName) {
8
+ return "<span style=\"" + styles.map(function (styleName) {
9
9
  return styleToHtmlStyleThemeLight[styleName].open;
10
- }).join('; ')}">${string}</span>`;
10
+ }).join('; ') + "\">" + string + "</span>";
11
11
  }
12
12
  /**
13
13
  * @param {Object} record
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["import {\n formatRecordToString,\n styleToHtmlStyleThemeLight,\n} 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 return `<span style=\"${styles\n .map((styleName: string) => styleToHtmlStyleThemeLight[styleName].open)\n .join('; ')}\">${string}</span>`;\n}\n\n/**\n * @param {Object} record\n * @returns {string}\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","map","styleName","styleToHtmlStyleThemeLight","open","join","format","record","formatRecordToString"],"mappings":";;AAMO,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;;AAED,SAAQ,gBAAeD,MAAM,CAC1BG,GADoB,CAChB,UAACC,SAAD;AAAA,WAAuBC,0BAA0B,CAACD,SAAD,CAA1B,CAAsCE,IAA7D;AAAA,GADgB,EAEpBC,IAFoB,CAEf,IAFe,CAET,KAAIN,MAAO,SAFzB;AAGD;AAED;AACA;AACA;AACA;;AACe,SAASO,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,oBAAoB,CAACD,MAAD,EAASV,KAAT,CAA3B;AACD;;;;"}
1
+ {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["import {\n formatRecordToString,\n styleToHtmlStyleThemeLight,\n} 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 return `<span style=\"${styles\n .map((styleName: string) => styleToHtmlStyleThemeLight[styleName].open)\n .join('; ')}\">${string}</span>`;\n}\n\n/**\n * @param {Object} record\n * @returns {string}\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","map","styleName","styleToHtmlStyleThemeLight","open","join","format","record","formatRecordToString"],"mappings":";;AAMO,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;;AAED,4BAAuBD,MAAM,CAC1BG,GADoB,CAChB,UAACC,SAAD;AAAA,WAAuBC,0BAA0B,CAACD,SAAD,CAA1B,CAAsCE,IAA7D;AAAA,GADgB,EAEpBC,IAFoB,CAEf,IAFe,CAAvB,WAEkBN,MAFlB;AAGD;AAED;AACA;AACA;AACA;;AACe,SAASO,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,oBAAoB,CAACD,MAAD,EAASV,KAAT,CAA3B;AACD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-html-formatter",
3
- "version": "12.1.0",
3
+ "version": "12.1.1",
4
4
  "description": "Nightingale HTML formatter",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/nightingale-html-formatter"
15
15
  },
16
16
  "homepage": "https://github.com/christophehurpeau/nightingale",
17
- "type": "commonjs",
17
+ "type": "module",
18
18
  "engines": {
19
19
  "node": "^14.13.1 || >=16.0.0"
20
20
  },
@@ -91,16 +91,16 @@
91
91
  ]
92
92
  },
93
93
  "dependencies": {
94
- "nightingale-formatter": "12.1.0",
95
- "nightingale-types": "12.1.0"
94
+ "nightingale-formatter": "12.1.1",
95
+ "nightingale-types": "12.1.1"
96
96
  },
97
97
  "devDependencies": {
98
- "@babel/core": "7.16.0",
99
- "@babel/preset-env": "7.16.4",
98
+ "@babel/core": "7.16.7",
99
+ "@babel/preset-env": "7.16.7",
100
100
  "babel-preset-modern-browsers": "15.0.2",
101
- "nightingale-levels": "12.1.0",
102
- "pob-babel": "29.4.2",
101
+ "nightingale-levels": "12.1.1",
102
+ "pob-babel": "29.6.1",
103
103
  "typescript": "4.5.4"
104
104
  },
105
- "gitHead": "f2f75856d32f444f0ed08b5ab903537cb1f4c38f"
105
+ "gitHead": "719598e0a3d508801b18542a1054301200b62ed0"
106
106
  }