table 6.3.4 → 6.4.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/dist/alignString.js
CHANGED
|
@@ -29,9 +29,6 @@ exports.default = (subject, containerWidth, alignment) => {
|
|
|
29
29
|
if (typeof subject !== 'string') {
|
|
30
30
|
throw new TypeError('Subject parameter value must be a string.');
|
|
31
31
|
}
|
|
32
|
-
if (typeof containerWidth !== 'number') {
|
|
33
|
-
throw new TypeError('Container width parameter value must be a number.');
|
|
34
|
-
}
|
|
35
32
|
const subjectWidth = string_width_1.default(subject);
|
|
36
33
|
if (subjectWidth > containerWidth) {
|
|
37
34
|
throw new Error('Subject parameter value width cannot be greater than the container width.');
|
|
@@ -8,8 +8,5 @@ exports.default = (value, columnWidth, useWrapWord = false) => {
|
|
|
8
8
|
if (typeof value !== 'string') {
|
|
9
9
|
throw new TypeError('Value must be a string.');
|
|
10
10
|
}
|
|
11
|
-
if (!Number.isInteger(columnWidth) || columnWidth < 1) {
|
|
12
|
-
throw new TypeError('Column width must be an integer greater than 0.');
|
|
13
|
-
}
|
|
14
11
|
return wrapCell_1.default(value, columnWidth, useWrapWord).length;
|
|
15
12
|
};
|
|
@@ -13,9 +13,6 @@ exports.default = (rows, config) => {
|
|
|
13
13
|
rows.forEach((cells) => {
|
|
14
14
|
const cellHeightIndex = new Array(tableWidth).fill(1);
|
|
15
15
|
cells.forEach((value, index1) => {
|
|
16
|
-
if (typeof config.columns[index1].width !== 'number') {
|
|
17
|
-
throw new TypeError('column[index].width must be a number.');
|
|
18
|
-
}
|
|
19
16
|
cellHeightIndex[index1] = calculateCellHeight_1.default(value, config.columns[index1].width, config.columns[index1].wrapWord);
|
|
20
17
|
});
|
|
21
18
|
rowSpanIndex.push(Math.max(...cellHeightIndex));
|
|
@@ -4,10 +4,10 @@ declare function validate43(data: any, { instancePath, parentData, parentDataPro
|
|
|
4
4
|
parentDataProperty: any;
|
|
5
5
|
rootData?: any;
|
|
6
6
|
}): boolean;
|
|
7
|
-
declare function
|
|
7
|
+
declare function validate70(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
8
8
|
instancePath?: string | undefined;
|
|
9
9
|
parentData: any;
|
|
10
10
|
parentDataProperty: any;
|
|
11
11
|
rootData?: any;
|
|
12
12
|
}): boolean;
|
|
13
|
-
export { validate43 as _config_json,
|
|
13
|
+
export { validate43 as _config_json, validate70 as _streamConfig_json };
|
|
@@ -317,13 +317,20 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
317
317
|
return errors === 0;
|
|
318
318
|
}
|
|
319
319
|
const schema17 = {
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
320
|
+
"oneOf": [{
|
|
321
|
+
"type": "object",
|
|
322
|
+
"patternProperties": {
|
|
323
|
+
"^[0-9]+$": {
|
|
324
|
+
"$ref": "#/definitions/column"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"additionalProperties": false
|
|
328
|
+
}, {
|
|
329
|
+
"type": "array",
|
|
330
|
+
"items": {
|
|
331
|
+
"$ref": "#/definitions/column"
|
|
332
|
+
}
|
|
333
|
+
}]
|
|
327
334
|
};
|
|
328
335
|
const pattern0 = new RegExp("^[0-9]+$", "u");
|
|
329
336
|
const schema18 = {
|
|
@@ -334,7 +341,9 @@ const schema18 = {
|
|
|
334
341
|
"enum": ["left", "right", "center"]
|
|
335
342
|
},
|
|
336
343
|
"width": {
|
|
337
|
-
"type": "number"
|
|
344
|
+
"type": "number",
|
|
345
|
+
"minimum": 1,
|
|
346
|
+
"multipleOf": 1
|
|
338
347
|
},
|
|
339
348
|
"wrapWord": {
|
|
340
349
|
"type": "boolean"
|
|
@@ -417,8 +426,48 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
417
426
|
}
|
|
418
427
|
if (data.width !== undefined) {
|
|
419
428
|
let data1 = data.width;
|
|
420
|
-
if (
|
|
421
|
-
|
|
429
|
+
if ((typeof data1 == "number") && (isFinite(data1))) {
|
|
430
|
+
if (data1 < 1 || isNaN(data1)) {
|
|
431
|
+
const err3 = {
|
|
432
|
+
instancePath: instancePath + "/width",
|
|
433
|
+
schemaPath: "#/properties/width/minimum",
|
|
434
|
+
keyword: "minimum",
|
|
435
|
+
params: {
|
|
436
|
+
comparison: ">=",
|
|
437
|
+
limit: 1
|
|
438
|
+
},
|
|
439
|
+
message: "must be >= 1"
|
|
440
|
+
};
|
|
441
|
+
if (vErrors === null) {
|
|
442
|
+
vErrors = [err3];
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
vErrors.push(err3);
|
|
446
|
+
}
|
|
447
|
+
errors++;
|
|
448
|
+
}
|
|
449
|
+
let res0;
|
|
450
|
+
if ((1 === 0 || (res0 = data1 / 1, res0 !== parseInt(res0)))) {
|
|
451
|
+
const err4 = {
|
|
452
|
+
instancePath: instancePath + "/width",
|
|
453
|
+
schemaPath: "#/properties/width/multipleOf",
|
|
454
|
+
keyword: "multipleOf",
|
|
455
|
+
params: {
|
|
456
|
+
multipleOf: 1
|
|
457
|
+
},
|
|
458
|
+
message: "must be multiple of 1"
|
|
459
|
+
};
|
|
460
|
+
if (vErrors === null) {
|
|
461
|
+
vErrors = [err4];
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
vErrors.push(err4);
|
|
465
|
+
}
|
|
466
|
+
errors++;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
else {
|
|
470
|
+
const err5 = {
|
|
422
471
|
instancePath: instancePath + "/width",
|
|
423
472
|
schemaPath: "#/properties/width/type",
|
|
424
473
|
keyword: "type",
|
|
@@ -428,17 +477,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
428
477
|
message: "must be number"
|
|
429
478
|
};
|
|
430
479
|
if (vErrors === null) {
|
|
431
|
-
vErrors = [
|
|
480
|
+
vErrors = [err5];
|
|
432
481
|
}
|
|
433
482
|
else {
|
|
434
|
-
vErrors.push(
|
|
483
|
+
vErrors.push(err5);
|
|
435
484
|
}
|
|
436
485
|
errors++;
|
|
437
486
|
}
|
|
438
487
|
}
|
|
439
488
|
if (data.wrapWord !== undefined) {
|
|
440
489
|
if (typeof data.wrapWord !== "boolean") {
|
|
441
|
-
const
|
|
490
|
+
const err6 = {
|
|
442
491
|
instancePath: instancePath + "/wrapWord",
|
|
443
492
|
schemaPath: "#/properties/wrapWord/type",
|
|
444
493
|
keyword: "type",
|
|
@@ -448,10 +497,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
448
497
|
message: "must be boolean"
|
|
449
498
|
};
|
|
450
499
|
if (vErrors === null) {
|
|
451
|
-
vErrors = [
|
|
500
|
+
vErrors = [err6];
|
|
452
501
|
}
|
|
453
502
|
else {
|
|
454
|
-
vErrors.push(
|
|
503
|
+
vErrors.push(err6);
|
|
455
504
|
}
|
|
456
505
|
errors++;
|
|
457
506
|
}
|
|
@@ -459,7 +508,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
459
508
|
if (data.truncate !== undefined) {
|
|
460
509
|
let data3 = data.truncate;
|
|
461
510
|
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
462
|
-
const
|
|
511
|
+
const err7 = {
|
|
463
512
|
instancePath: instancePath + "/truncate",
|
|
464
513
|
schemaPath: "#/properties/truncate/type",
|
|
465
514
|
keyword: "type",
|
|
@@ -469,10 +518,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
469
518
|
message: "must be number"
|
|
470
519
|
};
|
|
471
520
|
if (vErrors === null) {
|
|
472
|
-
vErrors = [
|
|
521
|
+
vErrors = [err7];
|
|
473
522
|
}
|
|
474
523
|
else {
|
|
475
|
-
vErrors.push(
|
|
524
|
+
vErrors.push(err7);
|
|
476
525
|
}
|
|
477
526
|
errors++;
|
|
478
527
|
}
|
|
@@ -480,7 +529,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
480
529
|
if (data.paddingLeft !== undefined) {
|
|
481
530
|
let data4 = data.paddingLeft;
|
|
482
531
|
if (!((typeof data4 == "number") && (isFinite(data4)))) {
|
|
483
|
-
const
|
|
532
|
+
const err8 = {
|
|
484
533
|
instancePath: instancePath + "/paddingLeft",
|
|
485
534
|
schemaPath: "#/properties/paddingLeft/type",
|
|
486
535
|
keyword: "type",
|
|
@@ -490,10 +539,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
490
539
|
message: "must be number"
|
|
491
540
|
};
|
|
492
541
|
if (vErrors === null) {
|
|
493
|
-
vErrors = [
|
|
542
|
+
vErrors = [err8];
|
|
494
543
|
}
|
|
495
544
|
else {
|
|
496
|
-
vErrors.push(
|
|
545
|
+
vErrors.push(err8);
|
|
497
546
|
}
|
|
498
547
|
errors++;
|
|
499
548
|
}
|
|
@@ -501,7 +550,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
501
550
|
if (data.paddingRight !== undefined) {
|
|
502
551
|
let data5 = data.paddingRight;
|
|
503
552
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
504
|
-
const
|
|
553
|
+
const err9 = {
|
|
505
554
|
instancePath: instancePath + "/paddingRight",
|
|
506
555
|
schemaPath: "#/properties/paddingRight/type",
|
|
507
556
|
keyword: "type",
|
|
@@ -511,17 +560,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
511
560
|
message: "must be number"
|
|
512
561
|
};
|
|
513
562
|
if (vErrors === null) {
|
|
514
|
-
vErrors = [
|
|
563
|
+
vErrors = [err9];
|
|
515
564
|
}
|
|
516
565
|
else {
|
|
517
|
-
vErrors.push(
|
|
566
|
+
vErrors.push(err9);
|
|
518
567
|
}
|
|
519
568
|
errors++;
|
|
520
569
|
}
|
|
521
570
|
}
|
|
522
571
|
}
|
|
523
572
|
else {
|
|
524
|
-
const
|
|
573
|
+
const err10 = {
|
|
525
574
|
instancePath,
|
|
526
575
|
schemaPath: "#/type",
|
|
527
576
|
keyword: "type",
|
|
@@ -531,10 +580,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
531
580
|
message: "must be object"
|
|
532
581
|
};
|
|
533
582
|
if (vErrors === null) {
|
|
534
|
-
vErrors = [
|
|
583
|
+
vErrors = [err10];
|
|
535
584
|
}
|
|
536
585
|
else {
|
|
537
|
-
vErrors.push(
|
|
586
|
+
vErrors.push(err10);
|
|
538
587
|
}
|
|
539
588
|
errors++;
|
|
540
589
|
}
|
|
@@ -544,12 +593,16 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
544
593
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
545
594
|
let vErrors = null;
|
|
546
595
|
let errors = 0;
|
|
596
|
+
const _errs0 = errors;
|
|
597
|
+
let valid0 = false;
|
|
598
|
+
let passing0 = null;
|
|
599
|
+
const _errs1 = errors;
|
|
547
600
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
548
601
|
for (const key0 in data) {
|
|
549
602
|
if (!(pattern0.test(key0))) {
|
|
550
603
|
const err0 = {
|
|
551
604
|
instancePath,
|
|
552
|
-
schemaPath: "#/additionalProperties",
|
|
605
|
+
schemaPath: "#/oneOf/0/additionalProperties",
|
|
553
606
|
keyword: "additionalProperties",
|
|
554
607
|
params: {
|
|
555
608
|
additionalProperty: key0
|
|
@@ -582,7 +635,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
582
635
|
else {
|
|
583
636
|
const err1 = {
|
|
584
637
|
instancePath,
|
|
585
|
-
schemaPath: "#/type",
|
|
638
|
+
schemaPath: "#/oneOf/0/type",
|
|
586
639
|
keyword: "type",
|
|
587
640
|
params: {
|
|
588
641
|
type: "object"
|
|
@@ -597,10 +650,88 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
597
650
|
}
|
|
598
651
|
errors++;
|
|
599
652
|
}
|
|
653
|
+
var _valid0 = _errs1 === errors;
|
|
654
|
+
if (_valid0) {
|
|
655
|
+
valid0 = true;
|
|
656
|
+
passing0 = 0;
|
|
657
|
+
}
|
|
658
|
+
const _errs5 = errors;
|
|
659
|
+
if (Array.isArray(data)) {
|
|
660
|
+
const len0 = data.length;
|
|
661
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
662
|
+
if (!(validate64(data[i0], {
|
|
663
|
+
instancePath: instancePath + "/" + i0,
|
|
664
|
+
parentData: data,
|
|
665
|
+
parentDataProperty: i0,
|
|
666
|
+
rootData
|
|
667
|
+
}))) {
|
|
668
|
+
vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
|
|
669
|
+
errors = vErrors.length;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
else {
|
|
674
|
+
const err2 = {
|
|
675
|
+
instancePath,
|
|
676
|
+
schemaPath: "#/oneOf/1/type",
|
|
677
|
+
keyword: "type",
|
|
678
|
+
params: {
|
|
679
|
+
type: "array"
|
|
680
|
+
},
|
|
681
|
+
message: "must be array"
|
|
682
|
+
};
|
|
683
|
+
if (vErrors === null) {
|
|
684
|
+
vErrors = [err2];
|
|
685
|
+
}
|
|
686
|
+
else {
|
|
687
|
+
vErrors.push(err2);
|
|
688
|
+
}
|
|
689
|
+
errors++;
|
|
690
|
+
}
|
|
691
|
+
var _valid0 = _errs5 === errors;
|
|
692
|
+
if (_valid0 && valid0) {
|
|
693
|
+
valid0 = false;
|
|
694
|
+
passing0 = [passing0, 1];
|
|
695
|
+
}
|
|
696
|
+
else {
|
|
697
|
+
if (_valid0) {
|
|
698
|
+
valid0 = true;
|
|
699
|
+
passing0 = 1;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
if (!valid0) {
|
|
703
|
+
const err3 = {
|
|
704
|
+
instancePath,
|
|
705
|
+
schemaPath: "#/oneOf",
|
|
706
|
+
keyword: "oneOf",
|
|
707
|
+
params: {
|
|
708
|
+
passingSchemas: passing0
|
|
709
|
+
},
|
|
710
|
+
message: "must match exactly one schema in oneOf"
|
|
711
|
+
};
|
|
712
|
+
if (vErrors === null) {
|
|
713
|
+
vErrors = [err3];
|
|
714
|
+
}
|
|
715
|
+
else {
|
|
716
|
+
vErrors.push(err3);
|
|
717
|
+
}
|
|
718
|
+
errors++;
|
|
719
|
+
}
|
|
720
|
+
else {
|
|
721
|
+
errors = _errs0;
|
|
722
|
+
if (vErrors !== null) {
|
|
723
|
+
if (_errs0) {
|
|
724
|
+
vErrors.length = _errs0;
|
|
725
|
+
}
|
|
726
|
+
else {
|
|
727
|
+
vErrors = null;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
600
731
|
validate63.errors = vErrors;
|
|
601
732
|
return errors === 0;
|
|
602
733
|
}
|
|
603
|
-
function
|
|
734
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
604
735
|
let vErrors = null;
|
|
605
736
|
let errors = 0;
|
|
606
737
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -665,8 +796,48 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
665
796
|
}
|
|
666
797
|
if (data.width !== undefined) {
|
|
667
798
|
let data1 = data.width;
|
|
668
|
-
if (
|
|
669
|
-
|
|
799
|
+
if ((typeof data1 == "number") && (isFinite(data1))) {
|
|
800
|
+
if (data1 < 1 || isNaN(data1)) {
|
|
801
|
+
const err3 = {
|
|
802
|
+
instancePath: instancePath + "/width",
|
|
803
|
+
schemaPath: "#/properties/width/minimum",
|
|
804
|
+
keyword: "minimum",
|
|
805
|
+
params: {
|
|
806
|
+
comparison: ">=",
|
|
807
|
+
limit: 1
|
|
808
|
+
},
|
|
809
|
+
message: "must be >= 1"
|
|
810
|
+
};
|
|
811
|
+
if (vErrors === null) {
|
|
812
|
+
vErrors = [err3];
|
|
813
|
+
}
|
|
814
|
+
else {
|
|
815
|
+
vErrors.push(err3);
|
|
816
|
+
}
|
|
817
|
+
errors++;
|
|
818
|
+
}
|
|
819
|
+
let res0;
|
|
820
|
+
if ((1 === 0 || (res0 = data1 / 1, res0 !== parseInt(res0)))) {
|
|
821
|
+
const err4 = {
|
|
822
|
+
instancePath: instancePath + "/width",
|
|
823
|
+
schemaPath: "#/properties/width/multipleOf",
|
|
824
|
+
keyword: "multipleOf",
|
|
825
|
+
params: {
|
|
826
|
+
multipleOf: 1
|
|
827
|
+
},
|
|
828
|
+
message: "must be multiple of 1"
|
|
829
|
+
};
|
|
830
|
+
if (vErrors === null) {
|
|
831
|
+
vErrors = [err4];
|
|
832
|
+
}
|
|
833
|
+
else {
|
|
834
|
+
vErrors.push(err4);
|
|
835
|
+
}
|
|
836
|
+
errors++;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
else {
|
|
840
|
+
const err5 = {
|
|
670
841
|
instancePath: instancePath + "/width",
|
|
671
842
|
schemaPath: "#/properties/width/type",
|
|
672
843
|
keyword: "type",
|
|
@@ -676,17 +847,17 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
676
847
|
message: "must be number"
|
|
677
848
|
};
|
|
678
849
|
if (vErrors === null) {
|
|
679
|
-
vErrors = [
|
|
850
|
+
vErrors = [err5];
|
|
680
851
|
}
|
|
681
852
|
else {
|
|
682
|
-
vErrors.push(
|
|
853
|
+
vErrors.push(err5);
|
|
683
854
|
}
|
|
684
855
|
errors++;
|
|
685
856
|
}
|
|
686
857
|
}
|
|
687
858
|
if (data.wrapWord !== undefined) {
|
|
688
859
|
if (typeof data.wrapWord !== "boolean") {
|
|
689
|
-
const
|
|
860
|
+
const err6 = {
|
|
690
861
|
instancePath: instancePath + "/wrapWord",
|
|
691
862
|
schemaPath: "#/properties/wrapWord/type",
|
|
692
863
|
keyword: "type",
|
|
@@ -696,10 +867,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
696
867
|
message: "must be boolean"
|
|
697
868
|
};
|
|
698
869
|
if (vErrors === null) {
|
|
699
|
-
vErrors = [
|
|
870
|
+
vErrors = [err6];
|
|
700
871
|
}
|
|
701
872
|
else {
|
|
702
|
-
vErrors.push(
|
|
873
|
+
vErrors.push(err6);
|
|
703
874
|
}
|
|
704
875
|
errors++;
|
|
705
876
|
}
|
|
@@ -707,7 +878,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
707
878
|
if (data.truncate !== undefined) {
|
|
708
879
|
let data3 = data.truncate;
|
|
709
880
|
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
710
|
-
const
|
|
881
|
+
const err7 = {
|
|
711
882
|
instancePath: instancePath + "/truncate",
|
|
712
883
|
schemaPath: "#/properties/truncate/type",
|
|
713
884
|
keyword: "type",
|
|
@@ -717,10 +888,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
717
888
|
message: "must be number"
|
|
718
889
|
};
|
|
719
890
|
if (vErrors === null) {
|
|
720
|
-
vErrors = [
|
|
891
|
+
vErrors = [err7];
|
|
721
892
|
}
|
|
722
893
|
else {
|
|
723
|
-
vErrors.push(
|
|
894
|
+
vErrors.push(err7);
|
|
724
895
|
}
|
|
725
896
|
errors++;
|
|
726
897
|
}
|
|
@@ -728,7 +899,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
728
899
|
if (data.paddingLeft !== undefined) {
|
|
729
900
|
let data4 = data.paddingLeft;
|
|
730
901
|
if (!((typeof data4 == "number") && (isFinite(data4)))) {
|
|
731
|
-
const
|
|
902
|
+
const err8 = {
|
|
732
903
|
instancePath: instancePath + "/paddingLeft",
|
|
733
904
|
schemaPath: "#/properties/paddingLeft/type",
|
|
734
905
|
keyword: "type",
|
|
@@ -738,10 +909,10 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
738
909
|
message: "must be number"
|
|
739
910
|
};
|
|
740
911
|
if (vErrors === null) {
|
|
741
|
-
vErrors = [
|
|
912
|
+
vErrors = [err8];
|
|
742
913
|
}
|
|
743
914
|
else {
|
|
744
|
-
vErrors.push(
|
|
915
|
+
vErrors.push(err8);
|
|
745
916
|
}
|
|
746
917
|
errors++;
|
|
747
918
|
}
|
|
@@ -749,7 +920,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
749
920
|
if (data.paddingRight !== undefined) {
|
|
750
921
|
let data5 = data.paddingRight;
|
|
751
922
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
752
|
-
const
|
|
923
|
+
const err9 = {
|
|
753
924
|
instancePath: instancePath + "/paddingRight",
|
|
754
925
|
schemaPath: "#/properties/paddingRight/type",
|
|
755
926
|
keyword: "type",
|
|
@@ -759,17 +930,17 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
759
930
|
message: "must be number"
|
|
760
931
|
};
|
|
761
932
|
if (vErrors === null) {
|
|
762
|
-
vErrors = [
|
|
933
|
+
vErrors = [err9];
|
|
763
934
|
}
|
|
764
935
|
else {
|
|
765
|
-
vErrors.push(
|
|
936
|
+
vErrors.push(err9);
|
|
766
937
|
}
|
|
767
938
|
errors++;
|
|
768
939
|
}
|
|
769
940
|
}
|
|
770
941
|
}
|
|
771
942
|
else {
|
|
772
|
-
const
|
|
943
|
+
const err10 = {
|
|
773
944
|
instancePath,
|
|
774
945
|
schemaPath: "#/type",
|
|
775
946
|
keyword: "type",
|
|
@@ -779,14 +950,14 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
779
950
|
message: "must be object"
|
|
780
951
|
};
|
|
781
952
|
if (vErrors === null) {
|
|
782
|
-
vErrors = [
|
|
953
|
+
vErrors = [err10];
|
|
783
954
|
}
|
|
784
955
|
else {
|
|
785
|
-
vErrors.push(
|
|
956
|
+
vErrors.push(err10);
|
|
786
957
|
}
|
|
787
958
|
errors++;
|
|
788
959
|
}
|
|
789
|
-
|
|
960
|
+
validate68.errors = vErrors;
|
|
790
961
|
return errors === 0;
|
|
791
962
|
}
|
|
792
963
|
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -837,13 +1008,13 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
837
1008
|
}
|
|
838
1009
|
}
|
|
839
1010
|
if (data.columnDefault !== undefined) {
|
|
840
|
-
if (!(
|
|
1011
|
+
if (!(validate68(data.columnDefault, {
|
|
841
1012
|
instancePath: instancePath + "/columnDefault",
|
|
842
1013
|
parentData: data,
|
|
843
1014
|
parentDataProperty: "columnDefault",
|
|
844
1015
|
rootData
|
|
845
1016
|
}))) {
|
|
846
|
-
vErrors = vErrors === null ?
|
|
1017
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
847
1018
|
errors = vErrors.length;
|
|
848
1019
|
}
|
|
849
1020
|
}
|
|
@@ -923,7 +1094,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
923
1094
|
validate43.errors = vErrors;
|
|
924
1095
|
return errors === 0;
|
|
925
1096
|
}
|
|
926
|
-
exports["streamConfig.json"] =
|
|
1097
|
+
exports["streamConfig.json"] = validate70;
|
|
927
1098
|
const schema20 = {
|
|
928
1099
|
"$id": "streamConfig.json",
|
|
929
1100
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -947,7 +1118,7 @@ const schema20 = {
|
|
|
947
1118
|
},
|
|
948
1119
|
"additionalProperties": false
|
|
949
1120
|
};
|
|
950
|
-
function
|
|
1121
|
+
function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
951
1122
|
let vErrors = null;
|
|
952
1123
|
let errors = 0;
|
|
953
1124
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1155,18 +1326,22 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1155
1326
|
}
|
|
1156
1327
|
errors++;
|
|
1157
1328
|
}
|
|
1158
|
-
|
|
1329
|
+
validate71.errors = vErrors;
|
|
1159
1330
|
return errors === 0;
|
|
1160
1331
|
}
|
|
1161
|
-
function
|
|
1332
|
+
function validate88(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1162
1333
|
let vErrors = null;
|
|
1163
1334
|
let errors = 0;
|
|
1335
|
+
const _errs0 = errors;
|
|
1336
|
+
let valid0 = false;
|
|
1337
|
+
let passing0 = null;
|
|
1338
|
+
const _errs1 = errors;
|
|
1164
1339
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1165
1340
|
for (const key0 in data) {
|
|
1166
1341
|
if (!(pattern0.test(key0))) {
|
|
1167
1342
|
const err0 = {
|
|
1168
1343
|
instancePath,
|
|
1169
|
-
schemaPath: "#/additionalProperties",
|
|
1344
|
+
schemaPath: "#/oneOf/0/additionalProperties",
|
|
1170
1345
|
keyword: "additionalProperties",
|
|
1171
1346
|
params: {
|
|
1172
1347
|
additionalProperty: key0
|
|
@@ -1199,7 +1374,7 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1199
1374
|
else {
|
|
1200
1375
|
const err1 = {
|
|
1201
1376
|
instancePath,
|
|
1202
|
-
schemaPath: "#/type",
|
|
1377
|
+
schemaPath: "#/oneOf/0/type",
|
|
1203
1378
|
keyword: "type",
|
|
1204
1379
|
params: {
|
|
1205
1380
|
type: "object"
|
|
@@ -1214,10 +1389,88 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1214
1389
|
}
|
|
1215
1390
|
errors++;
|
|
1216
1391
|
}
|
|
1217
|
-
|
|
1392
|
+
var _valid0 = _errs1 === errors;
|
|
1393
|
+
if (_valid0) {
|
|
1394
|
+
valid0 = true;
|
|
1395
|
+
passing0 = 0;
|
|
1396
|
+
}
|
|
1397
|
+
const _errs5 = errors;
|
|
1398
|
+
if (Array.isArray(data)) {
|
|
1399
|
+
const len0 = data.length;
|
|
1400
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
1401
|
+
if (!(validate64(data[i0], {
|
|
1402
|
+
instancePath: instancePath + "/" + i0,
|
|
1403
|
+
parentData: data,
|
|
1404
|
+
parentDataProperty: i0,
|
|
1405
|
+
rootData
|
|
1406
|
+
}))) {
|
|
1407
|
+
vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
|
|
1408
|
+
errors = vErrors.length;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
else {
|
|
1413
|
+
const err2 = {
|
|
1414
|
+
instancePath,
|
|
1415
|
+
schemaPath: "#/oneOf/1/type",
|
|
1416
|
+
keyword: "type",
|
|
1417
|
+
params: {
|
|
1418
|
+
type: "array"
|
|
1419
|
+
},
|
|
1420
|
+
message: "must be array"
|
|
1421
|
+
};
|
|
1422
|
+
if (vErrors === null) {
|
|
1423
|
+
vErrors = [err2];
|
|
1424
|
+
}
|
|
1425
|
+
else {
|
|
1426
|
+
vErrors.push(err2);
|
|
1427
|
+
}
|
|
1428
|
+
errors++;
|
|
1429
|
+
}
|
|
1430
|
+
var _valid0 = _errs5 === errors;
|
|
1431
|
+
if (_valid0 && valid0) {
|
|
1432
|
+
valid0 = false;
|
|
1433
|
+
passing0 = [passing0, 1];
|
|
1434
|
+
}
|
|
1435
|
+
else {
|
|
1436
|
+
if (_valid0) {
|
|
1437
|
+
valid0 = true;
|
|
1438
|
+
passing0 = 1;
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
if (!valid0) {
|
|
1442
|
+
const err3 = {
|
|
1443
|
+
instancePath,
|
|
1444
|
+
schemaPath: "#/oneOf",
|
|
1445
|
+
keyword: "oneOf",
|
|
1446
|
+
params: {
|
|
1447
|
+
passingSchemas: passing0
|
|
1448
|
+
},
|
|
1449
|
+
message: "must match exactly one schema in oneOf"
|
|
1450
|
+
};
|
|
1451
|
+
if (vErrors === null) {
|
|
1452
|
+
vErrors = [err3];
|
|
1453
|
+
}
|
|
1454
|
+
else {
|
|
1455
|
+
vErrors.push(err3);
|
|
1456
|
+
}
|
|
1457
|
+
errors++;
|
|
1458
|
+
}
|
|
1459
|
+
else {
|
|
1460
|
+
errors = _errs0;
|
|
1461
|
+
if (vErrors !== null) {
|
|
1462
|
+
if (_errs0) {
|
|
1463
|
+
vErrors.length = _errs0;
|
|
1464
|
+
}
|
|
1465
|
+
else {
|
|
1466
|
+
vErrors = null;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
validate88.errors = vErrors;
|
|
1218
1471
|
return errors === 0;
|
|
1219
1472
|
}
|
|
1220
|
-
function
|
|
1473
|
+
function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1221
1474
|
let vErrors = null;
|
|
1222
1475
|
let errors = 0;
|
|
1223
1476
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1282,8 +1535,48 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1282
1535
|
}
|
|
1283
1536
|
if (data.width !== undefined) {
|
|
1284
1537
|
let data1 = data.width;
|
|
1285
|
-
if (
|
|
1286
|
-
|
|
1538
|
+
if ((typeof data1 == "number") && (isFinite(data1))) {
|
|
1539
|
+
if (data1 < 1 || isNaN(data1)) {
|
|
1540
|
+
const err3 = {
|
|
1541
|
+
instancePath: instancePath + "/width",
|
|
1542
|
+
schemaPath: "#/properties/width/minimum",
|
|
1543
|
+
keyword: "minimum",
|
|
1544
|
+
params: {
|
|
1545
|
+
comparison: ">=",
|
|
1546
|
+
limit: 1
|
|
1547
|
+
},
|
|
1548
|
+
message: "must be >= 1"
|
|
1549
|
+
};
|
|
1550
|
+
if (vErrors === null) {
|
|
1551
|
+
vErrors = [err3];
|
|
1552
|
+
}
|
|
1553
|
+
else {
|
|
1554
|
+
vErrors.push(err3);
|
|
1555
|
+
}
|
|
1556
|
+
errors++;
|
|
1557
|
+
}
|
|
1558
|
+
let res0;
|
|
1559
|
+
if ((1 === 0 || (res0 = data1 / 1, res0 !== parseInt(res0)))) {
|
|
1560
|
+
const err4 = {
|
|
1561
|
+
instancePath: instancePath + "/width",
|
|
1562
|
+
schemaPath: "#/properties/width/multipleOf",
|
|
1563
|
+
keyword: "multipleOf",
|
|
1564
|
+
params: {
|
|
1565
|
+
multipleOf: 1
|
|
1566
|
+
},
|
|
1567
|
+
message: "must be multiple of 1"
|
|
1568
|
+
};
|
|
1569
|
+
if (vErrors === null) {
|
|
1570
|
+
vErrors = [err4];
|
|
1571
|
+
}
|
|
1572
|
+
else {
|
|
1573
|
+
vErrors.push(err4);
|
|
1574
|
+
}
|
|
1575
|
+
errors++;
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
else {
|
|
1579
|
+
const err5 = {
|
|
1287
1580
|
instancePath: instancePath + "/width",
|
|
1288
1581
|
schemaPath: "#/properties/width/type",
|
|
1289
1582
|
keyword: "type",
|
|
@@ -1293,17 +1586,17 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1293
1586
|
message: "must be number"
|
|
1294
1587
|
};
|
|
1295
1588
|
if (vErrors === null) {
|
|
1296
|
-
vErrors = [
|
|
1589
|
+
vErrors = [err5];
|
|
1297
1590
|
}
|
|
1298
1591
|
else {
|
|
1299
|
-
vErrors.push(
|
|
1592
|
+
vErrors.push(err5);
|
|
1300
1593
|
}
|
|
1301
1594
|
errors++;
|
|
1302
1595
|
}
|
|
1303
1596
|
}
|
|
1304
1597
|
if (data.wrapWord !== undefined) {
|
|
1305
1598
|
if (typeof data.wrapWord !== "boolean") {
|
|
1306
|
-
const
|
|
1599
|
+
const err6 = {
|
|
1307
1600
|
instancePath: instancePath + "/wrapWord",
|
|
1308
1601
|
schemaPath: "#/properties/wrapWord/type",
|
|
1309
1602
|
keyword: "type",
|
|
@@ -1313,10 +1606,10 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1313
1606
|
message: "must be boolean"
|
|
1314
1607
|
};
|
|
1315
1608
|
if (vErrors === null) {
|
|
1316
|
-
vErrors = [
|
|
1609
|
+
vErrors = [err6];
|
|
1317
1610
|
}
|
|
1318
1611
|
else {
|
|
1319
|
-
vErrors.push(
|
|
1612
|
+
vErrors.push(err6);
|
|
1320
1613
|
}
|
|
1321
1614
|
errors++;
|
|
1322
1615
|
}
|
|
@@ -1324,7 +1617,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1324
1617
|
if (data.truncate !== undefined) {
|
|
1325
1618
|
let data3 = data.truncate;
|
|
1326
1619
|
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
1327
|
-
const
|
|
1620
|
+
const err7 = {
|
|
1328
1621
|
instancePath: instancePath + "/truncate",
|
|
1329
1622
|
schemaPath: "#/properties/truncate/type",
|
|
1330
1623
|
keyword: "type",
|
|
@@ -1334,10 +1627,10 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1334
1627
|
message: "must be number"
|
|
1335
1628
|
};
|
|
1336
1629
|
if (vErrors === null) {
|
|
1337
|
-
vErrors = [
|
|
1630
|
+
vErrors = [err7];
|
|
1338
1631
|
}
|
|
1339
1632
|
else {
|
|
1340
|
-
vErrors.push(
|
|
1633
|
+
vErrors.push(err7);
|
|
1341
1634
|
}
|
|
1342
1635
|
errors++;
|
|
1343
1636
|
}
|
|
@@ -1345,7 +1638,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1345
1638
|
if (data.paddingLeft !== undefined) {
|
|
1346
1639
|
let data4 = data.paddingLeft;
|
|
1347
1640
|
if (!((typeof data4 == "number") && (isFinite(data4)))) {
|
|
1348
|
-
const
|
|
1641
|
+
const err8 = {
|
|
1349
1642
|
instancePath: instancePath + "/paddingLeft",
|
|
1350
1643
|
schemaPath: "#/properties/paddingLeft/type",
|
|
1351
1644
|
keyword: "type",
|
|
@@ -1355,10 +1648,10 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1355
1648
|
message: "must be number"
|
|
1356
1649
|
};
|
|
1357
1650
|
if (vErrors === null) {
|
|
1358
|
-
vErrors = [
|
|
1651
|
+
vErrors = [err8];
|
|
1359
1652
|
}
|
|
1360
1653
|
else {
|
|
1361
|
-
vErrors.push(
|
|
1654
|
+
vErrors.push(err8);
|
|
1362
1655
|
}
|
|
1363
1656
|
errors++;
|
|
1364
1657
|
}
|
|
@@ -1366,7 +1659,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1366
1659
|
if (data.paddingRight !== undefined) {
|
|
1367
1660
|
let data5 = data.paddingRight;
|
|
1368
1661
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
1369
|
-
const
|
|
1662
|
+
const err9 = {
|
|
1370
1663
|
instancePath: instancePath + "/paddingRight",
|
|
1371
1664
|
schemaPath: "#/properties/paddingRight/type",
|
|
1372
1665
|
keyword: "type",
|
|
@@ -1376,17 +1669,17 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1376
1669
|
message: "must be number"
|
|
1377
1670
|
};
|
|
1378
1671
|
if (vErrors === null) {
|
|
1379
|
-
vErrors = [
|
|
1672
|
+
vErrors = [err9];
|
|
1380
1673
|
}
|
|
1381
1674
|
else {
|
|
1382
|
-
vErrors.push(
|
|
1675
|
+
vErrors.push(err9);
|
|
1383
1676
|
}
|
|
1384
1677
|
errors++;
|
|
1385
1678
|
}
|
|
1386
1679
|
}
|
|
1387
1680
|
}
|
|
1388
1681
|
else {
|
|
1389
|
-
const
|
|
1682
|
+
const err10 = {
|
|
1390
1683
|
instancePath,
|
|
1391
1684
|
schemaPath: "#/type",
|
|
1392
1685
|
keyword: "type",
|
|
@@ -1396,17 +1689,17 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1396
1689
|
message: "must be object"
|
|
1397
1690
|
};
|
|
1398
1691
|
if (vErrors === null) {
|
|
1399
|
-
vErrors = [
|
|
1692
|
+
vErrors = [err10];
|
|
1400
1693
|
}
|
|
1401
1694
|
else {
|
|
1402
|
-
vErrors.push(
|
|
1695
|
+
vErrors.push(err10);
|
|
1403
1696
|
}
|
|
1404
1697
|
errors++;
|
|
1405
1698
|
}
|
|
1406
|
-
|
|
1699
|
+
validate92.errors = vErrors;
|
|
1407
1700
|
return errors === 0;
|
|
1408
1701
|
}
|
|
1409
|
-
function
|
|
1702
|
+
function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1410
1703
|
/*# sourceURL="streamConfig.json" */ ;
|
|
1411
1704
|
let vErrors = null;
|
|
1412
1705
|
let errors = 0;
|
|
@@ -1432,35 +1725,35 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1432
1725
|
}
|
|
1433
1726
|
}
|
|
1434
1727
|
if (data.border !== undefined) {
|
|
1435
|
-
if (!(
|
|
1728
|
+
if (!(validate71(data.border, {
|
|
1436
1729
|
instancePath: instancePath + "/border",
|
|
1437
1730
|
parentData: data,
|
|
1438
1731
|
parentDataProperty: "border",
|
|
1439
1732
|
rootData
|
|
1440
1733
|
}))) {
|
|
1441
|
-
vErrors = vErrors === null ?
|
|
1734
|
+
vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
|
|
1442
1735
|
errors = vErrors.length;
|
|
1443
1736
|
}
|
|
1444
1737
|
}
|
|
1445
1738
|
if (data.columns !== undefined) {
|
|
1446
|
-
if (!(
|
|
1739
|
+
if (!(validate88(data.columns, {
|
|
1447
1740
|
instancePath: instancePath + "/columns",
|
|
1448
1741
|
parentData: data,
|
|
1449
1742
|
parentDataProperty: "columns",
|
|
1450
1743
|
rootData
|
|
1451
1744
|
}))) {
|
|
1452
|
-
vErrors = vErrors === null ?
|
|
1745
|
+
vErrors = vErrors === null ? validate88.errors : vErrors.concat(validate88.errors);
|
|
1453
1746
|
errors = vErrors.length;
|
|
1454
1747
|
}
|
|
1455
1748
|
}
|
|
1456
1749
|
if (data.columnDefault !== undefined) {
|
|
1457
|
-
if (!(
|
|
1750
|
+
if (!(validate92(data.columnDefault, {
|
|
1458
1751
|
instancePath: instancePath + "/columnDefault",
|
|
1459
1752
|
parentData: data,
|
|
1460
1753
|
parentDataProperty: "columnDefault",
|
|
1461
1754
|
rootData
|
|
1462
1755
|
}))) {
|
|
1463
|
-
vErrors = vErrors === null ?
|
|
1756
|
+
vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors);
|
|
1464
1757
|
errors = vErrors.length;
|
|
1465
1758
|
}
|
|
1466
1759
|
}
|
|
@@ -1522,6 +1815,6 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1522
1815
|
}
|
|
1523
1816
|
errors++;
|
|
1524
1817
|
}
|
|
1525
|
-
|
|
1818
|
+
validate70.errors = vErrors;
|
|
1526
1819
|
return errors === 0;
|
|
1527
1820
|
}
|
package/package.json
CHANGED