xdbc 1.0.75 → 1.0.77
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/DBC/AE.js +6 -6
- package/package.json +1 -1
- package/src/DBC/AE.ts +5 -7
package/dist/DBC/AE.js
CHANGED
|
@@ -38,12 +38,12 @@ export class AE extends DBC {
|
|
|
38
38
|
}
|
|
39
39
|
return true; // In order for optional parameter to not cause an error if they are omitted.
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
? idxEnd
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
const ending = idxEnd !== undefined
|
|
42
|
+
? idxEnd !== -1
|
|
43
|
+
? idxEnd + 1
|
|
44
|
+
: value.length
|
|
45
|
+
: value.length;
|
|
46
|
+
for (let i = index ? index : 0; i < ending; i++) {
|
|
47
47
|
const result = condition.check(value[i]);
|
|
48
48
|
if (result !== true) {
|
|
49
49
|
return `Violating-Arrayelement at index ${i}. ${result}`;
|
package/package.json
CHANGED
package/src/DBC/AE.ts
CHANGED
|
@@ -45,16 +45,14 @@ export class AE extends DBC {
|
|
|
45
45
|
return true; // In order for optional parameter to not cause an error if they are omitted.
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
i <
|
|
51
|
-
(idxEnd !== undefined
|
|
48
|
+
const ending =
|
|
49
|
+
idxEnd !== undefined
|
|
52
50
|
? idxEnd !== -1
|
|
53
51
|
? idxEnd + 1
|
|
54
52
|
: (value as []).length
|
|
55
|
-
: (value as []).length
|
|
56
|
-
|
|
57
|
-
) {
|
|
53
|
+
: (value as []).length;
|
|
54
|
+
|
|
55
|
+
for (let i = index ? index : 0; i < ending; i++) {
|
|
58
56
|
const result = condition.check(value[i]);
|
|
59
57
|
|
|
60
58
|
if (result !== true) {
|