@putout/engine-reporter 8.0.0 → 8.0.2
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/README.md
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const tryToCatch = require('try-to-catch');
|
|
7
|
-
const {
|
|
1
|
+
import {simpleImport as _simpleImport} from 'putout/simple-import';
|
|
2
|
+
import {createAsyncLoader as _createAsyncLoader} from '@putout/engine-loader';
|
|
3
|
+
import tryToCatch from 'try-to-catch';
|
|
4
|
+
import {
|
|
8
5
|
NO_FORMATTER,
|
|
9
6
|
CANNOT_LOAD_FORMATTER,
|
|
10
|
-
}
|
|
7
|
+
} from 'putout/exit-codes';
|
|
11
8
|
|
|
12
9
|
const {isArray} = Array;
|
|
13
10
|
const maybeArray = (a) => isArray(a) ? a : [a, {}];
|
|
14
11
|
|
|
15
|
-
|
|
12
|
+
export const getFormatter = async (formatterOptional, exit, overrides = {}) => {
|
|
16
13
|
const {
|
|
17
14
|
createAsyncLoader = _createAsyncLoader,
|
|
18
15
|
simpleImport = _simpleImport,
|
package/lib/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
INTERACTIVE_CANCELED,
|
|
6
6
|
INVALID_CONFIG,
|
|
7
7
|
} from 'putout/exit-codes';
|
|
8
|
-
import {getFormatter as _getFormatter} from './formatter/formatter.
|
|
8
|
+
import {getFormatter as _getFormatter} from './formatter/formatter.js';
|
|
9
9
|
import {initReport} from './report.js';
|
|
10
10
|
|
|
11
11
|
const {createRequire} = module;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/engine-reporter",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Run 🐊Putout formatters",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
".": "./lib/index.js",
|
|
11
11
|
"./subscribe": "./lib/subscribe.js",
|
|
12
12
|
"./report": "./lib/report.js",
|
|
13
|
-
"./formatter": "./lib/formatter/formatter.
|
|
13
|
+
"./formatter": "./lib/formatter/formatter.js"
|
|
14
14
|
},
|
|
15
15
|
"release": false,
|
|
16
16
|
"tag": false,
|