certlogic-utils-js
Advanced tools
Comparing version 0.1.1 to 0.2.0
# Change log | ||
## 0.2.0 | ||
* Upgrade dependencies | ||
* Move partial evaluation to here from the [`eu-dcc-business-rules-analysis` repo](https://github.com/ehn-dcc-development/eu-dcc-business-rules-analysis) | ||
## 0.1.1 | ||
@@ -4,0 +10,0 @@ |
@@ -20,3 +20,3 @@ import { TimeUnit } from "certlogic-js"; | ||
} | ||
export declare type Fragment = string | number; | ||
export type Fragment = string | number; | ||
export declare class DataAccess implements Evaluatable { | ||
@@ -51,3 +51,3 @@ private readonly fragments; | ||
} | ||
export declare type BinaryLambda = (left: any, right: any) => any; | ||
export type BinaryLambda = (left: any, right: any) => any; | ||
export declare class BiTriOperation implements Evaluatable { | ||
@@ -54,0 +54,0 @@ private readonly operands; |
@@ -1,2 +0,3 @@ | ||
export { compile, Evaluatable } from "./compiler"; | ||
export * as compiler from "./compiler"; | ||
export * as partialEvaluator from "./partial-evaluator"; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.compile = void 0; | ||
var compiler_1 = require("./compiler"); | ||
Object.defineProperty(exports, "compile", { enumerable: true, get: function () { return compiler_1.compile; } }); | ||
exports.partialEvaluator = exports.compiler = void 0; | ||
exports.compiler = __importStar(require("./compiler")); | ||
exports.partialEvaluator = __importStar(require("./partial-evaluator")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "certlogic-utils-js", | ||
"version": "0.1.1", | ||
"description": "Utility package for anything that's CertLogic but not evaluation", | ||
"version": "0.2.0", | ||
"description": "Utility package for anything that's CertLogic but not (direct) evaluation", | ||
"keywords": [ | ||
@@ -26,8 +26,6 @@ "json", | ||
"watch-build": "tsc --watch --incremental", | ||
"pretest": "npm run build", | ||
"test": "mocha --recursive dist/test", | ||
"watch-test": "mocha --watch --recursive dist/test", | ||
"clean": "rm -rf dist/ && rm -rf node_modules/", | ||
"check-deps": "dpdm dist/ --circular --exit-code circular:1", | ||
"precheck-deps": "npm run build" | ||
"check-deps": "dpdm dist/ --circular --exit-code circular:1" | ||
}, | ||
@@ -37,13 +35,15 @@ "author": "Meinte Boersma <meinte.boersma@gmail.com>", | ||
"devDependencies": { | ||
"@types/chai": "^4.3.1", | ||
"@types/chai": "^4.3.4", | ||
"@types/deep-equal": "^1.0.1", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^17.0.35", | ||
"chai": "^4.3.6", | ||
"dpdm": "^3.9.0", | ||
"@types/node": "^17.0.45", | ||
"chai": "^4.3.7", | ||
"dpdm": "^3.12.0", | ||
"mocha": "^9.2.2", | ||
"typescript": "^4.6.4" | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"certlogic-js": "^1.2.2" | ||
"certlogic-js": "^1.2.2", | ||
"deep-equal": "^2.2.0" | ||
} | ||
} |
@@ -8,3 +8,3 @@ # README | ||
The intention is to move all functionality in `certlogic-js` that's not directly related to/used by the evaluation of CertLogic expressions, in this utility package. | ||
The intention is to (eventually) move all functionality in `certlogic-js` that's not directly related to/used by the evaluation of CertLogic expressions, in this utility package. | ||
That includes: | ||
@@ -16,3 +16,4 @@ | ||
* Reflection/inspection, e.g. the `dataAccesses` function | ||
* [✓] Compilation | ||
* [✓] [Compilation](./src/compiler/index.ts) | ||
* [✓] [Partial evaluation](./src/partial-evaluator/README.md) | ||
* Type system | ||
@@ -19,0 +20,0 @@ * etc. |
@@ -1,1 +0,2 @@ | ||
export {compile, Evaluatable} from "./compiler" | ||
export * as compiler from "./compiler" | ||
export * as partialEvaluator from "./partial-evaluator" |
@@ -18,3 +18,3 @@ /* | ||
const runTestsOn = (testSuite: any) => { | ||
testDirective2MochaFunc(testSuite.directive, describe)(testSuite.name, () => { | ||
testDirective2MochaFunc(testSuite.directive, describe)(`[compiler.testSuite] ${testSuite.name}`, () => { | ||
testSuite.cases | ||
@@ -21,0 +21,0 @@ .forEach((testCase: any) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
144927
54
2040
35
2
8
+ Addeddeep-equal@^2.2.0
+ Addedarray-buffer-byte-length@1.0.1(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addeddeep-equal@2.2.3(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-get-iterator@1.1.3(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedfunctions-have-names@1.2.3(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-bigints@1.0.2(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinternal-slot@1.0.7(transitive)
+ Addedis-arguments@1.1.1(transitive)
+ Addedis-array-buffer@3.0.4(transitive)
+ Addedis-bigint@1.0.4(transitive)
+ Addedis-boolean-object@1.1.2(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-date-object@1.0.5(transitive)
+ Addedis-map@2.0.3(transitive)
+ Addedis-number-object@1.0.7(transitive)
+ Addedis-regex@1.1.4(transitive)
+ Addedis-set@2.0.3(transitive)
+ Addedis-shared-array-buffer@1.0.3(transitive)
+ Addedis-string@1.0.7(transitive)
+ Addedis-symbol@1.0.4(transitive)
+ Addedis-weakmap@2.0.2(transitive)
+ Addedis-weakset@2.0.3(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedobject-is@1.1.6(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.assign@4.1.5(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedregexp.prototype.flags@1.5.3(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedset-function-name@2.0.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedstop-iteration-iterator@1.0.0(transitive)
+ Addedwhich-boxed-primitive@1.0.2(transitive)
+ Addedwhich-collection@1.0.2(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)