@ne1410s/codl 0.1.112 → 0.1.113
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.
|
@@ -627,7 +627,7 @@ var ReflectValidation = /** @class */ (function () {
|
|
|
627
627
|
* @param type The strong type (to supply prototype data).
|
|
628
628
|
*/
|
|
629
629
|
ReflectValidation.validate = function (target, type) {
|
|
630
|
-
var proto = (type === null || type ===
|
|
630
|
+
var proto = (type === null || type === void 0 ? void 0 : type.prototype) || Object.getPrototypeOf(target || {});
|
|
631
631
|
if (!proto)
|
|
632
632
|
throw new TypeError('No type data could be found');
|
|
633
633
|
var checks = this.getValidators();
|
|
@@ -675,7 +675,7 @@ var ReflectValidation = /** @class */ (function () {
|
|
|
675
675
|
};
|
|
676
676
|
/** Prepares a sequence of validation instructions. */
|
|
677
677
|
ReflectValidation.getTestInstructions = function (allChecks, proto, trg, pfx) {
|
|
678
|
-
if (pfx ===
|
|
678
|
+
if (pfx === void 0) { pfx = ''; }
|
|
679
679
|
var fnScorer = function (ins) {
|
|
680
680
|
return ins.fn === RequiredValidator
|
|
681
681
|
? 3
|
|
@@ -625,7 +625,7 @@ var ReflectValidation = /** @class */ (function () {
|
|
|
625
625
|
* @param type The strong type (to supply prototype data).
|
|
626
626
|
*/
|
|
627
627
|
ReflectValidation.validate = function (target, type) {
|
|
628
|
-
var proto = (type === null || type ===
|
|
628
|
+
var proto = (type === null || type === void 0 ? void 0 : type.prototype) || Object.getPrototypeOf(target || {});
|
|
629
629
|
if (!proto)
|
|
630
630
|
throw new TypeError('No type data could be found');
|
|
631
631
|
var checks = this.getValidators();
|
|
@@ -673,7 +673,7 @@ var ReflectValidation = /** @class */ (function () {
|
|
|
673
673
|
};
|
|
674
674
|
/** Prepares a sequence of validation instructions. */
|
|
675
675
|
ReflectValidation.getTestInstructions = function (allChecks, proto, trg, pfx) {
|
|
676
|
-
if (pfx ===
|
|
676
|
+
if (pfx === void 0) { pfx = ''; }
|
|
677
677
|
var fnScorer = function (ins) {
|
|
678
678
|
return ins.fn === RequiredValidator
|
|
679
679
|
? 3
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
* @param type The strong type (to supply prototype data).
|
|
630
630
|
*/
|
|
631
631
|
ReflectValidation.validate = function (target, type) {
|
|
632
|
-
var proto = (type === null || type ===
|
|
632
|
+
var proto = (type === null || type === void 0 ? void 0 : type.prototype) || Object.getPrototypeOf(target || {});
|
|
633
633
|
if (!proto)
|
|
634
634
|
throw new TypeError('No type data could be found');
|
|
635
635
|
var checks = this.getValidators();
|
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
};
|
|
678
678
|
/** Prepares a sequence of validation instructions. */
|
|
679
679
|
ReflectValidation.getTestInstructions = function (allChecks, proto, trg, pfx) {
|
|
680
|
-
if (pfx ===
|
|
680
|
+
if (pfx === void 0) { pfx = ''; }
|
|
681
681
|
var fnScorer = function (ins) {
|
|
682
682
|
return ins.fn === RequiredValidator
|
|
683
683
|
? 3
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ne1410s/codl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.113",
|
|
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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"mocha": "^10.8.2",
|
|
42
42
|
"prettier": "^3.4.2",
|
|
43
43
|
"rimraf": "^5.0.10",
|
|
44
|
-
"rollup": "^4.34.
|
|
44
|
+
"rollup": "^4.34.6",
|
|
45
45
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
46
46
|
"tslib": "^2.8.1",
|
|
47
47
|
"typescript": "^5.7.3"
|