xdbc 1.0.112 → 1.0.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.
@@ -84,7 +84,7 @@ export class DEFINED extends DBC {
84
84
  * @throws A {@link DBC.Infringement } if the **CANDIDATE** **toCheck** does not fulfill this {@link DEFINED }.*/
85
85
  static tsCheck(toCheck) {
86
86
  const result = DEFINED.checkAlgorithm(toCheck);
87
- if (result) {
87
+ if (result === true) {
88
88
  return toCheck;
89
89
  }
90
90
  else {
@@ -91,7 +91,7 @@ export class INSTANCE extends DBC {
91
91
  * @throws A {@link DBC.Infringement } if the **CANDIDATE** **toCheck** does not fulfill this {@link DEFINED }. */
92
92
  static tsCheck(toCheck, reference) {
93
93
  const result = INSTANCE.checkAlgorithm(toCheck, reference);
94
- if (result) {
94
+ if (result === true) {
95
95
  return toCheck;
96
96
  }
97
97
  else {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.112",
2
+ "version": "1.0.113",
3
3
  "name": "xdbc",
4
4
  "scripts": {
5
5
  "docs": "typedoc",
@@ -118,7 +118,7 @@ export class DEFINED extends DBC {
118
118
  public static tsCheck<CANDIDATE>( toCheck : CANDIDATE | undefined | null ) : CANDIDATE {
119
119
  const result = DEFINED.checkAlgorithm(toCheck );
120
120
 
121
- if( result ) {
121
+ if( result === true ) {
122
122
  return toCheck as CANDIDATE ;
123
123
  }
124
124
  else {
@@ -123,7 +123,7 @@ export class INSTANCE extends DBC {
123
123
  public static tsCheck < CANDIDATE > ( toCheck : any, reference : any ) : CANDIDATE {
124
124
  const result = INSTANCE.checkAlgorithm(toCheck, reference);
125
125
 
126
- if( result ) {
126
+ if( result === true ) {
127
127
  return toCheck ;
128
128
  }
129
129
  else {