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

dcc-business-rules-utils

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dcc-business-rules-utils - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/id-parsing.d.ts

6

CHANGELOG.md
# Change log
## 0.2.0
* Add a function `parseRuleId`.
## 0.1.0

@@ -4,0 +10,0 @@

1

dist/index.d.ts
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

4

dist/index.js
"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

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