nightingale-raw-formatter 11.7.1 → 12.0.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", "@pob/eslint-config-node"],
3
+ "extends": ["@pob/eslint-config/root-commonjs"],
4
4
  "ignorePatterns": ["*.d.ts", "/dist"]
5
5
  }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,46 @@
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.0.1](https://github.com/christophehurpeau/nightingale/compare/v12.0.0...v12.0.1) (2021-12-12)
7
+
8
+ **Note:** Version bump only for package nightingale-raw-formatter
9
+
10
+
11
+
12
+
13
+
14
+ # [12.0.0](https://github.com/christophehurpeau/nightingale/compare/v11.9.0...v12.0.0) (2021-12-11)
15
+
16
+
17
+ ### Build System
18
+
19
+ * node 14 and remove dev builds ([432ecd1](https://github.com/christophehurpeau/nightingale/commit/432ecd1faafd0419f57dea00fce560e4cccc207f))
20
+
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ * requires node 14
25
+
26
+
27
+
28
+
29
+
30
+ ## [11.7.4](https://github.com/christophehurpeau/nightingale/compare/v11.7.3...v11.7.4) (2021-11-27)
31
+
32
+ **Note:** Version bump only for package nightingale-raw-formatter
33
+
34
+
35
+
36
+
37
+
38
+ ## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
39
+
40
+ **Note:** Version bump only for package nightingale-raw-formatter
41
+
42
+
43
+
44
+
45
+
6
46
  ## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
7
47
 
8
48
 
@@ -16,6 +16,6 @@ function format(record) {
16
16
  return nightingaleFormatter.formatRecordToString(record, style);
17
17
  }
18
18
 
19
- exports.default = format;
19
+ exports["default"] = format;
20
20
  exports.style = style;
21
21
  //# sourceMappingURL=index-browser.cjs.js.map
@@ -12,6 +12,5 @@ function format(record) {
12
12
  return formatRecordToString(record, style);
13
13
  }
14
14
 
15
- export default format;
16
- export { style };
15
+ export { format as default, style };
17
16
  //# sourceMappingURL=index-browser.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.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
+ {"version":3,"file":"index-browser.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;;;;"}
@@ -12,6 +12,5 @@ function format(record) {
12
12
  return formatRecordToString(record, style);
13
13
  }
14
14
 
15
- export default format;
16
- export { style };
15
+ export { format as default, style };
17
16
  //# sourceMappingURL=index-browsermodern.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern.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
+ {"version":3,"file":"index-browsermodern.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;;;;"}
@@ -16,6 +16,6 @@ function format(record) {
16
16
  return nightingaleFormatter.formatRecordToString(record, style);
17
17
  }
18
18
 
19
- exports.default = format;
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;;;;;"}
@@ -12,6 +12,5 @@ function format(record) {
12
12
  return formatRecordToString(record, style);
13
13
  }
14
14
 
15
- export default format;
16
- export { style };
17
- //# sourceMappingURL=index-node12.mjs.map
15
+ export { format as default, style };
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.1",
3
+ "version": "12.0.1",
4
4
  "description": "Nightingale Raw formatter",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -14,8 +14,9 @@
14
14
  "directory": "packages/nightingale-raw-formatter"
15
15
  },
16
16
  "homepage": "https://github.com/christophehurpeau/nightingale",
17
+ "type": "commonjs",
17
18
  "engines": {
18
- "node": ">=12.10.0"
19
+ "node": "^14.13.1 || >=16.0.0"
19
20
  },
20
21
  "browserslist": [
21
22
  "defaults",
@@ -24,52 +25,35 @@
24
25
  "not safari < 10",
25
26
  "not ios_saf < 10"
26
27
  ],
27
- "main": "./index.js",
28
+ "main": "./dist/index-node14.cjs.js",
28
29
  "types": "./dist/index.d.ts",
29
30
  "module": "./dist/index-browser.es.js",
30
31
  "browser": "./dist/index-browser.es.js",
31
32
  "exports": {
33
+ "./package.json": "./package.json",
32
34
  ".": {
33
35
  "node": {
34
- "development": {
35
- "import": "./dist/index-node12-dev.mjs",
36
- "require": "./dist/index-node12-dev.cjs.js"
37
- },
38
- "import": "./dist/index-node12.mjs",
39
- "require": "./dist/index-node12.cjs.js"
36
+ "import": "./dist/index-node14.mjs",
37
+ "require": "./dist/index-node14.cjs.js"
40
38
  },
41
39
  "browser": {
42
40
  "browser:modern": {
43
- "development": {
44
- "import": "./dist/index-browsermodern-dev.es.js"
45
- },
46
41
  "import": "./dist/index-browsermodern.es.js"
47
42
  },
48
- "development": {
49
- "import": "./dist/index-browser-dev.es.js",
50
- "require": "./dist/index-browser-dev.cjs.js"
51
- },
52
43
  "import": "./dist/index-browser.es.js",
53
44
  "require": "./dist/index-browser.cjs.js"
54
45
  }
55
46
  }
56
47
  },
57
- "module:node": "./dist/index-node12.mjs",
58
- "module:node-dev": "./dist/index-node12-dev.mjs",
59
- "module:browser": "./dist/index-browser.es.js",
60
- "module:browser-dev": "./dist/index-browser-dev.es.js",
48
+ "module:node": "./dist/index-node14.mjs",
61
49
  "module:modern-browsers": "./dist/index-browsermodern.es.js",
62
- "module:modern-browsers-dev": "./dist/index-browsermodern-dev.es.js",
63
50
  "sideEffects": false,
64
51
  "scripts": {
65
52
  "build": "pob-build && yarn run build:definitions",
66
53
  "build:definitions": "tsc -p tsconfig.build.json",
67
- "clean": "rm -Rf docs dist test/node6 coverage",
68
- "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",
69
55
  "lint": "yarn run lint:eslint",
70
- "lint:eslint": "yarn --cwd ../.. run eslint --ext .js,.mjs,.ts --report-unused-disable-directives --quiet packages/nightingale-raw-formatter",
71
- "test": "jest",
72
- "test:watch": "jest",
56
+ "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-raw-formatter",
73
57
  "watch": "pob-watch"
74
58
  },
75
59
  "prettier": {
@@ -77,30 +61,11 @@
77
61
  "singleQuote": true,
78
62
  "arrowParens": "always"
79
63
  },
80
- "jest": {
81
- "cacheDirectory": "./node_modules/.cache/jest",
82
- "testMatch": [
83
- "<rootDir>/src/**/__tests__/**/*.ts",
84
- "<rootDir>/src/**/*.test.ts"
85
- ],
86
- "collectCoverageFrom": [
87
- "src/**/*.ts"
88
- ],
89
- "moduleFileExtensions": [
90
- "ts",
91
- "js",
92
- "json"
93
- ],
94
- "transform": {
95
- "^.+\\.ts$": "babel-jest"
96
- },
97
- "testEnvironment": "node"
98
- },
99
64
  "pob": {
100
65
  "babelEnvs": [
101
66
  {
102
67
  "target": "node",
103
- "version": "12",
68
+ "version": "14",
104
69
  "formats": [
105
70
  "cjs",
106
71
  "es"
@@ -126,33 +91,16 @@
126
91
  ]
127
92
  },
128
93
  "dependencies": {
129
- "nightingale-formatter": "^11.7.1",
130
- "nightingale-types": "^11.7.1"
94
+ "nightingale-formatter": "12.0.1",
95
+ "nightingale-types": "12.0.1"
131
96
  },
132
97
  "devDependencies": {
133
- "@babel/core": "7.14.6",
134
- "@babel/preset-env": "7.14.7",
135
- "@pob/eslint-config": "43.2.0",
136
- "@pob/eslint-config-node": "43.2.0",
137
- "@pob/eslint-config-typescript": "43.2.0",
138
- "@types/jest": "26.0.23",
139
- "@typescript-eslint/eslint-plugin": "4.28.1",
140
- "@typescript-eslint/parser": "4.28.1",
141
- "babel-jest": "26.6.3",
142
- "babel-preset-latest-node": "5.5.1",
98
+ "@babel/core": "7.16.0",
99
+ "@babel/preset-env": "7.16.4",
143
100
  "babel-preset-modern-browsers": "15.0.2",
144
- "eslint": "7.29.0",
145
- "eslint-import-resolver-node": "0.3.4",
146
- "eslint-plugin-import": "2.23.4",
147
- "eslint-plugin-node": "11.1.0",
148
- "eslint-plugin-unicorn": "29.0.0",
149
- "jest": "26.6.3",
150
- "nightingale-levels": "^11.7.1",
151
- "pob-babel": "27.0.3",
152
- "pob-lcov-reporter": "4.0.1",
153
- "rollup": "2.52.3",
154
- "typescript": "4.3.4",
155
- "xunit-file": "1.0.0"
101
+ "nightingale-levels": "12.0.1",
102
+ "pob-babel": "29.4.2",
103
+ "typescript": "4.5.3"
156
104
  },
157
- "gitHead": "325214aa6c7f87ace818389b77ce7b4208005c11"
105
+ "gitHead": "bb3da283ed9e19d2c1dcdb5e130c86b4835d8500"
158
106
  }
@@ -0,0 +1,3 @@
1
+ import createRollupConfig from 'pob-babel/createRollupConfig.js';
2
+
3
+ export default createRollupConfig({});
package/src/index.test.ts CHANGED
@@ -1,4 +1,4 @@
1
- import Level from 'nightingale-levels';
1
+ import { Level } from 'nightingale-levels';
2
2
  import format, { style } from '.';
3
3
 
4
4
  test('style: blue bold color', () => {
@@ -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,17 +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 default format;
16
- export { style };
17
- //# 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,17 +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 default format;
16
- export { style };
17
- //# 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,17 +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 default format;
16
- export { style };
17
- //# 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;;;;;"}
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- /* eslint-disable import/no-dynamic-require */
2
-
3
- 'use strict';
4
-
5
- const production = process.env.NODE_ENV === 'production';
6
- module.exports = require(`./dist/index-node12${production ? '' : '-dev'}.cjs`);