@ne1410s/codl 0.0.40 → 0.1.1
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/ne14_codl.cjs.min.js +23 -25
- package/dist/ne14_codl.esm.min.js +23 -23
- package/dist/ne14_codl.umd.min.js +23 -25
- package/package.json +13 -13
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
require('reflect-metadata');
|
|
6
4
|
|
|
7
5
|
/**
|
|
@@ -381,11 +379,11 @@ var __assign = function() {
|
|
|
381
379
|
var RequiredValidator = function (trg, key, proto) {
|
|
382
380
|
var value = trg[key];
|
|
383
381
|
var retVal = { key: key, value: value, valid: true };
|
|
384
|
-
if (!isProvided(value) || value
|
|
382
|
+
if (!isProvided(value) || Number.isNaN(value)) {
|
|
385
383
|
var required = Reflect.getMetadata(ValidationKey.REQUIRED, proto, key) === true;
|
|
386
384
|
if (required) {
|
|
387
|
-
var
|
|
388
|
-
retVal.message = "".concat(
|
|
385
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
386
|
+
retVal.message = "".concat(name, " is required");
|
|
389
387
|
}
|
|
390
388
|
}
|
|
391
389
|
retVal.valid = !retVal.message;
|
|
@@ -402,8 +400,8 @@ var RegexValidator = function (trg, key, proto) {
|
|
|
402
400
|
var tests = isArray ? value : [value];
|
|
403
401
|
var allOk = tests.every(function (test) { return regex_1.test("".concat(test)); });
|
|
404
402
|
if (!allOk) {
|
|
405
|
-
var
|
|
406
|
-
retVal.message = isArray ? "".concat(
|
|
403
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
404
|
+
retVal.message = isArray ? "".concat(name, " contains an invalid item") : "".concat(name, " is invalid");
|
|
407
405
|
}
|
|
408
406
|
}
|
|
409
407
|
retVal.valid = !retVal.message;
|
|
@@ -492,7 +490,7 @@ var RangeValidator = function (trg, key, proto) {
|
|
|
492
490
|
var tests = isArray ? value : [value];
|
|
493
491
|
var allOk = tests.every(function (test) { return (!hasMin_1 || test >= min_1) && (!hasMax_1 || test <= max_1); });
|
|
494
492
|
if (!allOk) {
|
|
495
|
-
var
|
|
493
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
496
494
|
var fmtMin = hasMin_1 ? ReflectMetadata.getFormatted(proto, key, min_1) : min_1;
|
|
497
495
|
var fmtMax = hasMax_1 ? ReflectMetadata.getFormatted(proto, key, max_1) : max_1;
|
|
498
496
|
var isDate = ReflectType.getType(proto, key) === 'date';
|
|
@@ -502,10 +500,10 @@ var RangeValidator = function (trg, key, proto) {
|
|
|
502
500
|
var boundImperative = isArray ? 'have a value' : 'be';
|
|
503
501
|
retVal.message =
|
|
504
502
|
hasMin_1 && hasMax_1
|
|
505
|
-
? "".concat(
|
|
503
|
+
? "".concat(name, " must ").concat(rangeImperative, " between ").concat(fmtMin, " and ").concat(fmtMax)
|
|
506
504
|
: hasMin_1
|
|
507
|
-
? "".concat(
|
|
508
|
-
: "".concat(
|
|
505
|
+
? "".concat(name, " cannot ").concat(boundImperative, " ").concat(compareLT, " ").concat(fmtMin)
|
|
506
|
+
: "".concat(name, " cannot ").concat(boundImperative, " ").concat(compareGT, " ").concat(fmtMax);
|
|
509
507
|
}
|
|
510
508
|
retVal.valid = !retVal.message;
|
|
511
509
|
}
|
|
@@ -524,15 +522,15 @@ var LengthRangeValidator = function (trg, key, proto) {
|
|
|
524
522
|
var minOk = !hasMinLen || value.length >= minLength;
|
|
525
523
|
var maxOk = !hasMaxLen || value.length <= maxLength;
|
|
526
524
|
if (!minOk || !maxOk) {
|
|
527
|
-
var
|
|
525
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
528
526
|
var noun = typeof value === 'string' ? 'character' : 'item';
|
|
529
527
|
var pluraliser = value.length === 1 ? '' : 's';
|
|
530
528
|
retVal.message =
|
|
531
529
|
hasMinLen && hasMaxLen
|
|
532
|
-
? "".concat(
|
|
530
|
+
? "".concat(name, " must contain between ").concat(minLength, " and ").concat(maxLength, " ").concat(noun, "s")
|
|
533
531
|
: hasMinLen
|
|
534
|
-
? "".concat(
|
|
535
|
-
: "".concat(
|
|
532
|
+
? "".concat(name, " cannot contain fewer than ").concat(minLength, " ").concat(noun).concat(pluraliser)
|
|
533
|
+
: "".concat(name, " cannot contain more than ").concat(maxLength, " ").concat(noun).concat(pluraliser);
|
|
536
534
|
}
|
|
537
535
|
retVal.valid = !retVal.message;
|
|
538
536
|
}
|
|
@@ -550,10 +548,10 @@ var TypeValidator = function (trg, key, proto) {
|
|
|
550
548
|
var tests = isArray ? value : [value];
|
|
551
549
|
var allOk = tests.every(function (test) { return parser_1(test) != null; });
|
|
552
550
|
if (!allOk) {
|
|
553
|
-
var
|
|
551
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
554
552
|
retVal.message = isArray
|
|
555
|
-
? "".concat(
|
|
556
|
-
: "".concat(
|
|
553
|
+
? "".concat(name, " contains an invalid ").concat(type)
|
|
554
|
+
: "".concat(name, " is not a valid ").concat(type);
|
|
557
555
|
}
|
|
558
556
|
}
|
|
559
557
|
retVal.valid = !retVal.message;
|
|
@@ -570,8 +568,8 @@ var CustValidator = function (trg, key, proto) {
|
|
|
570
568
|
if (hasCustomErrorMessage)
|
|
571
569
|
retVal.message = result;
|
|
572
570
|
else if (result === false) {
|
|
573
|
-
var
|
|
574
|
-
retVal.message = "".concat(
|
|
571
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
572
|
+
retVal.message = "".concat(name, " is invalid");
|
|
575
573
|
}
|
|
576
574
|
retVal.valid = !retVal.message;
|
|
577
575
|
return retVal;
|
|
@@ -584,8 +582,8 @@ var ForbiddenValidator = function (trg, key, proto) {
|
|
|
584
582
|
if (isProvided(value)) {
|
|
585
583
|
var forbidden = Reflect.getMetadata(ValidationKey.FORBIDDEN, proto, key) === true;
|
|
586
584
|
if (forbidden) {
|
|
587
|
-
var
|
|
588
|
-
retVal.message = "".concat(
|
|
585
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
586
|
+
retVal.message = "".concat(name, " is forbidden");
|
|
589
587
|
}
|
|
590
588
|
}
|
|
591
589
|
retVal.valid = !retVal.message;
|
|
@@ -602,10 +600,10 @@ var OptionsValidator = function (trg, key, proto) {
|
|
|
602
600
|
var tests = isArray ? value : [value];
|
|
603
601
|
var allOk = tests.every(function (test) { return options_1.indexOf(test) !== -1; });
|
|
604
602
|
if (!allOk) {
|
|
605
|
-
var
|
|
603
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
606
604
|
retVal.message = isArray
|
|
607
|
-
? "".concat(
|
|
608
|
-
: "".concat(
|
|
605
|
+
? "".concat(name, " contains an invalid option")
|
|
606
|
+
: "".concat(name, " is an invalid option");
|
|
609
607
|
}
|
|
610
608
|
}
|
|
611
609
|
retVal.valid = !retVal.message;
|
|
@@ -377,11 +377,11 @@ var __assign = function() {
|
|
|
377
377
|
var RequiredValidator = function (trg, key, proto) {
|
|
378
378
|
var value = trg[key];
|
|
379
379
|
var retVal = { key: key, value: value, valid: true };
|
|
380
|
-
if (!isProvided(value) || value
|
|
380
|
+
if (!isProvided(value) || Number.isNaN(value)) {
|
|
381
381
|
var required = Reflect.getMetadata(ValidationKey.REQUIRED, proto, key) === true;
|
|
382
382
|
if (required) {
|
|
383
|
-
var
|
|
384
|
-
retVal.message = "".concat(
|
|
383
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
384
|
+
retVal.message = "".concat(name, " is required");
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
retVal.valid = !retVal.message;
|
|
@@ -398,8 +398,8 @@ var RegexValidator = function (trg, key, proto) {
|
|
|
398
398
|
var tests = isArray ? value : [value];
|
|
399
399
|
var allOk = tests.every(function (test) { return regex_1.test("".concat(test)); });
|
|
400
400
|
if (!allOk) {
|
|
401
|
-
var
|
|
402
|
-
retVal.message = isArray ? "".concat(
|
|
401
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
402
|
+
retVal.message = isArray ? "".concat(name, " contains an invalid item") : "".concat(name, " is invalid");
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
retVal.valid = !retVal.message;
|
|
@@ -488,7 +488,7 @@ var RangeValidator = function (trg, key, proto) {
|
|
|
488
488
|
var tests = isArray ? value : [value];
|
|
489
489
|
var allOk = tests.every(function (test) { return (!hasMin_1 || test >= min_1) && (!hasMax_1 || test <= max_1); });
|
|
490
490
|
if (!allOk) {
|
|
491
|
-
var
|
|
491
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
492
492
|
var fmtMin = hasMin_1 ? ReflectMetadata.getFormatted(proto, key, min_1) : min_1;
|
|
493
493
|
var fmtMax = hasMax_1 ? ReflectMetadata.getFormatted(proto, key, max_1) : max_1;
|
|
494
494
|
var isDate = ReflectType.getType(proto, key) === 'date';
|
|
@@ -498,10 +498,10 @@ var RangeValidator = function (trg, key, proto) {
|
|
|
498
498
|
var boundImperative = isArray ? 'have a value' : 'be';
|
|
499
499
|
retVal.message =
|
|
500
500
|
hasMin_1 && hasMax_1
|
|
501
|
-
? "".concat(
|
|
501
|
+
? "".concat(name, " must ").concat(rangeImperative, " between ").concat(fmtMin, " and ").concat(fmtMax)
|
|
502
502
|
: hasMin_1
|
|
503
|
-
? "".concat(
|
|
504
|
-
: "".concat(
|
|
503
|
+
? "".concat(name, " cannot ").concat(boundImperative, " ").concat(compareLT, " ").concat(fmtMin)
|
|
504
|
+
: "".concat(name, " cannot ").concat(boundImperative, " ").concat(compareGT, " ").concat(fmtMax);
|
|
505
505
|
}
|
|
506
506
|
retVal.valid = !retVal.message;
|
|
507
507
|
}
|
|
@@ -520,15 +520,15 @@ var LengthRangeValidator = function (trg, key, proto) {
|
|
|
520
520
|
var minOk = !hasMinLen || value.length >= minLength;
|
|
521
521
|
var maxOk = !hasMaxLen || value.length <= maxLength;
|
|
522
522
|
if (!minOk || !maxOk) {
|
|
523
|
-
var
|
|
523
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
524
524
|
var noun = typeof value === 'string' ? 'character' : 'item';
|
|
525
525
|
var pluraliser = value.length === 1 ? '' : 's';
|
|
526
526
|
retVal.message =
|
|
527
527
|
hasMinLen && hasMaxLen
|
|
528
|
-
? "".concat(
|
|
528
|
+
? "".concat(name, " must contain between ").concat(minLength, " and ").concat(maxLength, " ").concat(noun, "s")
|
|
529
529
|
: hasMinLen
|
|
530
|
-
? "".concat(
|
|
531
|
-
: "".concat(
|
|
530
|
+
? "".concat(name, " cannot contain fewer than ").concat(minLength, " ").concat(noun).concat(pluraliser)
|
|
531
|
+
: "".concat(name, " cannot contain more than ").concat(maxLength, " ").concat(noun).concat(pluraliser);
|
|
532
532
|
}
|
|
533
533
|
retVal.valid = !retVal.message;
|
|
534
534
|
}
|
|
@@ -546,10 +546,10 @@ var TypeValidator = function (trg, key, proto) {
|
|
|
546
546
|
var tests = isArray ? value : [value];
|
|
547
547
|
var allOk = tests.every(function (test) { return parser_1(test) != null; });
|
|
548
548
|
if (!allOk) {
|
|
549
|
-
var
|
|
549
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
550
550
|
retVal.message = isArray
|
|
551
|
-
? "".concat(
|
|
552
|
-
: "".concat(
|
|
551
|
+
? "".concat(name, " contains an invalid ").concat(type)
|
|
552
|
+
: "".concat(name, " is not a valid ").concat(type);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
retVal.valid = !retVal.message;
|
|
@@ -566,8 +566,8 @@ var CustValidator = function (trg, key, proto) {
|
|
|
566
566
|
if (hasCustomErrorMessage)
|
|
567
567
|
retVal.message = result;
|
|
568
568
|
else if (result === false) {
|
|
569
|
-
var
|
|
570
|
-
retVal.message = "".concat(
|
|
569
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
570
|
+
retVal.message = "".concat(name, " is invalid");
|
|
571
571
|
}
|
|
572
572
|
retVal.valid = !retVal.message;
|
|
573
573
|
return retVal;
|
|
@@ -580,8 +580,8 @@ var ForbiddenValidator = function (trg, key, proto) {
|
|
|
580
580
|
if (isProvided(value)) {
|
|
581
581
|
var forbidden = Reflect.getMetadata(ValidationKey.FORBIDDEN, proto, key) === true;
|
|
582
582
|
if (forbidden) {
|
|
583
|
-
var
|
|
584
|
-
retVal.message = "".concat(
|
|
583
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
584
|
+
retVal.message = "".concat(name, " is forbidden");
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
retVal.valid = !retVal.message;
|
|
@@ -598,10 +598,10 @@ var OptionsValidator = function (trg, key, proto) {
|
|
|
598
598
|
var tests = isArray ? value : [value];
|
|
599
599
|
var allOk = tests.every(function (test) { return options_1.indexOf(test) !== -1; });
|
|
600
600
|
if (!allOk) {
|
|
601
|
-
var
|
|
601
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
602
602
|
retVal.message = isArray
|
|
603
|
-
? "".concat(
|
|
604
|
-
: "".concat(
|
|
603
|
+
? "".concat(name, " contains an invalid option")
|
|
604
|
+
: "".concat(name, " is an invalid option");
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
retVal.valid = !retVal.message;
|
|
@@ -381,11 +381,11 @@
|
|
|
381
381
|
var RequiredValidator = function (trg, key, proto) {
|
|
382
382
|
var value = trg[key];
|
|
383
383
|
var retVal = { key: key, value: value, valid: true };
|
|
384
|
-
if (!isProvided(value) || value
|
|
384
|
+
if (!isProvided(value) || Number.isNaN(value)) {
|
|
385
385
|
var required = Reflect.getMetadata(ValidationKey.REQUIRED, proto, key) === true;
|
|
386
386
|
if (required) {
|
|
387
|
-
var
|
|
388
|
-
retVal.message = "".concat(
|
|
387
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
388
|
+
retVal.message = "".concat(name, " is required");
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
retVal.valid = !retVal.message;
|
|
@@ -402,8 +402,8 @@
|
|
|
402
402
|
var tests = isArray ? value : [value];
|
|
403
403
|
var allOk = tests.every(function (test) { return regex_1.test("".concat(test)); });
|
|
404
404
|
if (!allOk) {
|
|
405
|
-
var
|
|
406
|
-
retVal.message = isArray ? "".concat(
|
|
405
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
406
|
+
retVal.message = isArray ? "".concat(name, " contains an invalid item") : "".concat(name, " is invalid");
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
retVal.valid = !retVal.message;
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
var tests = isArray ? value : [value];
|
|
493
493
|
var allOk = tests.every(function (test) { return (!hasMin_1 || test >= min_1) && (!hasMax_1 || test <= max_1); });
|
|
494
494
|
if (!allOk) {
|
|
495
|
-
var
|
|
495
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
496
496
|
var fmtMin = hasMin_1 ? ReflectMetadata.getFormatted(proto, key, min_1) : min_1;
|
|
497
497
|
var fmtMax = hasMax_1 ? ReflectMetadata.getFormatted(proto, key, max_1) : max_1;
|
|
498
498
|
var isDate = ReflectType.getType(proto, key) === 'date';
|
|
@@ -502,10 +502,10 @@
|
|
|
502
502
|
var boundImperative = isArray ? 'have a value' : 'be';
|
|
503
503
|
retVal.message =
|
|
504
504
|
hasMin_1 && hasMax_1
|
|
505
|
-
? "".concat(
|
|
505
|
+
? "".concat(name, " must ").concat(rangeImperative, " between ").concat(fmtMin, " and ").concat(fmtMax)
|
|
506
506
|
: hasMin_1
|
|
507
|
-
? "".concat(
|
|
508
|
-
: "".concat(
|
|
507
|
+
? "".concat(name, " cannot ").concat(boundImperative, " ").concat(compareLT, " ").concat(fmtMin)
|
|
508
|
+
: "".concat(name, " cannot ").concat(boundImperative, " ").concat(compareGT, " ").concat(fmtMax);
|
|
509
509
|
}
|
|
510
510
|
retVal.valid = !retVal.message;
|
|
511
511
|
}
|
|
@@ -524,15 +524,15 @@
|
|
|
524
524
|
var minOk = !hasMinLen || value.length >= minLength;
|
|
525
525
|
var maxOk = !hasMaxLen || value.length <= maxLength;
|
|
526
526
|
if (!minOk || !maxOk) {
|
|
527
|
-
var
|
|
527
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
528
528
|
var noun = typeof value === 'string' ? 'character' : 'item';
|
|
529
529
|
var pluraliser = value.length === 1 ? '' : 's';
|
|
530
530
|
retVal.message =
|
|
531
531
|
hasMinLen && hasMaxLen
|
|
532
|
-
? "".concat(
|
|
532
|
+
? "".concat(name, " must contain between ").concat(minLength, " and ").concat(maxLength, " ").concat(noun, "s")
|
|
533
533
|
: hasMinLen
|
|
534
|
-
? "".concat(
|
|
535
|
-
: "".concat(
|
|
534
|
+
? "".concat(name, " cannot contain fewer than ").concat(minLength, " ").concat(noun).concat(pluraliser)
|
|
535
|
+
: "".concat(name, " cannot contain more than ").concat(maxLength, " ").concat(noun).concat(pluraliser);
|
|
536
536
|
}
|
|
537
537
|
retVal.valid = !retVal.message;
|
|
538
538
|
}
|
|
@@ -550,10 +550,10 @@
|
|
|
550
550
|
var tests = isArray ? value : [value];
|
|
551
551
|
var allOk = tests.every(function (test) { return parser_1(test) != null; });
|
|
552
552
|
if (!allOk) {
|
|
553
|
-
var
|
|
553
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
554
554
|
retVal.message = isArray
|
|
555
|
-
? "".concat(
|
|
556
|
-
: "".concat(
|
|
555
|
+
? "".concat(name, " contains an invalid ").concat(type)
|
|
556
|
+
: "".concat(name, " is not a valid ").concat(type);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
retVal.valid = !retVal.message;
|
|
@@ -570,8 +570,8 @@
|
|
|
570
570
|
if (hasCustomErrorMessage)
|
|
571
571
|
retVal.message = result;
|
|
572
572
|
else if (result === false) {
|
|
573
|
-
var
|
|
574
|
-
retVal.message = "".concat(
|
|
573
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
574
|
+
retVal.message = "".concat(name, " is invalid");
|
|
575
575
|
}
|
|
576
576
|
retVal.valid = !retVal.message;
|
|
577
577
|
return retVal;
|
|
@@ -584,8 +584,8 @@
|
|
|
584
584
|
if (isProvided(value)) {
|
|
585
585
|
var forbidden = Reflect.getMetadata(ValidationKey.FORBIDDEN, proto, key) === true;
|
|
586
586
|
if (forbidden) {
|
|
587
|
-
var
|
|
588
|
-
retVal.message = "".concat(
|
|
587
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
588
|
+
retVal.message = "".concat(name, " is forbidden");
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
retVal.valid = !retVal.message;
|
|
@@ -602,10 +602,10 @@
|
|
|
602
602
|
var tests = isArray ? value : [value];
|
|
603
603
|
var allOk = tests.every(function (test) { return options_1.indexOf(test) !== -1; });
|
|
604
604
|
if (!allOk) {
|
|
605
|
-
var
|
|
605
|
+
var name = ReflectMetadata.getDisplayName(proto, key);
|
|
606
606
|
retVal.message = isArray
|
|
607
|
-
? "".concat(
|
|
608
|
-
: "".concat(
|
|
607
|
+
? "".concat(name, " contains an invalid option")
|
|
608
|
+
: "".concat(name, " is an invalid option");
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
retVal.valid = !retVal.message;
|
|
@@ -801,6 +801,4 @@
|
|
|
801
801
|
exports.Validation = Validation;
|
|
802
802
|
exports.isProvided = isProvided;
|
|
803
803
|
|
|
804
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
805
|
-
|
|
806
804
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ne1410s/codl",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Indulge your apps with codl: a component model library",
|
|
5
5
|
"main": "dist/ne14_codl.cjs.min.js",
|
|
6
6
|
"module": "dist/ne14_codl.esm.min.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"is-pretty": "npx prettier --list-different . --ignore-path .gitignore",
|
|
16
16
|
"prettify": "npx prettier --write . --ignore-path .gitignore",
|
|
17
17
|
"build": "npm run clean && npx rollup -c",
|
|
18
|
-
"test": "npx rollup -c rollup.test.config.
|
|
18
|
+
"test": "npx rollup -c rollup.test.config.mjs && mocha --exit",
|
|
19
19
|
"publish-local": "npm run is-pretty && npm run test && npm run build && npm pack",
|
|
20
20
|
"publish-patch": "npm run is-pretty && npm run test && npm run build && npm version patch && npm publish --access public",
|
|
21
21
|
"publish-minor": "npm run is-pretty && npm run test && npm run build && npm version minor && npm publish --access public",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "git+https://github.com/
|
|
26
|
+
"url": "git+https://github.com/ne14-fed/core.codl.git"
|
|
27
27
|
},
|
|
28
28
|
"keywords": [
|
|
29
29
|
"Codl",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"author": "ne1410s <pgj646@gmail.com> (http://ne1410s.co.uk)",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"bugs": {
|
|
36
|
-
"url": "https://github.com/
|
|
36
|
+
"url": "https://github.com/ne14-fed/core.codl/issues"
|
|
37
37
|
},
|
|
38
|
-
"homepage": "https://github.com/
|
|
38
|
+
"homepage": "https://github.com/ne14-fed/core.codl#readme",
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"chai": "^4.3.
|
|
41
|
-
"mocha": "^10.
|
|
42
|
-
"prettier": "^2.
|
|
43
|
-
"rimraf": "^
|
|
44
|
-
"rollup": "^
|
|
45
|
-
"rollup-plugin-typescript2": "^0.
|
|
46
|
-
"tslib": "^2.
|
|
47
|
-
"typescript": "^4.
|
|
40
|
+
"chai": "^4.3.7",
|
|
41
|
+
"mocha": "^10.2.0",
|
|
42
|
+
"prettier": "^2.8.4",
|
|
43
|
+
"rimraf": "^4.1.2",
|
|
44
|
+
"rollup": "^3.15.0",
|
|
45
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
46
|
+
"tslib": "^2.5.0",
|
|
47
|
+
"typescript": "^4.9.5"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"reflect-metadata": "^0.1.13"
|