nightingale-raw-formatter 11.7.4 → 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,49 @@
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
+
17
+ # [12.1.0](https://github.com/christophehurpeau/nightingale/compare/v12.0.1...v12.1.0) (2021-12-15)
18
+
19
+ **Note:** Version bump only for package nightingale-raw-formatter
20
+
21
+
22
+
23
+
24
+
25
+ ## [12.0.1](https://github.com/christophehurpeau/nightingale/compare/v12.0.0...v12.0.1) (2021-12-12)
26
+
27
+ **Note:** Version bump only for package nightingale-raw-formatter
28
+
29
+
30
+
31
+
32
+
33
+ # [12.0.0](https://github.com/christophehurpeau/nightingale/compare/v11.9.0...v12.0.0) (2021-12-11)
34
+
35
+
36
+ ### Build System
37
+
38
+ * node 14 and remove dev builds ([432ecd1](https://github.com/christophehurpeau/nightingale/commit/432ecd1faafd0419f57dea00fce560e4cccc207f))
39
+
40
+
41
+ ### BREAKING CHANGES
42
+
43
+ * requires node 14
44
+
45
+
46
+
47
+
48
+
6
49
  ## [11.7.4](https://github.com/christophehurpeau/nightingale/compare/v11.7.3...v11.7.4) (2021-11-27)
7
50
 
8
51
  **Note:** Version bump only for package nightingale-raw-formatter
@@ -18,4 +18,4 @@ function format(record) {
18
18
 
19
19
  exports["default"] = format;
20
20
  exports.style = style;
21
- //# sourceMappingURL=index-node12.cjs.js.map
21
+ //# sourceMappingURL=index-node14.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node12.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { LogRecord, Metadata, Styles } from 'nightingale-types';\n\nexport function style(styles: Styles, value: string): string {\n return value;\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","value","format","record","formatRecordToString"],"mappings":";;;;;;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,KAA/B,EAAsD;AAC3D,SAAOA,KAAP;AACD;AAED;AACA;AACA;AACA;;AACe,SAASC,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,yCAAoB,CAACD,MAAD,EAASJ,KAAT,CAA3B;AACD;;;;;"}
1
+ {"version":3,"file":"index-node14.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { LogRecord, Metadata, Styles } from 'nightingale-types';\n\nexport function style(styles: Styles, value: string): string {\n return value;\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","value","format","record","formatRecordToString"],"mappings":";;;;;;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,KAA/B,EAAsD;AAC3D,SAAOA,KAAP;AACD;AAED;AACA;AACA;AACA;;AACe,SAASC,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,yCAAoB,CAACD,MAAD,EAASJ,KAAT,CAA3B;AACD;;;;;"}
@@ -13,4 +13,4 @@ function format(record) {
13
13
  }
14
14
 
15
15
  export { format as default, style };
16
- //# sourceMappingURL=index-node12.mjs.map
16
+ //# sourceMappingURL=index-node14.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node12.mjs","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { LogRecord, Metadata, Styles } from 'nightingale-types';\n\nexport function style(styles: Styles, value: string): string {\n return value;\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","value","format","record","formatRecordToString"],"mappings":";;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,KAA/B,EAAsD;AAC3D,SAAOA,KAAP;AACD;AAED;AACA;AACA;AACA;;AACe,SAASC,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,oBAAoB,CAACD,MAAD,EAASJ,KAAT,CAA3B;AACD;;;;"}
1
+ {"version":3,"file":"index-node14.mjs","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { LogRecord, Metadata, Styles } from 'nightingale-types';\n\nexport function style(styles: Styles, value: string): string {\n return value;\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","value","format","record","formatRecordToString"],"mappings":";;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,KAA/B,EAAsD;AAC3D,SAAOA,KAAP;AACD;AAED;AACA;AACA;AACA;;AACe,SAASC,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,oBAAoB,CAACD,MAAD,EAASJ,KAAT,CAA3B;AACD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-raw-formatter",
3
- "version": "11.7.4",
3
+ "version": "12.1.1",
4
4
  "description": "Nightingale Raw formatter",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -14,9 +14,9 @@
14
14
  "directory": "packages/nightingale-raw-formatter"
15
15
  },
16
16
  "homepage": "https://github.com/christophehurpeau/nightingale",
17
- "type": "commonjs",
17
+ "type": "module",
18
18
  "engines": {
19
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
19
+ "node": "^14.13.1 || >=16.0.0"
20
20
  },
21
21
  "browserslist": [
22
22
  "defaults",
@@ -25,7 +25,7 @@
25
25
  "not safari < 10",
26
26
  "not ios_saf < 10"
27
27
  ],
28
- "main": "./dist/index-node12.cjs.js",
28
+ "main": "./dist/index-node14.cjs.js",
29
29
  "types": "./dist/index.d.ts",
30
30
  "module": "./dist/index-browser.es.js",
31
31
  "browser": "./dist/index-browser.es.js",
@@ -33,45 +33,27 @@
33
33
  "./package.json": "./package.json",
34
34
  ".": {
35
35
  "node": {
36
- "development": {
37
- "import": "./dist/index-node12-dev.mjs",
38
- "require": "./dist/index-node12-dev.cjs.js"
39
- },
40
- "import": "./dist/index-node12.mjs",
41
- "require": "./dist/index-node12.cjs.js"
36
+ "import": "./dist/index-node14.mjs",
37
+ "require": "./dist/index-node14.cjs.js"
42
38
  },
43
39
  "browser": {
44
40
  "browser:modern": {
45
- "development": {
46
- "import": "./dist/index-browsermodern-dev.es.js"
47
- },
48
41
  "import": "./dist/index-browsermodern.es.js"
49
42
  },
50
- "development": {
51
- "import": "./dist/index-browser-dev.es.js",
52
- "require": "./dist/index-browser-dev.cjs.js"
53
- },
54
43
  "import": "./dist/index-browser.es.js",
55
44
  "require": "./dist/index-browser.cjs.js"
56
45
  }
57
46
  }
58
47
  },
59
- "module:node": "./dist/index-node12.mjs",
60
- "module:node-dev": "./dist/index-node12-dev.mjs",
61
- "module:browser": "./dist/index-browser.es.js",
62
- "module:browser-dev": "./dist/index-browser-dev.es.js",
48
+ "module:node": "./dist/index-node14.mjs",
63
49
  "module:modern-browsers": "./dist/index-browsermodern.es.js",
64
- "module:modern-browsers-dev": "./dist/index-browsermodern-dev.es.js",
65
50
  "sideEffects": false,
66
51
  "scripts": {
67
52
  "build": "pob-build && yarn run build:definitions",
68
53
  "build:definitions": "tsc -p tsconfig.build.json",
69
- "clean": "rm -Rf docs dist test/node6 coverage",
70
- "generate:test-coverage": "rm -Rf docs/coverage/ ; NODE_ENV=production BABEL_ENV=test jest --coverage --coverageReporters=pob-lcov-reporter --coverageDirectory=docs/coverage/",
54
+ "clean": "rm -Rf dist",
71
55
  "lint": "yarn run lint:eslint",
72
56
  "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-raw-formatter",
73
- "test": "jest",
74
- "test:watch": "jest --watch",
75
57
  "watch": "pob-watch"
76
58
  },
77
59
  "prettier": {
@@ -79,30 +61,11 @@
79
61
  "singleQuote": true,
80
62
  "arrowParens": "always"
81
63
  },
82
- "jest": {
83
- "cacheDirectory": "./node_modules/.cache/jest",
84
- "testMatch": [
85
- "<rootDir>/src/**/__tests__/**/*.ts",
86
- "<rootDir>/src/**/*.test.ts"
87
- ],
88
- "collectCoverageFrom": [
89
- "src/**/*.ts"
90
- ],
91
- "moduleFileExtensions": [
92
- "ts",
93
- "js",
94
- "json"
95
- ],
96
- "transform": {
97
- "^.+\\.ts$": "babel-jest"
98
- },
99
- "testEnvironment": "node"
100
- },
101
64
  "pob": {
102
65
  "babelEnvs": [
103
66
  {
104
67
  "target": "node",
105
- "version": "12",
68
+ "version": "14",
106
69
  "formats": [
107
70
  "cjs",
108
71
  "es"
@@ -128,23 +91,16 @@
128
91
  ]
129
92
  },
130
93
  "dependencies": {
131
- "nightingale-formatter": "^11.7.4",
132
- "nightingale-types": "^11.7.4"
94
+ "nightingale-formatter": "12.1.1",
95
+ "nightingale-types": "12.1.1"
133
96
  },
134
97
  "devDependencies": {
135
- "@babel/core": "7.16.0",
136
- "@babel/preset-env": "7.16.4",
137
- "@types/jest": "27.0.3",
138
- "babel-jest": "27.3.1",
139
- "babel-preset-latest-node": "5.5.1",
98
+ "@babel/core": "7.16.7",
99
+ "@babel/preset-env": "7.16.7",
140
100
  "babel-preset-modern-browsers": "15.0.2",
141
- "jest": "27.3.1",
142
- "nightingale-levels": "^11.7.2",
143
- "pob-babel": "28.5.0",
144
- "pob-lcov-reporter": "5.4.0",
145
- "rollup": "2.60.1",
146
- "typescript": "4.5.2",
147
- "xunit-file": "1.0.0"
101
+ "nightingale-levels": "12.1.1",
102
+ "pob-babel": "29.6.1",
103
+ "typescript": "4.5.4"
148
104
  },
149
- "gitHead": "70f6b4ba634ff778fc94bef7e2455e8b6a7db06a"
105
+ "gitHead": "719598e0a3d508801b18542a1054301200b62ed0"
150
106
  }
package/babel.config.cjs DELETED
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- const path = require('path');
4
-
5
- module.exports = function babelConfig(api) {
6
- const isTest = api.env('test');
7
-
8
- if (!isTest) return {};
9
-
10
- return {
11
- only: [path.resolve(__dirname, 'src')],
12
- presets: [require.resolve('pob-babel/preset')],
13
- };
14
- };
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var nightingaleFormatter = require('nightingale-formatter');
6
-
7
- function style(styles, value) {
8
- return value;
9
- }
10
- /**
11
- * @param {Object} record
12
- * @returns {string}
13
- */
14
-
15
- function format(record) {
16
- return nightingaleFormatter.formatRecordToString(record, style);
17
- }
18
-
19
- exports["default"] = format;
20
- exports.style = style;
21
- //# sourceMappingURL=index-browser-dev.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browser-dev.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { LogRecord, Metadata, Styles } from 'nightingale-types';\n\nexport function style(styles: Styles, value: string): string {\n return value;\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","value","format","record","formatRecordToString"],"mappings":";;;;;;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,KAA/B,EAAsD;AAC3D,SAAOA,KAAP;AACD;AAED;AACA;AACA;AACA;;AACe,SAASC,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,yCAAoB,CAACD,MAAD,EAASJ,KAAT,CAA3B;AACD;;;;;"}
@@ -1,16 +0,0 @@
1
- import { formatRecordToString } from 'nightingale-formatter';
2
-
3
- function style(styles, value) {
4
- return value;
5
- }
6
- /**
7
- * @param {Object} record
8
- * @returns {string}
9
- */
10
-
11
- function format(record) {
12
- return formatRecordToString(record, style);
13
- }
14
-
15
- export { format as default, style };
16
- //# sourceMappingURL=index-browser-dev.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browser-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { LogRecord, Metadata, Styles } from 'nightingale-types';\n\nexport function style(styles: Styles, value: string): string {\n return value;\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","value","format","record","formatRecordToString"],"mappings":";;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,KAA/B,EAAsD;AAC3D,SAAOA,KAAP;AACD;AAED;AACA;AACA;AACA;;AACe,SAASC,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,oBAAoB,CAACD,MAAD,EAASJ,KAAT,CAA3B;AACD;;;;"}
@@ -1,16 +0,0 @@
1
- import { formatRecordToString } from 'nightingale-formatter';
2
-
3
- function style(styles, value) {
4
- return value;
5
- }
6
- /**
7
- * @param {Object} record
8
- * @returns {string}
9
- */
10
-
11
- function format(record) {
12
- return formatRecordToString(record, style);
13
- }
14
-
15
- export { format as default, style };
16
- //# sourceMappingURL=index-browsermodern-dev.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browsermodern-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { LogRecord, Metadata, Styles } from 'nightingale-types';\n\nexport function style(styles: Styles, value: string): string {\n return value;\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","value","format","record","formatRecordToString"],"mappings":";;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,KAA/B,EAAsD;AAC3D,SAAOA,KAAP;AACD;AAED;AACA;AACA;AACA;;AACe,SAASC,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,oBAAoB,CAACD,MAAD,EAASJ,KAAT,CAA3B;AACD;;;;"}
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const nightingaleFormatter = require('nightingale-formatter');
6
-
7
- function style(styles, value) {
8
- return value;
9
- }
10
- /**
11
- * @param {Object} record
12
- * @returns {string}
13
- */
14
-
15
- function format(record) {
16
- return nightingaleFormatter.formatRecordToString(record, style);
17
- }
18
-
19
- exports["default"] = format;
20
- exports.style = style;
21
- //# sourceMappingURL=index-node12-dev.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node12-dev.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { LogRecord, Metadata, Styles } from 'nightingale-types';\n\nexport function style(styles: Styles, value: string): string {\n return value;\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","value","format","record","formatRecordToString"],"mappings":";;;;;;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,KAA/B,EAAsD;AAC3D,SAAOA,KAAP;AACD;AAED;AACA;AACA;AACA;;AACe,SAASC,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,yCAAoB,CAACD,MAAD,EAASJ,KAAT,CAA3B;AACD;;;;;"}
@@ -1,16 +0,0 @@
1
- import { formatRecordToString } from 'nightingale-formatter';
2
-
3
- function style(styles, value) {
4
- return value;
5
- }
6
- /**
7
- * @param {Object} record
8
- * @returns {string}
9
- */
10
-
11
- function format(record) {
12
- return formatRecordToString(record, style);
13
- }
14
-
15
- export { format as default, style };
16
- //# sourceMappingURL=index-node12-dev.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node12-dev.mjs","sources":["../src/index.ts"],"sourcesContent":["import { formatRecordToString } from 'nightingale-formatter';\nimport type { LogRecord, Metadata, Styles } from 'nightingale-types';\n\nexport function style(styles: Styles, value: string): string {\n return value;\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","value","format","record","formatRecordToString"],"mappings":";;AAGO,SAASA,KAAT,CAAeC,MAAf,EAA+BC,KAA/B,EAAsD;AAC3D,SAAOA,KAAP;AACD;AAED;AACA;AACA;AACA;;AACe,SAASC,MAAT,CACbC,MADa,EAEL;AACR,SAAOC,oBAAoB,CAACD,MAAD,EAASJ,KAAT,CAA3B;AACD;;;;"}