dcc-business-rules-utils
Advanced tools
Comparing version 0.1.0 to 0.2.0
# Change log | ||
## 0.2.0 | ||
* Add a function `parseRuleId`. | ||
## 0.1.0 | ||
@@ -4,0 +10,0 @@ |
export { CertificateType, Description, Rule, RuleType } from "./typings"; | ||
export { AffectedFieldsValidationResult, hasRulesForAllEventTypes, RuleValidationResult, validateRule } from "./validate"; | ||
export { normalCopyOf } from "./normalise"; | ||
export { ParsedRuleIdentifier, parseRuleId } from "./id-parsing"; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.normalCopyOf = exports.validateRule = exports.hasRulesForAllEventTypes = void 0; | ||
exports.parseRuleId = exports.normalCopyOf = exports.validateRule = exports.hasRulesForAllEventTypes = void 0; | ||
var validate_1 = require("./validate"); | ||
@@ -9,2 +9,4 @@ Object.defineProperty(exports, "hasRulesForAllEventTypes", { enumerable: true, get: function () { return validate_1.hasRulesForAllEventTypes; } }); | ||
Object.defineProperty(exports, "normalCopyOf", { enumerable: true, get: function () { return normalise_1.normalCopyOf; } }); | ||
var id_parsing_1 = require("./id-parsing"); | ||
Object.defineProperty(exports, "parseRuleId", { enumerable: true, get: function () { return id_parsing_1.parseRuleId; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "dcc-business-rules-utils", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Various utils for working with DCC business/validation rules", | ||
@@ -25,3 +25,5 @@ "keywords": [ | ||
"watch-build": "tsc --watch --incremental", | ||
"clean": "rm -rf dist/ && rm -rf node_modules/ && rm -rf package-lock.json && rm -rf yarn.lock", | ||
"test": "mocha --recursive dist/test/", | ||
"watch-test": "mocha --recursive --watch dist/test/", | ||
"clean": "rm -rf dist/ && rm -rf node_modules/", | ||
"check-deps": "dpdm dist/ --circular --exit-code circular:1", | ||
@@ -33,2 +35,5 @@ "precheck-deps": "npm run build" | ||
"devDependencies": { | ||
"@types/chai": "^4.3.0", | ||
"@types/mocha": "^9.1.0", | ||
"@types/node": "^17.0.14", | ||
"@types/semver": "^7.3.9", | ||
@@ -35,0 +40,0 @@ "chai": "^4.3.4", |
@@ -12,2 +12,4 @@ # DCC Business Rules Utilities | ||
Note: this function only looks at the rules' stated value of `CertificateType`, regardless of whether that value matches the actual `Logic`. | ||
* A `parseRuleId` function to parse a (valid) rule ID (in field `Identifier` of a `Rule`) into its constituent parts. | ||
That's useful to perform queries on collections of (versions of) rules. | ||
@@ -14,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
51396
36
734
46
8