Comparing version 1.8.0 to 1.9.0
@@ -1,19 +0,2 @@ | ||
import { Parameter, ActionObserver } from './expression'; | ||
export * from './expression'; | ||
export declare const expressions: import("./expression").IExpressions; | ||
/** | ||
* Get parameters of expression | ||
* @param expression expression | ||
* @returns Parameters of expression | ||
*/ | ||
export declare const parameters: (expression: string) => Parameter[]; | ||
/** | ||
* Evaluate and solve expression | ||
* @param expression string expression | ||
* @param data Data with variables | ||
* @returns Result of the evaluate expression | ||
*/ | ||
export declare const evaluate: (expression: string, data?: any) => any; | ||
export declare const run: (expression: string, data?: any) => any; | ||
export declare const subscribe: (observer: ActionObserver) => void; | ||
export declare const unsubscribe: (observer: ActionObserver) => void; | ||
export * from './domain'; | ||
export * from './infrastructure'; |
37
index.js
@@ -17,37 +17,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.unsubscribe = exports.subscribe = exports.run = exports.evaluate = exports.parameters = exports.expressions = void 0; | ||
const expression_1 = require("./expression"); | ||
__exportStar(require("./expression"), exports); | ||
exports.expressions = expression_1.Expressions.instance; | ||
/** | ||
* Get parameters of expression | ||
* @param expression expression | ||
* @returns Parameters of expression | ||
*/ | ||
const parameters = (expression) => { | ||
return exports.expressions.parameters(expression); | ||
}; | ||
exports.parameters = parameters; | ||
/** | ||
* Evaluate and solve expression | ||
* @param expression string expression | ||
* @param data Data with variables | ||
* @returns Result of the evaluate expression | ||
*/ | ||
const evaluate = (expression, data) => { | ||
return exports.expressions.eval(expression, data); | ||
}; | ||
exports.evaluate = evaluate; | ||
const run = (expression, data) => { | ||
return exports.expressions.run(expression, data); | ||
}; | ||
exports.run = run; | ||
const subscribe = (observer) => { | ||
exports.expressions.subscribe(observer); | ||
}; | ||
exports.subscribe = subscribe; | ||
const unsubscribe = (observer) => { | ||
exports.expressions.subscribe(observer); | ||
}; | ||
exports.unsubscribe = unsubscribe; | ||
__exportStar(require("./domain"), exports); | ||
__exportStar(require("./infrastructure"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "3xpr", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"description": "expressions", | ||
@@ -21,3 +21,3 @@ "author": "Flavio Lionel Rita <flaviolrita@hotmail.com>", | ||
"h3lp": "1.2.8", | ||
"json-light": "0.1.0" | ||
"json-light": "0.2.0" | ||
}, | ||
@@ -24,0 +24,0 @@ "keywords": [ |
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
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
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
546078
193
6437
1
+ Addedjson-light@0.2.0(transitive)
- Removedjson-light@0.1.0(transitive)
Updatedjson-light@0.2.0