@alexaegis/predicate 0.10.0 → 0.10.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.
- package/internal/predicates.d.ts +5 -5
- package/internal/predicates.d.ts.map +1 -1
- package/package.json +22 -22
package/internal/predicates.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ export declare const contains: <T extends string>(criteria: T) => Predicate<stri
|
|
|
7
7
|
export declare const matchRegExp: <T extends string>(criteria: RegExp) => Predicate<string>;
|
|
8
8
|
export declare const predicate: {
|
|
9
9
|
readonly not: <T>(predicate: Predicate<T>) => Predicate<T>;
|
|
10
|
-
readonly equal: <
|
|
11
|
-
readonly and: <
|
|
12
|
-
readonly or: <
|
|
13
|
-
readonly contains: <
|
|
14
|
-
readonly matchRegExp: <
|
|
10
|
+
readonly equal: <T>(criteria: T) => (value?: T | undefined | null) => value is T;
|
|
11
|
+
readonly and: <T>(...predicates: Predicate<T>[]) => Predicate<T>;
|
|
12
|
+
readonly or: <T>(...predicates: Predicate<T>[]) => Predicate<T>;
|
|
13
|
+
readonly contains: <T extends string>(criteria: T) => Predicate<string>;
|
|
14
|
+
readonly matchRegExp: <T extends string>(criteria: RegExp) => Predicate<string>;
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=predicates.d.ts.map
|
|
@@ -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,
|
|
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,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
"name": "@alexaegis/predicate",
|
|
3
3
|
"description": "Dead simple declarative predicates",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"archetype": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
|
-
"node": ">=20
|
|
44
|
-
"pnpm": ">=9
|
|
43
|
+
"node": ">=20",
|
|
44
|
+
"pnpm": ">=9"
|
|
45
45
|
},
|
|
46
46
|
"exports": {
|
|
47
47
|
".": {
|
|
@@ -54,36 +54,36 @@
|
|
|
54
54
|
"./readme": "./readme.md"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@alexaegis/eslint-config-vitest": "^0.11.
|
|
58
|
-
"@alexaegis/ts": "^0.11.
|
|
59
|
-
"@alexaegis/vite": "^0.11.
|
|
60
|
-
"@alexaegis/vitest": "^0.11.
|
|
61
|
-
"@types/node": "^
|
|
62
|
-
"publint": "^0.2.
|
|
63
|
-
"typescript": "^5.
|
|
64
|
-
"vite": "^5.
|
|
65
|
-
"vitest": "^1.
|
|
57
|
+
"@alexaegis/eslint-config-vitest": "^0.11.6",
|
|
58
|
+
"@alexaegis/ts": "^0.11.6",
|
|
59
|
+
"@alexaegis/vite": "^0.11.6",
|
|
60
|
+
"@alexaegis/vitest": "^0.11.6",
|
|
61
|
+
"@types/node": "^22.8.0",
|
|
62
|
+
"publint": "^0.2.12",
|
|
63
|
+
"typescript": "^5.6.3",
|
|
64
|
+
"vite": "^5.4.10",
|
|
65
|
+
"vitest": "^2.1.3"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
|
-
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --
|
|
68
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/predicate",
|
|
69
69
|
"lint:depcheck_": "depcheck",
|
|
70
|
-
"lint:es": "turbo run lint:es_ --concurrency 16 --
|
|
70
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/predicate",
|
|
71
71
|
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
72
|
-
"lint:format": "turbo run lint:format_ --concurrency 16 --
|
|
72
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/predicate",
|
|
73
73
|
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
74
|
-
"lint:md": "turbo run lint:md_ --concurrency 16 --
|
|
74
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/predicate",
|
|
75
75
|
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
76
|
-
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --
|
|
76
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/predicate",
|
|
77
77
|
"lint:tsc_": "tsc --noEmit",
|
|
78
|
-
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --
|
|
78
|
+
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/predicate",
|
|
79
79
|
"publint_": "publint dist",
|
|
80
|
-
"test": "turbo run test_ --concurrency 16 --
|
|
80
|
+
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/predicate",
|
|
81
81
|
"test_": "vitest --passWithNoTests --coverage --run",
|
|
82
82
|
"test:watch": "vitest --passWithNoTests --coverage",
|
|
83
|
-
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --
|
|
84
|
-
"build": "turbo run build-lib_ --concurrency 16 --
|
|
83
|
+
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/predicate",
|
|
84
|
+
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/predicate",
|
|
85
85
|
"build-lib_": "vite build",
|
|
86
|
-
"format": "turbo run format_ --concurrency 16 --
|
|
86
|
+
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/predicate",
|
|
87
87
|
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
88
88
|
}
|
|
89
89
|
}
|