@clipboard-health/rules-engine
Advanced tools
Comparing version 1.0.3 to 1.1.1
{ | ||
"name": "@clipboard-health/rules-engine", | ||
"version": "1.0.3", | ||
"description": "", | ||
"version": "1.1.1", | ||
"bugs": "https://github.com/clipboardhealth/core-utils/issues", | ||
"dependencies": { | ||
"tslib": "2.6.3", | ||
"type-fest": "4.23.0" | ||
}, | ||
"keywords": [], | ||
"license": "MIT", | ||
"main": "./src/index.js", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/clipboardhealth/core-utils.git", | ||
"directory": "packages/rules-engine" | ||
}, | ||
"scripts": { | ||
"build": "nx build rules-engine", | ||
"embed": "embedme README.md", | ||
"lint": "nx lint rules-engine", | ||
"test": "nx test rules-engine" | ||
"embed": "embedme README.md" | ||
}, | ||
"type": "commonjs" | ||
} | ||
"type": "commonjs", | ||
"typings": "./src/index.d.ts" | ||
} |
# @clipboard-health/rules-engine | ||
Exposes a functional rules-engine with 2 engines: | ||
Exposes a functional rules engine with two rule runners: | ||
@@ -84,3 +84,4 @@ - `firstMatch`: Runs the first rule that matches the criteria | ||
console.log(allResult.output); // AllResult.output = [{ result: 7 }, { result: 10 }] | ||
console.log(allResult.output); | ||
// => [{ result: 7 }, { result: 10 }] | ||
@@ -94,3 +95,4 @@ // Using firstMatch() applies the first the rules to the context | ||
console.log(firstMatchResult.output); // [{ result: 7 }] | ||
console.log(firstMatchResult.output); | ||
// => [{ result: 7 }] | ||
``` | ||
@@ -97,0 +99,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
351
101
0
12654
2
19
1
+ Addedtslib@2.6.3
+ Addedtslib@2.6.3(transitive)