Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clipboard-health/rules-engine

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clipboard-health/rules-engine - npm Package Compare versions

Comparing version 1.0.3 to 1.1.1

.eslintrc.json

25

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc