Socket
Socket
Sign inDemoInstall

table

Package Overview
Dependencies
35
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.7 to 6.0.8

10

dist/alignString.js

@@ -8,5 +8,5 @@ "use strict";

var _isNumber2 = _interopRequireDefault(require("lodash/isNumber"));
var _isNumberObject = _interopRequireDefault(require("is-number-object"));
var _isString2 = _interopRequireDefault(require("lodash/isString"));
var _isString = _interopRequireDefault(require("is-string"));

@@ -67,7 +67,7 @@ var _stringWidth = _interopRequireDefault(require("string-width"));

const alignString = (subject, containerWidth, alignment) => {
if (!(0, _isString2.default)(subject)) {
if (!(0, _isString.default)(subject)) {
throw new TypeError('Subject parameter value must be a string.');
}
if (!(0, _isNumber2.default)(containerWidth)) {
if (!(0, _isNumberObject.default)(containerWidth)) {
throw new TypeError('Container width parameter value must be a number.');

@@ -83,3 +83,3 @@ }

if (!(0, _isString2.default)(alignment)) {
if (!(0, _isString.default)(alignment)) {
throw new TypeError('Alignment parameter value must be a string.');

@@ -86,0 +86,0 @@ }

@@ -8,3 +8,3 @@ "use strict";

var _isString2 = _interopRequireDefault(require("lodash/isString"));
var _isString = _interopRequireDefault(require("is-string"));

@@ -22,3 +22,3 @@ var _wrapCell = _interopRequireDefault(require("./wrapCell"));

const calculateCellHeight = (value, columnWidth, useWrapWord = false) => {
if (!(0, _isString2.default)(value)) {
if (!(0, _isString.default)(value)) {
throw new TypeError('Value must be a string.');

@@ -25,0 +25,0 @@ }

@@ -8,8 +8,6 @@ "use strict";

var _max2 = _interopRequireDefault(require("lodash/max"));
var _isBooleanObject = _interopRequireDefault(require("is-boolean-object"));
var _isBoolean2 = _interopRequireDefault(require("lodash/isBoolean"));
var _isNumberObject = _interopRequireDefault(require("is-number-object"));
var _isNumber2 = _interopRequireDefault(require("lodash/isNumber"));
var _calculateCellHeight = _interopRequireDefault(require("./calculateCellHeight"));

@@ -32,7 +30,7 @@

cells.forEach((value, index1) => {
if (!(0, _isNumber2.default)(config.columns[index1].width)) {
if (!(0, _isNumberObject.default)(config.columns[index1].width)) {
throw new TypeError('column[index].width must be a number.');
}
if (!(0, _isBoolean2.default)(config.columns[index1].wrapWord)) {
if (!(0, _isBooleanObject.default)(config.columns[index1].wrapWord)) {
throw new TypeError('column[index].wrapWord must be a boolean.');

@@ -43,3 +41,3 @@ }

});
rowSpanIndex.push((0, _max2.default)(cellHeightIndex));
rowSpanIndex.push(Math.max(...cellHeightIndex));
});

@@ -46,0 +44,0 @@ return rowSpanIndex;

@@ -8,4 +8,2 @@ "use strict";

var _mapValues2 = _interopRequireDefault(require("lodash/mapValues"));
var _alignTableData = _interopRequireDefault(require("./alignTableData"));

@@ -101,5 +99,5 @@

const config = (0, _makeStreamConfig.default)(userConfig);
const columnWidthIndex = Object.values((0, _mapValues2.default)(config.columns, column => {
const columnWidthIndex = Object.values(config.columns).map(column => {
return column.width + column.paddingLeft + column.paddingRight;
}));
});
let empty;

@@ -106,0 +104,0 @@ empty = true;

@@ -8,8 +8,4 @@ "use strict";

var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
var _lodash = _interopRequireDefault(require("lodash.clonedeep"));
var _isUndefined2 = _interopRequireDefault(require("lodash/isUndefined"));
var _times2 = _interopRequireDefault(require("lodash/times"));
var _calculateMaximumColumnWidthIndex = _interopRequireDefault(require("./calculateMaximumColumnWidthIndex"));

@@ -45,4 +41,5 @@

const maximumColumnWidthIndex = (0, _calculateMaximumColumnWidthIndex.default)(rows);
(0, _times2.default)(rows[0].length, index => {
if ((0, _isUndefined2.default)(columns[index])) {
for (let index = 0; index < rows[0].length; index++) {
if (typeof columns[index] === 'undefined') {
columns[index] = {};

@@ -59,3 +56,4 @@ }

}, columnDefault, columns[index]);
});
}
return columns;

@@ -75,3 +73,3 @@ };

(0, _validateConfig.default)('config.json', userConfig);
const config = (0, _cloneDeep2.default)(userConfig);
const config = (0, _lodash.default)(userConfig);
config.border = makeBorder(config.border);

@@ -78,0 +76,0 @@ config.columns = makeColumns(rows, config.columns, config.columnDefault);

@@ -8,8 +8,4 @@ "use strict";

var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
var _lodash = _interopRequireDefault(require("lodash.clonedeep"));
var _isUndefined2 = _interopRequireDefault(require("lodash/isUndefined"));
var _times2 = _interopRequireDefault(require("lodash/times"));
var _getBorderCharacters = _interopRequireDefault(require("./getBorderCharacters"));

@@ -42,4 +38,4 @@

const makeColumns = (columnCount, columns = {}, columnDefault = {}) => {
(0, _times2.default)(columnCount, index => {
if ((0, _isUndefined2.default)(columns[index])) {
for (let index = 0; index < columnCount; index++) {
if (typeof columns[index] === 'undefined') {
columns[index] = {};

@@ -55,3 +51,4 @@ }

}, columnDefault, columns[index]);
});
}
return columns;

@@ -87,3 +84,3 @@ };

(0, _validateConfig.default)('streamConfig.json', userConfig);
const config = (0, _cloneDeep2.default)(userConfig);
const config = (0, _lodash.default)(userConfig);

@@ -90,0 +87,0 @@ if (!config.columnDefault || !config.columnDefault.width) {

@@ -8,6 +8,4 @@ "use strict";

var _flatten2 = _interopRequireDefault(require("lodash/flatten"));
var _lodash = _interopRequireDefault(require("lodash.flatten"));
var _times2 = _interopRequireDefault(require("lodash/times"));
var _wrapCell = _interopRequireDefault(require("./wrapCell"));

@@ -26,3 +24,3 @@

const mappedRows = unmappedRows.map((cells, index0) => {
const rowHeight = (0, _times2.default)(rowHeightIndex[index0], () => {
const rowHeight = Array.from(new Array(rowHeightIndex[index0]), () => {
return new Array(tableWidth).fill('');

@@ -41,3 +39,3 @@ }); // rowHeight

});
return (0, _flatten2.default)(mappedRows);
return (0, _lodash.default)(mappedRows);
};

@@ -44,0 +42,0 @@

@@ -8,3 +8,3 @@ "use strict";

var _truncate2 = _interopRequireDefault(require("lodash/truncate"));
var _lodash = _interopRequireDefault(require("lodash.truncate"));

@@ -22,3 +22,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

return cells.map((content, index) => {
return (0, _truncate2.default)(content, {
return (0, _lodash.default)(content, {
length: config.columns[index].truncate

@@ -25,0 +25,0 @@ });

@@ -12,4 +12,2 @@ "use strict";

// eslint-disable-next-line import/default
/**

@@ -16,0 +14,0 @@ * @param {string} schemaId

@@ -77,2 +77,3 @@ "use strict";

};
const func8 = Object.prototype.hasOwnProperty;
const schema16 = {

@@ -83,3 +84,3 @@ "type": "string"

function validate46(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -93,9 +94,9 @@ parentDataProperty,

const err0 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "string"
},
message: "should be string"
message: "must be string"
};

@@ -114,3 +115,3 @@ if (vErrors === null) {

function validate45(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -124,11 +125,11 @@ parentDataProperty,

for (const key0 in data) {
if (!(schema15.properties.hasOwnProperty(key0))) {
if (!(func8.call(schema15.properties, key0))) {
const err0 = {
instancePath,
schemaPath: "#/additionalProperties",
keyword: "additionalProperties",
dataPath,
schemaPath: "#/additionalProperties",
params: {
additionalProperty: key0
},
message: "should NOT have additional properties"
message: "must NOT have additional properties"
};

@@ -145,3 +146,3 @@ if (vErrors === null) {

if (!(validate46(data.topBody, {
dataPath: dataPath + "/topBody",
instancePath: instancePath + "/topBody",
parentData: data,

@@ -157,3 +158,3 @@ parentDataProperty: "topBody",

if (!(validate46(data.topJoin, {
dataPath: dataPath + "/topJoin",
instancePath: instancePath + "/topJoin",
parentData: data,

@@ -169,3 +170,3 @@ parentDataProperty: "topJoin",

if (!(validate46(data.topLeft, {
dataPath: dataPath + "/topLeft",
instancePath: instancePath + "/topLeft",
parentData: data,

@@ -181,3 +182,3 @@ parentDataProperty: "topLeft",

if (!(validate46(data.topRight, {
dataPath: dataPath + "/topRight",
instancePath: instancePath + "/topRight",
parentData: data,

@@ -193,3 +194,3 @@ parentDataProperty: "topRight",

if (!(validate46(data.bottomBody, {
dataPath: dataPath + "/bottomBody",
instancePath: instancePath + "/bottomBody",
parentData: data,

@@ -205,3 +206,3 @@ parentDataProperty: "bottomBody",

if (!(validate46(data.bottomJoin, {
dataPath: dataPath + "/bottomJoin",
instancePath: instancePath + "/bottomJoin",
parentData: data,

@@ -217,3 +218,3 @@ parentDataProperty: "bottomJoin",

if (!(validate46(data.bottomLeft, {
dataPath: dataPath + "/bottomLeft",
instancePath: instancePath + "/bottomLeft",
parentData: data,

@@ -229,3 +230,3 @@ parentDataProperty: "bottomLeft",

if (!(validate46(data.bottomRight, {
dataPath: dataPath + "/bottomRight",
instancePath: instancePath + "/bottomRight",
parentData: data,

@@ -241,3 +242,3 @@ parentDataProperty: "bottomRight",

if (!(validate46(data.bodyLeft, {
dataPath: dataPath + "/bodyLeft",
instancePath: instancePath + "/bodyLeft",
parentData: data,

@@ -253,3 +254,3 @@ parentDataProperty: "bodyLeft",

if (!(validate46(data.bodyRight, {
dataPath: dataPath + "/bodyRight",
instancePath: instancePath + "/bodyRight",
parentData: data,

@@ -265,3 +266,3 @@ parentDataProperty: "bodyRight",

if (!(validate46(data.bodyJoin, {
dataPath: dataPath + "/bodyJoin",
instancePath: instancePath + "/bodyJoin",
parentData: data,

@@ -277,3 +278,3 @@ parentDataProperty: "bodyJoin",

if (!(validate46(data.joinBody, {
dataPath: dataPath + "/joinBody",
instancePath: instancePath + "/joinBody",
parentData: data,

@@ -289,3 +290,3 @@ parentDataProperty: "joinBody",

if (!(validate46(data.joinLeft, {
dataPath: dataPath + "/joinLeft",
instancePath: instancePath + "/joinLeft",
parentData: data,

@@ -301,3 +302,3 @@ parentDataProperty: "joinLeft",

if (!(validate46(data.joinRight, {
dataPath: dataPath + "/joinRight",
instancePath: instancePath + "/joinRight",
parentData: data,

@@ -313,3 +314,3 @@ parentDataProperty: "joinRight",

if (!(validate46(data.joinJoin, {
dataPath: dataPath + "/joinJoin",
instancePath: instancePath + "/joinJoin",
parentData: data,

@@ -325,9 +326,9 @@ parentDataProperty: "joinJoin",

const err1 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "object"
},
message: "should be object"
message: "must be object"
};

@@ -379,6 +380,6 @@ if (vErrors === null) {

};
const func0 = require("ajv/dist/compile/equal");
const func0 = require("ajv/dist/runtime/equal").default;
function validate64(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -394,9 +395,9 @@ parentDataProperty,

const err0 = {
instancePath,
schemaPath: "#/additionalProperties",
keyword: "additionalProperties",
dataPath,
schemaPath: "#/additionalProperties",
params: {
additionalProperty: key0
},
message: "should NOT have additional properties"
message: "must NOT have additional properties"
};

@@ -415,9 +416,9 @@ if (vErrors === null) {

const err1 = {
instancePath: instancePath + "/alignment",
schemaPath: "#/properties/alignment/type",
keyword: "type",
dataPath: dataPath + "/alignment",
schemaPath: "#/properties/alignment/type",
params: {
type: "string"
},
message: "should be string"
message: "must be string"
};

@@ -433,9 +434,9 @@ if (vErrors === null) {

const err2 = {
instancePath: instancePath + "/alignment",
schemaPath: "#/properties/alignment/enum",
keyword: "enum",
dataPath: dataPath + "/alignment",
schemaPath: "#/properties/alignment/enum",
params: {
allowedValues: schema18.properties.alignment.enum
},
message: "should be equal to one of the allowed values"
message: "must be equal to one of the allowed values"
};

@@ -454,9 +455,9 @@ if (vErrors === null) {

const err3 = {
instancePath: instancePath + "/width",
schemaPath: "#/properties/width/type",
keyword: "type",
dataPath: dataPath + "/width",
schemaPath: "#/properties/width/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -474,9 +475,9 @@ if (vErrors === null) {

const err4 = {
instancePath: instancePath + "/wrapWord",
schemaPath: "#/properties/wrapWord/type",
keyword: "type",
dataPath: dataPath + "/wrapWord",
schemaPath: "#/properties/wrapWord/type",
params: {
type: "boolean"
},
message: "should be boolean"
message: "must be boolean"
};

@@ -495,9 +496,9 @@ if (vErrors === null) {

const err5 = {
instancePath: instancePath + "/truncate",
schemaPath: "#/properties/truncate/type",
keyword: "type",
dataPath: dataPath + "/truncate",
schemaPath: "#/properties/truncate/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -516,9 +517,9 @@ if (vErrors === null) {

const err6 = {
instancePath: instancePath + "/paddingLeft",
schemaPath: "#/properties/paddingLeft/type",
keyword: "type",
dataPath: dataPath + "/paddingLeft",
schemaPath: "#/properties/paddingLeft/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -537,9 +538,9 @@ if (vErrors === null) {

const err7 = {
instancePath: instancePath + "/paddingRight",
schemaPath: "#/properties/paddingRight/type",
keyword: "type",
dataPath: dataPath + "/paddingRight",
schemaPath: "#/properties/paddingRight/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -556,9 +557,9 @@ if (vErrors === null) {

const err8 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "object"
},
message: "should be object"
message: "must be object"
};

@@ -577,3 +578,3 @@ if (vErrors === null) {

function validate63(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -589,9 +590,9 @@ parentDataProperty,

const err0 = {
instancePath,
schemaPath: "#/additionalProperties",
keyword: "additionalProperties",
dataPath,
schemaPath: "#/additionalProperties",
params: {
additionalProperty: key0
},
message: "should NOT have additional properties"
message: "must NOT have additional properties"
};

@@ -609,3 +610,3 @@ if (vErrors === null) {

if (!(validate64(data[key1], {
dataPath: dataPath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
parentData: data,

@@ -622,9 +623,9 @@ parentDataProperty: key1,

const err1 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "object"
},
message: "should be object"
message: "must be object"
};

@@ -643,3 +644,3 @@ if (vErrors === null) {

function validate67(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -655,9 +656,9 @@ parentDataProperty,

const err0 = {
instancePath,
schemaPath: "#/additionalProperties",
keyword: "additionalProperties",
dataPath,
schemaPath: "#/additionalProperties",
params: {
additionalProperty: key0
},
message: "should NOT have additional properties"
message: "must NOT have additional properties"
};

@@ -676,9 +677,9 @@ if (vErrors === null) {

const err1 = {
instancePath: instancePath + "/alignment",
schemaPath: "#/properties/alignment/type",
keyword: "type",
dataPath: dataPath + "/alignment",
schemaPath: "#/properties/alignment/type",
params: {
type: "string"
},
message: "should be string"
message: "must be string"
};

@@ -694,9 +695,9 @@ if (vErrors === null) {

const err2 = {
instancePath: instancePath + "/alignment",
schemaPath: "#/properties/alignment/enum",
keyword: "enum",
dataPath: dataPath + "/alignment",
schemaPath: "#/properties/alignment/enum",
params: {
allowedValues: schema18.properties.alignment.enum
},
message: "should be equal to one of the allowed values"
message: "must be equal to one of the allowed values"
};

@@ -715,9 +716,9 @@ if (vErrors === null) {

const err3 = {
instancePath: instancePath + "/width",
schemaPath: "#/properties/width/type",
keyword: "type",
dataPath: dataPath + "/width",
schemaPath: "#/properties/width/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -735,9 +736,9 @@ if (vErrors === null) {

const err4 = {
instancePath: instancePath + "/wrapWord",
schemaPath: "#/properties/wrapWord/type",
keyword: "type",
dataPath: dataPath + "/wrapWord",
schemaPath: "#/properties/wrapWord/type",
params: {
type: "boolean"
},
message: "should be boolean"
message: "must be boolean"
};

@@ -756,9 +757,9 @@ if (vErrors === null) {

const err5 = {
instancePath: instancePath + "/truncate",
schemaPath: "#/properties/truncate/type",
keyword: "type",
dataPath: dataPath + "/truncate",
schemaPath: "#/properties/truncate/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -777,9 +778,9 @@ if (vErrors === null) {

const err6 = {
instancePath: instancePath + "/paddingLeft",
schemaPath: "#/properties/paddingLeft/type",
keyword: "type",
dataPath: dataPath + "/paddingLeft",
schemaPath: "#/properties/paddingLeft/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -798,9 +799,9 @@ if (vErrors === null) {

const err7 = {
instancePath: instancePath + "/paddingRight",
schemaPath: "#/properties/paddingRight/type",
keyword: "type",
dataPath: dataPath + "/paddingRight",
schemaPath: "#/properties/paddingRight/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -817,9 +818,9 @@ if (vErrors === null) {

const err8 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "object"
},
message: "should be object"
message: "must be object"
};

@@ -838,3 +839,3 @@ if (vErrors === null) {

function validate43(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -851,9 +852,9 @@ parentDataProperty,

const err0 = {
instancePath,
schemaPath: "#/additionalProperties",
keyword: "additionalProperties",
dataPath,
schemaPath: "#/additionalProperties",
params: {
additionalProperty: key0
},
message: "should NOT have additional properties"
message: "must NOT have additional properties"
};

@@ -870,3 +871,3 @@ if (vErrors === null) {

if (!(validate45(data.border, {
dataPath: dataPath + "/border",
instancePath: instancePath + "/border",
parentData: data,

@@ -882,3 +883,3 @@ parentDataProperty: "border",

if (!(validate63(data.columns, {
dataPath: dataPath + "/columns",
instancePath: instancePath + "/columns",
parentData: data,

@@ -894,3 +895,3 @@ parentDataProperty: "columns",

if (!(validate67(data.columnDefault, {
dataPath: dataPath + "/columnDefault",
instancePath: instancePath + "/columnDefault",
parentData: data,

@@ -907,5 +908,5 @@ parentDataProperty: "columnDefault",

const err1 = {
instancePath: instancePath + "/drawHorizontalLine",
schemaPath: "#/properties/drawHorizontalLine/typeof",
keyword: "typeof",
dataPath: dataPath + "/drawHorizontalLine",
schemaPath: "#/properties/drawHorizontalLine/typeof",
params: {},

@@ -925,5 +926,5 @@ message: "should pass \"typeof\" keyword validation"

const err2 = {
instancePath: instancePath + "/singleLine",
schemaPath: "#/properties/singleLine/typeof",
keyword: "typeof",
dataPath: dataPath + "/singleLine",
schemaPath: "#/properties/singleLine/typeof",
params: {},

@@ -942,9 +943,9 @@ message: "should pass \"typeof\" keyword validation"

const err3 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "object"
},
message: "should be object"
message: "must be object"
};

@@ -984,3 +985,3 @@ if (vErrors === null) {

function validate70(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -994,11 +995,11 @@ parentDataProperty,

for (const key0 in data) {
if (!(schema15.properties.hasOwnProperty(key0))) {
if (!(func8.call(schema15.properties, key0))) {
const err0 = {
instancePath,
schemaPath: "#/additionalProperties",
keyword: "additionalProperties",
dataPath,
schemaPath: "#/additionalProperties",
params: {
additionalProperty: key0
},
message: "should NOT have additional properties"
message: "must NOT have additional properties"
};

@@ -1015,3 +1016,3 @@ if (vErrors === null) {

if (!(validate46(data.topBody, {
dataPath: dataPath + "/topBody",
instancePath: instancePath + "/topBody",
parentData: data,

@@ -1027,3 +1028,3 @@ parentDataProperty: "topBody",

if (!(validate46(data.topJoin, {
dataPath: dataPath + "/topJoin",
instancePath: instancePath + "/topJoin",
parentData: data,

@@ -1039,3 +1040,3 @@ parentDataProperty: "topJoin",

if (!(validate46(data.topLeft, {
dataPath: dataPath + "/topLeft",
instancePath: instancePath + "/topLeft",
parentData: data,

@@ -1051,3 +1052,3 @@ parentDataProperty: "topLeft",

if (!(validate46(data.topRight, {
dataPath: dataPath + "/topRight",
instancePath: instancePath + "/topRight",
parentData: data,

@@ -1063,3 +1064,3 @@ parentDataProperty: "topRight",

if (!(validate46(data.bottomBody, {
dataPath: dataPath + "/bottomBody",
instancePath: instancePath + "/bottomBody",
parentData: data,

@@ -1075,3 +1076,3 @@ parentDataProperty: "bottomBody",

if (!(validate46(data.bottomJoin, {
dataPath: dataPath + "/bottomJoin",
instancePath: instancePath + "/bottomJoin",
parentData: data,

@@ -1087,3 +1088,3 @@ parentDataProperty: "bottomJoin",

if (!(validate46(data.bottomLeft, {
dataPath: dataPath + "/bottomLeft",
instancePath: instancePath + "/bottomLeft",
parentData: data,

@@ -1099,3 +1100,3 @@ parentDataProperty: "bottomLeft",

if (!(validate46(data.bottomRight, {
dataPath: dataPath + "/bottomRight",
instancePath: instancePath + "/bottomRight",
parentData: data,

@@ -1111,3 +1112,3 @@ parentDataProperty: "bottomRight",

if (!(validate46(data.bodyLeft, {
dataPath: dataPath + "/bodyLeft",
instancePath: instancePath + "/bodyLeft",
parentData: data,

@@ -1123,3 +1124,3 @@ parentDataProperty: "bodyLeft",

if (!(validate46(data.bodyRight, {
dataPath: dataPath + "/bodyRight",
instancePath: instancePath + "/bodyRight",
parentData: data,

@@ -1135,3 +1136,3 @@ parentDataProperty: "bodyRight",

if (!(validate46(data.bodyJoin, {
dataPath: dataPath + "/bodyJoin",
instancePath: instancePath + "/bodyJoin",
parentData: data,

@@ -1147,3 +1148,3 @@ parentDataProperty: "bodyJoin",

if (!(validate46(data.joinBody, {
dataPath: dataPath + "/joinBody",
instancePath: instancePath + "/joinBody",
parentData: data,

@@ -1159,3 +1160,3 @@ parentDataProperty: "joinBody",

if (!(validate46(data.joinLeft, {
dataPath: dataPath + "/joinLeft",
instancePath: instancePath + "/joinLeft",
parentData: data,

@@ -1171,3 +1172,3 @@ parentDataProperty: "joinLeft",

if (!(validate46(data.joinRight, {
dataPath: dataPath + "/joinRight",
instancePath: instancePath + "/joinRight",
parentData: data,

@@ -1183,3 +1184,3 @@ parentDataProperty: "joinRight",

if (!(validate46(data.joinJoin, {
dataPath: dataPath + "/joinJoin",
instancePath: instancePath + "/joinJoin",
parentData: data,

@@ -1195,9 +1196,9 @@ parentDataProperty: "joinJoin",

const err1 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "object"
},
message: "should be object"
message: "must be object"
};

@@ -1216,3 +1217,3 @@ if (vErrors === null) {

function validate87(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -1228,9 +1229,9 @@ parentDataProperty,

const err0 = {
instancePath,
schemaPath: "#/additionalProperties",
keyword: "additionalProperties",
dataPath,
schemaPath: "#/additionalProperties",
params: {
additionalProperty: key0
},
message: "should NOT have additional properties"
message: "must NOT have additional properties"
};

@@ -1248,3 +1249,3 @@ if (vErrors === null) {

if (!(validate64(data[key1], {
dataPath: dataPath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
parentData: data,

@@ -1261,9 +1262,9 @@ parentDataProperty: key1,

const err1 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "object"
},
message: "should be object"
message: "must be object"
};

@@ -1282,3 +1283,3 @@ if (vErrors === null) {

function validate90(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -1294,9 +1295,9 @@ parentDataProperty,

const err0 = {
instancePath,
schemaPath: "#/additionalProperties",
keyword: "additionalProperties",
dataPath,
schemaPath: "#/additionalProperties",
params: {
additionalProperty: key0
},
message: "should NOT have additional properties"
message: "must NOT have additional properties"
};

@@ -1315,9 +1316,9 @@ if (vErrors === null) {

const err1 = {
instancePath: instancePath + "/alignment",
schemaPath: "#/properties/alignment/type",
keyword: "type",
dataPath: dataPath + "/alignment",
schemaPath: "#/properties/alignment/type",
params: {
type: "string"
},
message: "should be string"
message: "must be string"
};

@@ -1333,9 +1334,9 @@ if (vErrors === null) {

const err2 = {
instancePath: instancePath + "/alignment",
schemaPath: "#/properties/alignment/enum",
keyword: "enum",
dataPath: dataPath + "/alignment",
schemaPath: "#/properties/alignment/enum",
params: {
allowedValues: schema18.properties.alignment.enum
},
message: "should be equal to one of the allowed values"
message: "must be equal to one of the allowed values"
};

@@ -1354,9 +1355,9 @@ if (vErrors === null) {

const err3 = {
instancePath: instancePath + "/width",
schemaPath: "#/properties/width/type",
keyword: "type",
dataPath: dataPath + "/width",
schemaPath: "#/properties/width/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -1374,9 +1375,9 @@ if (vErrors === null) {

const err4 = {
instancePath: instancePath + "/wrapWord",
schemaPath: "#/properties/wrapWord/type",
keyword: "type",
dataPath: dataPath + "/wrapWord",
schemaPath: "#/properties/wrapWord/type",
params: {
type: "boolean"
},
message: "should be boolean"
message: "must be boolean"
};

@@ -1395,9 +1396,9 @@ if (vErrors === null) {

const err5 = {
instancePath: instancePath + "/truncate",
schemaPath: "#/properties/truncate/type",
keyword: "type",
dataPath: dataPath + "/truncate",
schemaPath: "#/properties/truncate/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -1416,9 +1417,9 @@ if (vErrors === null) {

const err6 = {
instancePath: instancePath + "/paddingLeft",
schemaPath: "#/properties/paddingLeft/type",
keyword: "type",
dataPath: dataPath + "/paddingLeft",
schemaPath: "#/properties/paddingLeft/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -1437,9 +1438,9 @@ if (vErrors === null) {

const err7 = {
instancePath: instancePath + "/paddingRight",
schemaPath: "#/properties/paddingRight/type",
keyword: "type",
dataPath: dataPath + "/paddingRight",
schemaPath: "#/properties/paddingRight/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -1456,9 +1457,9 @@ if (vErrors === null) {

const err8 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "object"
},
message: "should be object"
message: "must be object"
};

@@ -1477,3 +1478,3 @@ if (vErrors === null) {

function validate69(data, {
dataPath = "",
instancePath = "",
parentData,

@@ -1490,9 +1491,9 @@ parentDataProperty,

const err0 = {
instancePath,
schemaPath: "#/additionalProperties",
keyword: "additionalProperties",
dataPath,
schemaPath: "#/additionalProperties",
params: {
additionalProperty: key0
},
message: "should NOT have additional properties"
message: "must NOT have additional properties"
};

@@ -1509,3 +1510,3 @@ if (vErrors === null) {

if (!(validate70(data.border, {
dataPath: dataPath + "/border",
instancePath: instancePath + "/border",
parentData: data,

@@ -1521,3 +1522,3 @@ parentDataProperty: "border",

if (!(validate87(data.columns, {
dataPath: dataPath + "/columns",
instancePath: instancePath + "/columns",
parentData: data,

@@ -1533,3 +1534,3 @@ parentDataProperty: "columns",

if (!(validate90(data.columnDefault, {
dataPath: dataPath + "/columnDefault",
instancePath: instancePath + "/columnDefault",
parentData: data,

@@ -1547,9 +1548,9 @@ parentDataProperty: "columnDefault",

const err1 = {
instancePath: instancePath + "/columnCount",
schemaPath: "#/properties/columnCount/type",
keyword: "type",
dataPath: dataPath + "/columnCount",
schemaPath: "#/properties/columnCount/type",
params: {
type: "number"
},
message: "should be number"
message: "must be number"
};

@@ -1566,9 +1567,9 @@ if (vErrors === null) {

const err2 = {
instancePath,
schemaPath: "#/type",
keyword: "type",
dataPath,
schemaPath: "#/type",
params: {
type: "object"
},
message: "should be object"
message: "must be object"
};

@@ -1575,0 +1576,0 @@ if (vErrors === null) {

@@ -8,4 +8,9 @@ {

"dependencies": {
"ajv": "^7.0.2",
"lodash": "^4.17.20",
"ajv": "^8.0.1",
"is-boolean-object": "^1.1.0",
"is-number-object": "^1.0.4",
"is-string": "^1.0.5",
"lodash.clonedeep": "^4.5.0",
"lodash.flatten": "^4.4.0",
"lodash.truncate": "^4.4.2",
"slice-ansi": "^4.0.0",

@@ -22,6 +27,5 @@ "string-width": "^4.2.0"

"@babel/register": "^7.12.10",
"ajv-cli": "^4.0.1",
"ajv-keywords": "^4.0.0",
"ajv-cli": "^5.0.0",
"ajv-keywords": "^5.0.0",
"babel-plugin-istanbul": "^6.0.0",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-transform-export-default-name": "^2.1.0",

@@ -38,2 +42,5 @@ "chai": "^4.2.0",

"js-beautify": "^1.13.0",
"lodash.mapvalues": "^4.6.0",
"lodash.random": "^3.2.0",
"lodash.sample": "^4.2.1",
"mocha": "^8.2.1",

@@ -87,3 +94,3 @@ "nyc": "^15.1.0",

},
"version": "6.0.7"
"version": "6.0.8"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc