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

3xpr

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

3xpr - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

application/expressions.d.ts

21

index.d.ts

@@ -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';

@@ -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

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