table 6.6.0 → 6.7.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/README.md +407 -429
- package/dist/alignString.js +4 -9
- package/dist/alignTableData.js +2 -11
- package/dist/drawBorder.d.ts +2 -1
- package/dist/drawBorder.js +47 -4
- package/dist/drawContent.d.ts +1 -3
- package/dist/drawContent.js +4 -4
- package/dist/drawHeader.d.ts +2 -0
- package/dist/drawHeader.js +29 -0
- package/dist/drawRow.js +9 -3
- package/dist/drawTable.js +13 -3
- package/dist/generated/validators.d.ts +2 -2
- package/dist/generated/validators.js +659 -317
- package/dist/getBorderCharacters.js +4 -0
- package/dist/index.js +1 -0
- package/dist/makeStreamConfig.js +7 -8
- package/dist/{makeConfig.d.ts → makeTableConfig.d.ts} +1 -1
- package/dist/{makeConfig.js → makeTableConfig.js} +21 -6
- package/dist/mapDataUsingRowHeights.js +24 -9
- package/dist/padTableData.d.ts +1 -0
- package/dist/padTableData.js +7 -3
- package/dist/table.js +2 -2
- package/dist/truncateTableData.d.ts +1 -0
- package/dist/truncateTableData.js +7 -5
- package/dist/types/api.d.ts +16 -3
- package/dist/utils.js +3 -3
- package/package.json +4 -5
|
@@ -16,6 +16,7 @@ const getBorderCharacters = (name) => {
|
|
|
16
16
|
bodyLeft: '║',
|
|
17
17
|
bodyRight: '║',
|
|
18
18
|
bodyJoin: '│',
|
|
19
|
+
headerJoin: '┬',
|
|
19
20
|
joinBody: '─',
|
|
20
21
|
joinLeft: '╟',
|
|
21
22
|
joinRight: '╢',
|
|
@@ -35,6 +36,7 @@ const getBorderCharacters = (name) => {
|
|
|
35
36
|
bodyLeft: '│',
|
|
36
37
|
bodyRight: '│',
|
|
37
38
|
bodyJoin: '│',
|
|
39
|
+
headerJoin: '┬',
|
|
38
40
|
joinBody: '─',
|
|
39
41
|
joinLeft: '├',
|
|
40
42
|
joinRight: '┤',
|
|
@@ -54,6 +56,7 @@ const getBorderCharacters = (name) => {
|
|
|
54
56
|
bodyLeft: '|',
|
|
55
57
|
bodyRight: '|',
|
|
56
58
|
bodyJoin: '|',
|
|
59
|
+
headerJoin: '+',
|
|
57
60
|
joinBody: '-',
|
|
58
61
|
joinLeft: '|',
|
|
59
62
|
joinRight: '|',
|
|
@@ -73,6 +76,7 @@ const getBorderCharacters = (name) => {
|
|
|
73
76
|
bodyLeft: '',
|
|
74
77
|
bodyRight: '',
|
|
75
78
|
bodyJoin: '',
|
|
79
|
+
headerJoin: '',
|
|
76
80
|
joinBody: '',
|
|
77
81
|
joinLeft: '',
|
|
78
82
|
joinRight: '',
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.getBorderCharacters = exports.createStream = exports.table = void 0;
|
|
14
|
+
// import chalk from 'chalk';
|
|
14
15
|
const createStream_1 = require("./createStream");
|
|
15
16
|
Object.defineProperty(exports, "createStream", { enumerable: true, get: function () { return createStream_1.createStream; } });
|
|
16
17
|
const getBorderCharacters_1 = require("./getBorderCharacters");
|
package/dist/makeStreamConfig.js
CHANGED
|
@@ -11,13 +11,14 @@ const validateConfig_1 = require("./validateConfig");
|
|
|
11
11
|
* Creates a configuration for every column using default
|
|
12
12
|
* values for the missing configuration properties.
|
|
13
13
|
*/
|
|
14
|
-
const
|
|
14
|
+
const makeColumnsConfig = (columnCount, columns = {}, columnDefault) => {
|
|
15
15
|
return Array.from({ length: columnCount }).map((_, index) => {
|
|
16
16
|
return {
|
|
17
17
|
alignment: 'left',
|
|
18
18
|
paddingLeft: 1,
|
|
19
19
|
paddingRight: 1,
|
|
20
20
|
truncate: Number.POSITIVE_INFINITY,
|
|
21
|
+
verticalAlignment: 'top',
|
|
21
22
|
wrapWord: false,
|
|
22
23
|
...columnDefault,
|
|
23
24
|
...columns[index],
|
|
@@ -29,20 +30,18 @@ const makeColumns = (columnCount, columns = {}, columnDefault) => {
|
|
|
29
30
|
* using default values for the missing configuration properties.
|
|
30
31
|
*/
|
|
31
32
|
const makeStreamConfig = (userConfig) => {
|
|
32
|
-
var _a;
|
|
33
33
|
validateConfig_1.validateConfig('streamConfig.json', userConfig);
|
|
34
34
|
const config = lodash_clonedeep_1.default(userConfig);
|
|
35
35
|
if (config.columnDefault.width === undefined) {
|
|
36
36
|
throw new Error('Must provide config.columnDefault.width when creating a stream.');
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
|
|
40
|
-
border: utils_1.makeBorder(config.border),
|
|
41
|
-
columnCount: config.columnCount,
|
|
42
|
-
columns: makeColumns(config.columnCount, config.columns, config.columnDefault),
|
|
43
|
-
drawVerticalLine: (_a = config.drawVerticalLine) !== null && _a !== void 0 ? _a : (() => {
|
|
39
|
+
drawVerticalLine: () => {
|
|
44
40
|
return true;
|
|
45
|
-
}
|
|
41
|
+
},
|
|
42
|
+
...config,
|
|
43
|
+
border: utils_1.makeBorderConfig(config.border),
|
|
44
|
+
columns: makeColumnsConfig(config.columnCount, config.columns, config.columnDefault),
|
|
46
45
|
};
|
|
47
46
|
};
|
|
48
47
|
exports.makeStreamConfig = makeStreamConfig;
|
|
@@ -4,4 +4,4 @@ import type { Row, TableConfig } from './types/internal';
|
|
|
4
4
|
* Makes a new configuration object out of the userConfig object
|
|
5
5
|
* using default values for the missing configuration properties.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const makeTableConfig: (rows: Row[], userConfig?: TableUserConfig) => TableConfig;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.makeTableConfig = void 0;
|
|
7
7
|
const lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));
|
|
8
8
|
const calculateColumnWidths_1 = __importDefault(require("./calculateColumnWidths"));
|
|
9
9
|
const utils_1 = require("./utils");
|
|
@@ -12,7 +12,7 @@ const validateConfig_1 = require("./validateConfig");
|
|
|
12
12
|
* Creates a configuration for every column using default
|
|
13
13
|
* values for the missing configuration properties.
|
|
14
14
|
*/
|
|
15
|
-
const
|
|
15
|
+
const makeColumnsConfig = (rows, columns, columnDefault) => {
|
|
16
16
|
const columnWidths = calculateColumnWidths_1.default(rows);
|
|
17
17
|
return rows[0].map((_, columnIndex) => {
|
|
18
18
|
return {
|
|
@@ -20,6 +20,7 @@ const makeColumns = (rows, columns, columnDefault) => {
|
|
|
20
20
|
paddingLeft: 1,
|
|
21
21
|
paddingRight: 1,
|
|
22
22
|
truncate: Number.POSITIVE_INFINITY,
|
|
23
|
+
verticalAlignment: 'top',
|
|
23
24
|
width: columnWidths[columnIndex],
|
|
24
25
|
wrapWord: false,
|
|
25
26
|
...columnDefault,
|
|
@@ -27,25 +28,39 @@ const makeColumns = (rows, columns, columnDefault) => {
|
|
|
27
28
|
};
|
|
28
29
|
});
|
|
29
30
|
};
|
|
31
|
+
const makeHeaderConfig = (config) => {
|
|
32
|
+
if (!config.header) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
alignment: 'center',
|
|
37
|
+
paddingLeft: 1,
|
|
38
|
+
paddingRight: 1,
|
|
39
|
+
truncate: Number.POSITIVE_INFINITY,
|
|
40
|
+
wrapWord: false,
|
|
41
|
+
...config.header,
|
|
42
|
+
};
|
|
43
|
+
};
|
|
30
44
|
/**
|
|
31
45
|
* Makes a new configuration object out of the userConfig object
|
|
32
46
|
* using default values for the missing configuration properties.
|
|
33
47
|
*/
|
|
34
|
-
const
|
|
48
|
+
const makeTableConfig = (rows, userConfig = {}) => {
|
|
35
49
|
var _a, _b, _c;
|
|
36
50
|
validateConfig_1.validateConfig('config.json', userConfig);
|
|
37
51
|
const config = lodash_clonedeep_1.default(userConfig);
|
|
38
52
|
return {
|
|
39
53
|
...config,
|
|
40
|
-
border: utils_1.
|
|
41
|
-
columns:
|
|
54
|
+
border: utils_1.makeBorderConfig(config.border),
|
|
55
|
+
columns: makeColumnsConfig(rows, config.columns, config.columnDefault),
|
|
42
56
|
drawHorizontalLine: (_a = config.drawHorizontalLine) !== null && _a !== void 0 ? _a : (() => {
|
|
43
57
|
return true;
|
|
44
58
|
}),
|
|
45
59
|
drawVerticalLine: (_b = config.drawVerticalLine) !== null && _b !== void 0 ? _b : (() => {
|
|
46
60
|
return true;
|
|
47
61
|
}),
|
|
62
|
+
header: makeHeaderConfig(config),
|
|
48
63
|
singleLine: (_c = config.singleLine) !== null && _c !== void 0 ? _c : false,
|
|
49
64
|
};
|
|
50
65
|
};
|
|
51
|
-
exports.
|
|
66
|
+
exports.makeTableConfig = makeTableConfig;
|
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.mapDataUsingRowHeights = void 0;
|
|
7
|
-
const lodash_flatten_1 = __importDefault(require("lodash.flatten"));
|
|
8
4
|
const wrapCell_1 = require("./wrapCell");
|
|
5
|
+
const createEmptyStrings = (length) => {
|
|
6
|
+
return new Array(length).fill('');
|
|
7
|
+
};
|
|
8
|
+
const padCellVertically = (lines, rowHeight, columnConfig) => {
|
|
9
|
+
const { verticalAlignment } = columnConfig;
|
|
10
|
+
const availableLines = rowHeight - lines.length;
|
|
11
|
+
if (verticalAlignment === 'top') {
|
|
12
|
+
return [...lines, ...createEmptyStrings(availableLines)];
|
|
13
|
+
}
|
|
14
|
+
if (verticalAlignment === 'bottom') {
|
|
15
|
+
return [...createEmptyStrings(availableLines), ...lines];
|
|
16
|
+
}
|
|
17
|
+
return [
|
|
18
|
+
...createEmptyStrings(Math.floor(availableLines / 2)),
|
|
19
|
+
...lines,
|
|
20
|
+
...createEmptyStrings(Math.ceil(availableLines / 2)),
|
|
21
|
+
];
|
|
22
|
+
};
|
|
23
|
+
const flatten = (array) => {
|
|
24
|
+
return [].concat(...array);
|
|
25
|
+
};
|
|
9
26
|
const mapDataUsingRowHeights = (unmappedRows, rowHeights, config) => {
|
|
10
27
|
const tableWidth = unmappedRows[0].length;
|
|
11
28
|
const mappedRows = unmappedRows.map((unmappedRow, unmappedRowIndex) => {
|
|
@@ -13,17 +30,15 @@ const mapDataUsingRowHeights = (unmappedRows, rowHeights, config) => {
|
|
|
13
30
|
const outputRow = Array.from({ length: outputRowHeight }, () => {
|
|
14
31
|
return new Array(tableWidth).fill('');
|
|
15
32
|
});
|
|
16
|
-
// rowHeight
|
|
17
|
-
// [{row index within rowSaw; index2}]
|
|
18
|
-
// [{cell index within a virtual row; index1}]
|
|
19
33
|
unmappedRow.forEach((cell, cellIndex) => {
|
|
20
34
|
const cellLines = wrapCell_1.wrapCell(cell, config.columns[cellIndex].width, config.columns[cellIndex].wrapWord);
|
|
21
|
-
cellLines
|
|
35
|
+
const paddedCellLines = padCellVertically(cellLines, outputRowHeight, config.columns[cellIndex]);
|
|
36
|
+
paddedCellLines.forEach((cellLine, cellLineIndex) => {
|
|
22
37
|
outputRow[cellLineIndex][cellIndex] = cellLine;
|
|
23
38
|
});
|
|
24
39
|
});
|
|
25
40
|
return outputRow;
|
|
26
41
|
});
|
|
27
|
-
return
|
|
42
|
+
return flatten(mappedRows);
|
|
28
43
|
};
|
|
29
44
|
exports.mapDataUsingRowHeights = mapDataUsingRowHeights;
|
package/dist/padTableData.d.ts
CHANGED
package/dist/padTableData.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.padTableData = void 0;
|
|
3
|
+
exports.padTableData = exports.padString = void 0;
|
|
4
|
+
const padString = (input, paddingLeft, paddingRight) => {
|
|
5
|
+
return ' '.repeat(paddingLeft) + input + ' '.repeat(paddingRight);
|
|
6
|
+
};
|
|
7
|
+
exports.padString = padString;
|
|
4
8
|
const padTableData = (rows, config) => {
|
|
5
9
|
return rows.map((cells) => {
|
|
6
10
|
return cells.map((cell, cellIndex) => {
|
|
7
|
-
const
|
|
8
|
-
return
|
|
11
|
+
const { paddingLeft, paddingRight } = config.columns[cellIndex];
|
|
12
|
+
return exports.padString(cell, paddingLeft, paddingRight);
|
|
9
13
|
});
|
|
10
14
|
});
|
|
11
15
|
};
|
package/dist/table.js
CHANGED
|
@@ -5,7 +5,7 @@ const alignTableData_1 = require("./alignTableData");
|
|
|
5
5
|
const calculateCellWidths_1 = require("./calculateCellWidths");
|
|
6
6
|
const calculateRowHeights_1 = require("./calculateRowHeights");
|
|
7
7
|
const drawTable_1 = require("./drawTable");
|
|
8
|
-
const
|
|
8
|
+
const makeTableConfig_1 = require("./makeTableConfig");
|
|
9
9
|
const mapDataUsingRowHeights_1 = require("./mapDataUsingRowHeights");
|
|
10
10
|
const padTableData_1 = require("./padTableData");
|
|
11
11
|
const stringifyTableData_1 = require("./stringifyTableData");
|
|
@@ -14,7 +14,7 @@ const validateTableData_1 = require("./validateTableData");
|
|
|
14
14
|
const table = (data, userConfig = {}) => {
|
|
15
15
|
validateTableData_1.validateTableData(data);
|
|
16
16
|
let rows = stringifyTableData_1.stringifyTableData(data);
|
|
17
|
-
const config =
|
|
17
|
+
const config = makeTableConfig_1.makeTableConfig(rows, userConfig);
|
|
18
18
|
rows = truncateTableData_1.truncateTableData(rows, config);
|
|
19
19
|
const rowHeights = calculateRowHeights_1.calculateRowHeights(rows, config);
|
|
20
20
|
rows = mapDataUsingRowHeights_1.mapDataUsingRowHeights(rows, rowHeights, config);
|
|
@@ -3,18 +3,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.truncateTableData = void 0;
|
|
6
|
+
exports.truncateTableData = exports.truncateString = void 0;
|
|
7
7
|
const lodash_truncate_1 = __importDefault(require("lodash.truncate"));
|
|
8
|
+
const truncateString = (input, length) => {
|
|
9
|
+
return lodash_truncate_1.default(input, { length,
|
|
10
|
+
omission: '…' });
|
|
11
|
+
};
|
|
12
|
+
exports.truncateString = truncateString;
|
|
8
13
|
/**
|
|
9
14
|
* @todo Make it work with ASCII content.
|
|
10
15
|
*/
|
|
11
16
|
const truncateTableData = (rows, config) => {
|
|
12
17
|
return rows.map((cells) => {
|
|
13
18
|
return cells.map((cell, cellIndex) => {
|
|
14
|
-
return
|
|
15
|
-
length: config.columns[cellIndex].truncate,
|
|
16
|
-
omission: '…',
|
|
17
|
-
});
|
|
19
|
+
return exports.truncateString(cell, config.columns[cellIndex].truncate);
|
|
18
20
|
});
|
|
19
21
|
});
|
|
20
22
|
};
|
package/dist/types/api.d.ts
CHANGED
|
@@ -10,21 +10,27 @@ export declare type BorderUserConfig = {
|
|
|
10
10
|
readonly bottomRight?: string;
|
|
11
11
|
readonly bottomBody?: string;
|
|
12
12
|
readonly bottomJoin?: string;
|
|
13
|
-
readonly bodyRight?: string;
|
|
14
|
-
readonly bodyLeft?: string;
|
|
15
|
-
readonly bodyJoin?: string;
|
|
16
13
|
readonly joinLeft?: string;
|
|
17
14
|
readonly joinRight?: string;
|
|
18
15
|
readonly joinBody?: string;
|
|
19
16
|
readonly joinJoin?: string;
|
|
17
|
+
readonly headerJoin?: string;
|
|
18
|
+
readonly bodyRight?: string;
|
|
19
|
+
readonly bodyLeft?: string;
|
|
20
|
+
readonly bodyJoin?: string;
|
|
20
21
|
};
|
|
21
22
|
export declare type BorderConfig = Required<BorderUserConfig>;
|
|
22
23
|
export declare type Alignment = 'center' | 'justify' | 'left' | 'right';
|
|
24
|
+
export declare type VerticalAlignment = 'bottom' | 'middle' | 'top';
|
|
23
25
|
export declare type ColumnUserConfig = {
|
|
24
26
|
/**
|
|
25
27
|
* Cell content horizontal alignment (default: left)
|
|
26
28
|
*/
|
|
27
29
|
readonly alignment?: Alignment;
|
|
30
|
+
/**
|
|
31
|
+
* Cell content vertical alignment (default: top)
|
|
32
|
+
*/
|
|
33
|
+
readonly verticalAlignment?: VerticalAlignment;
|
|
28
34
|
/**
|
|
29
35
|
* Column width (default: auto calculation based on the cell content)
|
|
30
36
|
*/
|
|
@@ -46,6 +52,9 @@ export declare type ColumnUserConfig = {
|
|
|
46
52
|
*/
|
|
47
53
|
readonly wrapWord?: boolean;
|
|
48
54
|
};
|
|
55
|
+
export declare type HeaderUserConfig = Omit<ColumnUserConfig, 'verticalAlignment' | 'width'> & {
|
|
56
|
+
readonly content: string;
|
|
57
|
+
};
|
|
49
58
|
export declare type BaseUserConfig = {
|
|
50
59
|
/**
|
|
51
60
|
* Custom border
|
|
@@ -67,6 +76,10 @@ export declare type BaseUserConfig = {
|
|
|
67
76
|
readonly drawVerticalLine?: DrawVerticalLine;
|
|
68
77
|
};
|
|
69
78
|
export declare type TableUserConfig = BaseUserConfig & {
|
|
79
|
+
/**
|
|
80
|
+
* The header configuration
|
|
81
|
+
*/
|
|
82
|
+
readonly header?: HeaderUserConfig;
|
|
70
83
|
/**
|
|
71
84
|
* Used to tell whether to draw a horizontal line.
|
|
72
85
|
* This callback is called for each non-content line of the table.
|
package/dist/utils.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.distributeUnevenly = exports.countSpaceSequence = exports.groupBySizes = exports.
|
|
6
|
+
exports.distributeUnevenly = exports.countSpaceSequence = exports.groupBySizes = exports.makeBorderConfig = exports.splitAnsi = exports.normalizeString = void 0;
|
|
7
7
|
const slice_ansi_1 = __importDefault(require("slice-ansi"));
|
|
8
8
|
const strip_ansi_1 = __importDefault(require("strip-ansi"));
|
|
9
9
|
const getBorderCharacters_1 = require("./getBorderCharacters");
|
|
@@ -40,13 +40,13 @@ exports.splitAnsi = splitAnsi;
|
|
|
40
40
|
*
|
|
41
41
|
* @internal
|
|
42
42
|
*/
|
|
43
|
-
const
|
|
43
|
+
const makeBorderConfig = (border) => {
|
|
44
44
|
return {
|
|
45
45
|
...getBorderCharacters_1.getBorderCharacters('honeywell'),
|
|
46
46
|
...border,
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
exports.
|
|
49
|
+
exports.makeBorderConfig = makeBorderConfig;
|
|
50
50
|
/**
|
|
51
51
|
* Groups the array into sub-arrays by sizes.
|
|
52
52
|
*
|
package/package.json
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"ajv": "^8.0.1",
|
|
9
9
|
"lodash.clonedeep": "^4.5.0",
|
|
10
|
-
"lodash.flatten": "^4.4.0",
|
|
11
10
|
"lodash.truncate": "^4.4.2",
|
|
12
11
|
"slice-ansi": "^4.0.0",
|
|
13
12
|
"string-width": "^4.2.0",
|
|
@@ -17,7 +16,6 @@
|
|
|
17
16
|
"devDependencies": {
|
|
18
17
|
"@types/chai": "^4.2.16",
|
|
19
18
|
"@types/lodash.clonedeep": "^4.5.6",
|
|
20
|
-
"@types/lodash.flatten": "^4.4.6",
|
|
21
19
|
"@types/lodash.mapvalues": "^4.6.6",
|
|
22
20
|
"@types/lodash.truncate": "^4.4.6",
|
|
23
21
|
"@types/mocha": "^8.2.2",
|
|
@@ -75,7 +73,8 @@
|
|
|
75
73
|
"test/**/*.ts"
|
|
76
74
|
],
|
|
77
75
|
"reporter": [
|
|
78
|
-
"text-lcov"
|
|
76
|
+
"text-lcov",
|
|
77
|
+
"text"
|
|
79
78
|
]
|
|
80
79
|
},
|
|
81
80
|
"repository": {
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
"create-readme": "gitdown ./.README/README.md --output-file ./README.md",
|
|
90
89
|
"create-validators": "rm -fr ./src/generated && mkdirp ./src/generated && ajv compile --all-errors --inline-refs=false -s src/schemas/config -s src/schemas/streamConfig -r src/schemas/shared -c ajv-keywords/dist/keywords/typeof -o | js-beautify > ./src/generated/validators.js",
|
|
91
90
|
"lint": "eslint --ignore-path .gitignore ./src ./test",
|
|
92
|
-
"test": "npm run create-validators && mocha --require ts-node/register ./test/**/*.ts"
|
|
91
|
+
"test": "npm run create-validators && mocha --require ts-node/register \"./test/**/*.ts\""
|
|
93
92
|
},
|
|
94
|
-
"version": "6.
|
|
93
|
+
"version": "6.7.0"
|
|
95
94
|
}
|