nightingale-console-output 14.2.1 → 15.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/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
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
+ ## [15.0.0](https://github.com/christophehurpeau/nightingale/compare/v14.2.1...v15.0.0) (2023-12-25)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * update babel and drop browser modern version
12
+
13
+ ### Features
14
+
15
+ * update babel and drop browser modern version ([5c76abc](https://github.com/christophehurpeau/nightingale/commit/5c76abc8bfb595a617fc4c8b795dae7e674ea664))
16
+
17
+ Version bump for dependency: nightingale-levels
18
+ Version bump for dependency: nightingale-types
19
+
20
+
6
21
  ## [14.2.1](https://github.com/christophehurpeau/nightingale/compare/v14.2.0...v14.2.1) (2023-11-05)
7
22
 
8
23
  Note: no notable changes
@@ -3,8 +3,7 @@ import { Level } from 'nightingale-levels';
3
3
  /* eslint-disable no-console */
4
4
 
5
5
  function consoleOutput(param, record) {
6
- var _console;
7
- (_console = console)[record.level >= Level.ERROR ? 'error' : 'log'].apply(_console, param);
6
+ console[record.level >= Level.ERROR ? 'error' : 'log'](...param);
8
7
  }
9
8
 
10
9
  export { consoleOutput as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport { POB_TARGET } from 'pob-babel';\nimport { Level } from 'nightingale-levels';\nimport type { LogRecord, Metadata } from 'nightingale-types';\n\nexport default function consoleOutput<T extends Metadata>(\n param: string[] | string,\n record: LogRecord<T>,\n): void {\n if (POB_TARGET !== 'browser') {\n const outKey = record.level >= Level.ERROR ? 'stderr' : 'stdout';\n process[outKey].write(`${param as string}\\n`);\n } else {\n console[record.level >= Level.ERROR ? 'error' : 'log'](...param);\n }\n}\n"],"names":["consoleOutput","param","record","_console","console","level","Level","ERROR","apply"],"mappings":";;AAAA;;AAKe,SAASA,aAAaA,CACnCC,KAAwB,EACxBC,MAAoB,EACd;AAAA,EAAA,IAAAC,QAAA,CAAA;EAKJ,CAAAA,QAAA,GAAAC,OAAO,EAACF,MAAM,CAACG,KAAK,IAAIC,KAAK,CAACC,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC,CAAAC,KAAA,CAAAL,QAAA,EAAIF,KAAK,CAAC,CAAA;AAEpE;;;;"}
1
+ {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport { POB_TARGET } from 'pob-babel';\nimport { Level } from 'nightingale-levels';\nimport type { LogRecord, Metadata } from 'nightingale-types';\n\nexport default function consoleOutput<T extends Metadata>(\n param: string[] | string,\n record: LogRecord<T>,\n): void {\n if (POB_TARGET !== 'browser') {\n const outKey = record.level >= Level.ERROR ? 'stderr' : 'stdout';\n process[outKey].write(`${param as string}\\n`);\n } else {\n console[record.level >= Level.ERROR ? 'error' : 'log'](...param);\n }\n}\n"],"names":["consoleOutput","param","record","console","level","Level","ERROR"],"mappings":";;AAAA;;AAKe,SAASA,aAAaA,CACnCC,KAAwB,EACxBC,MAAoB,EACd;AAKJC,EAAAA,OAAO,CAACD,MAAM,CAACE,KAAK,IAAIC,KAAK,CAACC,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC,CAAC,GAAGL,KAAK,CAAC,CAAA;AAEpE;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-console-output",
3
- "version": "14.2.1",
3
+ "version": "15.0.0",
4
4
  "description": "Nightingale console output",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -39,9 +39,6 @@
39
39
  "import": "./dist/index-node18.mjs"
40
40
  },
41
41
  "browser": {
42
- "browser:modern": {
43
- "import": "./dist/index-browsermodern.es.js"
44
- },
45
42
  "import": "./dist/index-browser.es.js"
46
43
  }
47
44
  }
@@ -67,10 +64,6 @@
67
64
  "target": "node",
68
65
  "version": "18"
69
66
  },
70
- {
71
- "target": "browser",
72
- "version": "modern"
73
- },
74
67
  {
75
68
  "target": "browser"
76
69
  }
@@ -81,13 +74,13 @@
81
74
  },
82
75
  "dependencies": {
83
76
  "@types/node": ">=18.0.0",
84
- "nightingale-levels": "14.2.1",
85
- "nightingale-types": "14.2.1"
77
+ "nightingale-levels": "15.0.0",
78
+ "nightingale-types": "15.0.0"
86
79
  },
87
80
  "devDependencies": {
88
- "@babel/core": "7.23.2",
89
- "@babel/preset-env": "7.23.2",
90
- "pob-babel": "36.6.1",
91
- "typescript": "5.2.2"
81
+ "@babel/core": "7.23.6",
82
+ "@babel/preset-env": "7.23.6",
83
+ "pob-babel": "38.0.0",
84
+ "typescript": "5.3.3"
92
85
  }
93
86
  }
@@ -1,10 +0,0 @@
1
- import { Level } from 'nightingale-levels';
2
-
3
- /* eslint-disable no-console */
4
-
5
- function consoleOutput(param, record) {
6
- console[record.level >= Level.ERROR ? 'error' : 'log'](...param);
7
- }
8
-
9
- export { consoleOutput as default };
10
- //# sourceMappingURL=index-browsermodern.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport { POB_TARGET } from 'pob-babel';\nimport { Level } from 'nightingale-levels';\nimport type { LogRecord, Metadata } from 'nightingale-types';\n\nexport default function consoleOutput<T extends Metadata>(\n param: string[] | string,\n record: LogRecord<T>,\n): void {\n if (POB_TARGET !== 'browser') {\n const outKey = record.level >= Level.ERROR ? 'stderr' : 'stdout';\n process[outKey].write(`${param as string}\\n`);\n } else {\n console[record.level >= Level.ERROR ? 'error' : 'log'](...param);\n }\n}\n"],"names":["consoleOutput","param","record","console","level","Level","ERROR"],"mappings":";;AAAA;;AAKe,SAASA,aAAaA,CACnCC,KAAwB,EACxBC,MAAoB,EACd;AAKJC,EAAAA,OAAO,CAACD,MAAM,CAACE,KAAK,IAAIC,KAAK,CAACC,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC,CAAC,GAAGL,KAAK,CAAC,CAAA;AAEpE;;;;"}