@alexaegis/predicate 0.8.2 → 0.9.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.
@@ -1,6 +1,6 @@
1
1
  export type Predicate<T> = (value?: T | undefined | null) => boolean;
2
2
  export declare const not: <T>(predicate: Predicate<T>) => Predicate<T>;
3
- export declare const equal: <T>(criteria: T) => (value?: T | null | undefined) => value is T;
3
+ export declare const equal: <T>(criteria: T) => (value?: T | undefined | null) => value is T;
4
4
  export declare const and: <T>(...predicates: Predicate<T>[]) => Predicate<T>;
5
5
  export declare const or: <T>(...predicates: Predicate<T>[]) => Predicate<T>;
6
6
  export declare const contains: <T extends string>(criteria: T) => Predicate<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/internal/predicates.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,KAAK,OAAO,CAAC;AAErE,eAAO,MAAM,GAAG,8CAEf,CAAC;AAEF,eAAO,MAAM,KAAK,kEAEjB,CAAC;AAEF,eAAO,MAAM,GAAG,oDAGf,CAAC;AAEF,eAAO,MAAM,EAAE,oDAGd,CAAC;AAEF,eAAO,MAAM,QAAQ,qCAAoC,UAAU,MAAM,CAGxE,CAAC;AAEF,eAAO,MAAM,WAAW,+BAAgC,MAAM,KAAG,UAAU,MAAM,CAGhF,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;8DAVmC,UAAU,MAAM,CAAC;yDAKlB,MAAM,KAAG,UAAU,MAAM,CAAC;CAYxE,CAAC"}
1
+ {"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/internal/predicates.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,KAAK,OAAO,CAAC;AAErE,eAAO,MAAM,GAAG,iBAAkB,UAAU,CAAC,CAAC,KAAG,UAAU,CAAC,CAE3D,CAAC;AAEF,eAAO,MAAM,KAAK,gBAAiB,CAAC,cACnB,CAAC,GAAG,SAAS,GAAG,IAAI,eACpC,CAAC;AAEF,eAAO,MAAM,GAAG,qBAAsB,UAAU,CAAC,CAAC,EAAE,KAAG,UAAU,CAAC,CAGjE,CAAC;AAEF,eAAO,MAAM,EAAE,qBAAsB,UAAU,CAAC,CAAC,EAAE,KAAG,UAAU,CAAC,CAGhE,CAAC;AAEF,eAAO,MAAM,QAAQ,+BAAgC,CAAC,KAAG,UAAU,MAAM,CAGxE,CAAC;AAEF,eAAO,MAAM,WAAW,+BAAgC,MAAM,KAAG,UAAU,MAAM,CAGhF,CAAC;AAEF,eAAO,MAAM,SAAS;iCA5BY,UAAU,CAAC,CAAC,KAAG,UAAU,CAAC,CAAC;;;;8DAkBJ,UAAU,MAAM,CAAC;yDAKlB,MAAM,KAAG,UAAU,MAAM,CAAC;CAYxE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alexaegis/predicate",
3
3
  "description": "Dead simple declarative predicates",
4
- "version": "0.8.2",
4
+ "version": "0.9.1",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "archetype": {
@@ -19,7 +19,7 @@
19
19
  "query"
20
20
  ],
21
21
  "author": {
22
- "email": "alexaegis@gmail.com",
22
+ "email": "alexaegis@pm.me",
23
23
  "name": "Alex Aegis",
24
24
  "url": "https://github.com/AlexAegis"
25
25
  },
@@ -29,7 +29,7 @@
29
29
  "directory": "packages/predicate"
30
30
  },
31
31
  "bugs": {
32
- "email": "alexaegis@gmail.com",
32
+ "email": "alexaegis@pm.me",
33
33
  "url": "https://github.com/AlexAegis/common/issues"
34
34
  },
35
35
  "type": "module",
@@ -53,15 +53,15 @@
53
53
  "./readme": "./readme.md"
54
54
  },
55
55
  "devDependencies": {
56
- "@alexaegis/eslint-config-vitest": "^0.9.2",
57
- "@alexaegis/ts": "^0.9.2",
58
- "@alexaegis/vite": "^0.9.2",
59
- "@alexaegis/vitest": "^0.9.2",
60
- "@types/node": "^20.10.5",
56
+ "@alexaegis/eslint-config-vitest": "^0.10.3",
57
+ "@alexaegis/ts": "^0.10.3",
58
+ "@alexaegis/vite": "^0.10.3",
59
+ "@alexaegis/vitest": "^0.10.3",
60
+ "@types/node": "^20.11.30",
61
61
  "publint": "^0.2.7",
62
- "typescript": "^5.3.3",
63
- "vite": "^5.0.10",
64
- "vitest": "^1.1.0"
62
+ "typescript": "^5.4.3",
63
+ "vite": "^5.2.4",
64
+ "vitest": "^1.4.0"
65
65
  },
66
66
  "scripts": {
67
67
  "lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",