@nice-move/cli 0.11.4 → 0.11.5

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.
@@ -0,0 +1,115 @@
1
+ export const id = "node_modules_commitlint_format_lib_index_js";
2
+ export const ids = ["node_modules_commitlint_format_lib_index_js"];
3
+ export const modules = {
4
+
5
+ /***/ "../../node_modules/@commitlint/format/lib/format.js":
6
+ /*!***********************************************************!*\
7
+ !*** ../../node_modules/@commitlint/format/lib/format.js ***!
8
+ \***********************************************************/
9
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
10
+
11
+ __webpack_require__.r(__webpack_exports__);
12
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
14
+ /* harmony export */ format: () => (/* binding */ format),
15
+ /* harmony export */ formatResult: () => (/* binding */ formatResult)
16
+ /* harmony export */ });
17
+ /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! chalk */ "../../node_modules/chalk/source/index.js");
18
+
19
+ const DEFAULT_SIGNS = [' ', '⚠', '✖'];
20
+ const DEFAULT_COLORS = ['white', 'yellow', 'red'];
21
+ function format(report = {}, options = {}) {
22
+ const { results = [] } = report;
23
+ const fi = (result) => formatInput(result, options);
24
+ const fr = (result) => formatResult(result, options);
25
+ return results
26
+ .filter((r) => Array.isArray(r.warnings) || Array.isArray(r.errors))
27
+ .map((result) => [...fi(result), ...fr(result)])
28
+ .reduce((acc, item) => (Array.isArray(item) ? [...acc, ...item] : [...acc, item]), [])
29
+ .join('\n');
30
+ }
31
+ function formatInput(result, options = {}) {
32
+ const { color: enabled = true } = options;
33
+ const { errors = [], warnings = [], input = '' } = result;
34
+ if (!input) {
35
+ return [''];
36
+ }
37
+ const sign = '⧗';
38
+ const decoration = enabled ? chalk__WEBPACK_IMPORTED_MODULE_0__["default"].gray(sign) : sign;
39
+ const commitText = errors.length > 0 ? input : input.split('\n')[0];
40
+ const decoratedInput = enabled ? chalk__WEBPACK_IMPORTED_MODULE_0__["default"].bold(commitText) : commitText;
41
+ const hasProblems = errors.length > 0 || warnings.length > 0;
42
+ return options.verbose || hasProblems
43
+ ? [`${decoration} input: ${decoratedInput}`]
44
+ : [];
45
+ }
46
+ function formatResult(result = {}, options = {}) {
47
+ const { signs = DEFAULT_SIGNS, colors = DEFAULT_COLORS, color: enabled = true, } = options;
48
+ const { errors = [], warnings = [] } = result;
49
+ const problems = [...errors, ...warnings].map((problem) => {
50
+ const sign = signs[problem.level] || '';
51
+ const color = colors[problem.level] || 'white';
52
+ const decoration = enabled ? chalk__WEBPACK_IMPORTED_MODULE_0__["default"][color](sign) : sign;
53
+ const name = enabled
54
+ ? chalk__WEBPACK_IMPORTED_MODULE_0__["default"].grey(`[${problem.name}]`)
55
+ : `[${problem.name}]`;
56
+ return `${decoration} ${problem.message} ${name}`;
57
+ });
58
+ const sign = selectSign(result);
59
+ const color = selectColor(result);
60
+ const deco = enabled ? chalk__WEBPACK_IMPORTED_MODULE_0__["default"][color](sign) : sign;
61
+ const el = errors.length;
62
+ const wl = warnings.length;
63
+ const hasProblems = problems.length > 0;
64
+ const summary = options.verbose || hasProblems
65
+ ? `${deco} found ${el} problems, ${wl} warnings`
66
+ : undefined;
67
+ const fmtSummary = enabled && typeof summary === 'string' ? chalk__WEBPACK_IMPORTED_MODULE_0__["default"].bold(summary) : summary;
68
+ const help = hasProblems && options.helpUrl
69
+ ? `ⓘ Get help: ${options.helpUrl}`
70
+ : undefined;
71
+ return [
72
+ ...problems,
73
+ hasProblems ? '' : undefined,
74
+ fmtSummary,
75
+ help,
76
+ hasProblems ? '' : undefined,
77
+ ].filter((line) => typeof line === 'string');
78
+ }
79
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (format);
80
+ function selectSign(result) {
81
+ if ((result.errors || []).length > 0) {
82
+ return '✖';
83
+ }
84
+ return (result.warnings || []).length ? '⚠' : '✔';
85
+ }
86
+ function selectColor(result) {
87
+ if ((result.errors || []).length > 0) {
88
+ return 'red';
89
+ }
90
+ return (result.warnings || []).length ? 'yellow' : 'green';
91
+ }
92
+ //# sourceMappingURL=format.js.map
93
+
94
+ /***/ }),
95
+
96
+ /***/ "../../node_modules/@commitlint/format/lib/index.js":
97
+ /*!**********************************************************!*\
98
+ !*** ../../node_modules/@commitlint/format/lib/index.js ***!
99
+ \**********************************************************/
100
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
101
+
102
+ __webpack_require__.r(__webpack_exports__);
103
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
104
+ /* harmony export */ "default": () => (/* reexport safe */ _format_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
105
+ /* harmony export */ format: () => (/* reexport safe */ _format_js__WEBPACK_IMPORTED_MODULE_0__.format),
106
+ /* harmony export */ formatResult: () => (/* reexport safe */ _format_js__WEBPACK_IMPORTED_MODULE_0__.formatResult)
107
+ /* harmony export */ });
108
+ /* harmony import */ var _format_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./format.js */ "../../node_modules/@commitlint/format/lib/format.js");
109
+
110
+
111
+ //# sourceMappingURL=index.js.map
112
+
113
+ /***/ })
114
+
115
+ };
@@ -0,0 +1,23 @@
1
+ export const id = "node_modules_lilconfig_dist_sync_recursive";
2
+ export const ids = ["node_modules_lilconfig_dist_sync_recursive"];
3
+ export const modules = {
4
+
5
+ /***/ "../../node_modules/lilconfig/dist sync recursive":
6
+ /*!***********************************************!*\
7
+ !*** ../../node_modules/lilconfig/dist/ sync ***!
8
+ \***********************************************/
9
+ /***/ ((module) => {
10
+
11
+ function webpackEmptyContext(req) {
12
+ var e = new Error("Cannot find module '" + req + "'");
13
+ e.code = 'MODULE_NOT_FOUND';
14
+ throw e;
15
+ }
16
+ webpackEmptyContext.keys = () => ([]);
17
+ webpackEmptyContext.resolve = webpackEmptyContext;
18
+ webpackEmptyContext.id = "../../node_modules/lilconfig/dist sync recursive";
19
+ module.exports = webpackEmptyContext;
20
+
21
+ /***/ })
22
+
23
+ };
@@ -0,0 +1,27 @@
1
+ export const id = "node_modules_lint-staged_lib_lazy_recursive";
2
+ export const ids = ["node_modules_lint-staged_lib_lazy_recursive"];
3
+ export const modules = {
4
+
5
+ /***/ "../../node_modules/lint-staged/lib lazy recursive":
6
+ /*!************************************************************************!*\
7
+ !*** ../../node_modules/lint-staged/lib/ lazy strict namespace object ***!
8
+ \************************************************************************/
9
+ /***/ ((module) => {
10
+
11
+ function webpackEmptyAsyncContext(req) {
12
+ // Here Promise.resolve().then() is used instead of new Promise() to prevent
13
+ // uncaught exception popping up in devtools
14
+ return Promise.resolve().then(() => {
15
+ var e = new Error("Cannot find module '" + req + "'");
16
+ e.code = 'MODULE_NOT_FOUND';
17
+ throw e;
18
+ });
19
+ }
20
+ webpackEmptyAsyncContext.keys = () => ([]);
21
+ webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
22
+ webpackEmptyAsyncContext.id = "../../node_modules/lint-staged/lib lazy recursive";
23
+ module.exports = webpackEmptyAsyncContext;
24
+
25
+ /***/ })
26
+
27
+ };