xdbc 1.0.87 → 1.0.89

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/DBC/OR.ts +4 -4
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.87",
2
+ "version": "1.0.89",
3
3
  "name": "xdbc",
4
4
  "scripts": {
5
5
  "format": "biome format ./src --write",
package/src/DBC/OR.ts CHANGED
@@ -28,7 +28,7 @@ export class OR extends DBC {
28
28
  conditions: Array<{
29
29
  check: (toCheck: unknown | undefined | null) => boolean | string;
30
30
  }>,
31
- value: object,
31
+ value: unknown | null | undefined,
32
32
  ): boolean | string {
33
33
  let result = "";
34
34
 
@@ -64,7 +64,7 @@ export class OR extends DBC {
64
64
  * Otherwise TRUE. */
65
65
  public static PRE(
66
66
  conditions: Array<{
67
- check: (toCheck: unknown | undefined | null) => boolean | string;
67
+ check: (toCheck: unknown | undefined | null | object) => boolean | string;
68
68
  }>,
69
69
  path: string | undefined = undefined,
70
70
  dbc = "WaXCode.DBC",
@@ -99,7 +99,7 @@ export class OR extends DBC {
99
99
  * Otherwise TRUE. */
100
100
  public static POST(
101
101
  conditions: Array<{
102
- check: (toCheck: unknown | undefined | null) => boolean | string;
102
+ check: (toCheck: unknown | undefined | null | object) => boolean | string;
103
103
  }>,
104
104
  path: string | undefined = undefined,
105
105
  dbc = "WaXCode.DBC",
@@ -127,7 +127,7 @@ export class OR extends DBC {
127
127
  * @param toCheck See {@link OR.checkAlgorithm }.
128
128
  *
129
129
  * @returns See {@link OR.checkAlgorithm}. */
130
- public check(toCheck: object) {
130
+ public check(toCheck: unknown | null | undefined) {
131
131
  return OR.checkAlgorithm(this.conditions, toCheck);
132
132
  }
133
133
  /**