@clipboard-health/rules-engine 0.1.3 → 0.1.5
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/CHANGELOG.md +16 -0
- package/package.json +2 -2
- package/src/lib/append-output.d.ts +1 -1
- package/src/lib/append-output.js +1 -1
- package/src/lib/runners/first-match.d.ts +0 -1
- package/src/lib/runners/first-match.d.ts.map +1 -1
- package/src/lib/runners/first-match.js +0 -1
- package/src/lib/runners/first-match.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.1.5](https://github.com/ClipboardHealth/cbh-core/compare/rules-engine-0.1.4...rules-engine-0.1.5) (2024-07-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* testing Nx upgrade, attempt 2 ([4066dab](https://github.com/ClipboardHealth/cbh-core/commit/4066dab6f40e5b9b06d7d93d1973c09135c52817))
|
|
11
|
+
|
|
12
|
+
## [0.1.4](https://github.com/ClipboardHealth/cbh-core/compare/rules-engine-0.1.3...rules-engine-0.1.4) (2024-07-12)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* testing Nx upgrade ([f823f5d](https://github.com/ClipboardHealth/cbh-core/commit/f823f5d3e9624d33f55683df8346f99d51bef9e7))
|
|
18
|
+
|
|
19
|
+
## [0.1.3](https://github.com/ClipboardHealth/cbh-core/compare/rules-engine-0.1.2...rules-engine-0.1.3) (2024-07-12)
|
|
20
|
+
|
|
5
21
|
## [0.1.3](https://github.com/ClipboardHealth/cbh-core/compare/rules-engine-0.1.2...rules-engine-0.1.3) (2024-07-11)
|
|
6
22
|
|
|
7
23
|
## [0.1.3](https://github.com/ClipboardHealth/cbh-core/compare/rules-engine-0.1.2...rules-engine-0.1.3) (2024-07-11)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/rules-engine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nx build rules-engine",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"test": "nx test rules-engine"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"type-fest": "4.
|
|
12
|
+
"type-fest": "4.21.0"
|
|
13
13
|
},
|
|
14
14
|
"type": "commonjs"
|
|
15
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReadonlyDeep } from "type-fest";
|
|
2
2
|
import { type RuleContext } from "./rule";
|
|
3
3
|
/**
|
|
4
|
-
* Rule output is immutable, do not modify existing items, only append.
|
|
4
|
+
* Rule output is immutable, do not modify existing items, only append using this function.
|
|
5
5
|
*/
|
|
6
6
|
export declare function appendOutput<TInput, TOutput>(context: RuleContext<TInput, TOutput>, output: ReadonlyDeep<TOutput>): RuleContext<TInput, TOutput>;
|
|
7
7
|
//# sourceMappingURL=append-output.d.ts.map
|
package/src/lib/append-output.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.appendOutput = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Rule output is immutable, do not modify existing items, only append.
|
|
5
|
+
* Rule output is immutable, do not modify existing items, only append using this function.
|
|
6
6
|
*/
|
|
7
7
|
function appendOutput(context, output) {
|
|
8
8
|
return {
|
|
@@ -3,7 +3,6 @@ import { type Rule, type RuleContext } from "../rule";
|
|
|
3
3
|
* Run the first rule that returns true for `runIf`.
|
|
4
4
|
*
|
|
5
5
|
* @param rules The rules to run.
|
|
6
|
-
* @returns A rule that runs the first rule that matches the context.
|
|
7
6
|
*/
|
|
8
7
|
export declare function firstMatch<TInput, TOutput, TContext extends RuleContext<TInput, TOutput>>(...rules: Array<Rule<TInput, TOutput, TContext>>): Rule<TInput, TOutput, TContext>;
|
|
9
8
|
//# sourceMappingURL=first-match.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-match.d.ts","sourceRoot":"","sources":["../../../../../../packages/rules-engine/src/lib/runners/first-match.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"first-match.d.ts","sourceRoot":"","sources":["../../../../../../packages/rules-engine/src/lib/runners/first-match.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,SAAS,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACvF,GAAG,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,GAC/C,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAQjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-match.js","sourceRoot":"","sources":["../../../../../../packages/rules-engine/src/lib/runners/first-match.ts"],"names":[],"mappings":";;;AAEA
|
|
1
|
+
{"version":3,"file":"first-match.js","sourceRoot":"","sources":["../../../../../../packages/rules-engine/src/lib/runners/first-match.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACH,SAAgB,UAAU,CACxB,GAAG,KAA6C;IAEhD,OAAO;QACL,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACzD,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE;YACf,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;YAC7D,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QAC5C,CAAC;KACF,CAAC;AACJ,CAAC;AAVD,gCAUC"}
|