@iapps/dhis2-program-rule-engine
Advanced tools
Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9
{ | ||
"name": "@iapps/dhis2-program-rule-engine", | ||
"version": "1.0.0-alpha.8", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/hisptz/program-rule-engine.git" | ||
}, | ||
"author": "UDSM DHIS2", | ||
"license": "LGPL-3.0", | ||
"bugs": { | ||
"url": "https://github.com/hisptz/program-rule-engine/issues" | ||
}, | ||
"homepage": "https://github.com/hisptz/program-rule-engine#readme", | ||
"version": "1.0.0-alpha.9", | ||
"type": "commonjs", | ||
"main": "./src/index.js", | ||
"typings": "./src/index.d.ts", | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"d2-utilizr": "^0.2.16" | ||
"lodash": "^4.17.21", | ||
"moment": "^2.29.4", | ||
"tslib": "^2.3.0" | ||
} | ||
} |
@@ -1,46 +0,11 @@ | ||
# DHIS2 Program Rule Engine | ||
# program-rule-engine | ||
DHIS2 based javascript library for evaluating programs rules for DHIS2 tracker or event implementations | ||
This library was generated with [Nx](https://nx.dev). | ||
# Usage | ||
## Building | ||
- ES2015 module import: | ||
Run `nx build program-rule-engine` to build the library. | ||
```javascript | ||
import * as d2Rule from '@iapps/dhis2-program-rule-engine'; | ||
// ... | ||
d2Rule.execute(args*); | ||
``` | ||
## Running unit tests | ||
- CommonJS module require: | ||
```javascript | ||
const d2Rule require('@iapps/dhis2-program-rule-engine'); | ||
// ... | ||
d2Rule.execute(args*); | ||
``` | ||
- AMD module require: | ||
```javascript | ||
require(['d2Rule'], function (webpackNumbers) { | ||
// ... | ||
d2Rule.execute(args*); | ||
}); | ||
``` | ||
- Library can also be used via script tag | ||
```html | ||
<!DOCTYPE html> | ||
<html> | ||
... | ||
<script src="https://unpkg.com/@iapps/dhis2-program-rule-engine"></script> | ||
<script> | ||
// ... | ||
// Global variable | ||
d2Rule.execute(args*); | ||
// ... | ||
</script> | ||
</html> | ||
``` | ||
Run `nx test program-rule-engine` to execute the unit tests via [Jest](https://jestjs.io). |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
No website
QualityPackage does not have a website.
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
59
1
100
1724
134173
3
2
2
12
1
2