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

@allbin/entity-logic

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allbin/entity-logic - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

4

lib/index.d.ts

@@ -6,3 +6,2 @@ import { Entity, EntitySchema } from './types/schema';

execute: (entities: Entity[], filter: Filter) => Entity[];
validateSchema: (schema: EntitySchema) => void;
validateCondition: (condtion: FilterCondition) => Operator;

@@ -12,5 +11,6 @@ validateFilter: (filter: Filter) => Operator[];

}
declare const validateSchema: (schema: EntitySchema) => void;
declare const EntityLogic: (schema: EntitySchema) => EntityLogic;
export * from './types/filter';
export * from './types/schema';
export { EntityLogic };
export { EntityLogic, validateSchema };

@@ -16,3 +16,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.EntityLogic = void 0;
exports.validateSchema = exports.EntityLogic = void 0;
var operators_1 = __importDefault(require("./operators"));

@@ -98,2 +98,3 @@ var executeCondition = function (schemaPropsByKey, entities, condition) {

};
exports.validateSchema = validateSchema;
var validateFilterCondition = function (schemaPropsByKey, condition) {

@@ -189,3 +190,2 @@ var _a;

execute: function (entities, filter) { return executeFilter(propsByKey, entities, filter); },
validateSchema: function (schema) { return validateSchema(schema); },
validateCondition: function (condition) {

@@ -192,0 +192,0 @@ return validateFilterCondition(propsByKey, condition);

{
"name": "@allbin/entity-logic",
"version": "0.1.4",
"version": "0.2.0",
"description": "Logic solver for mobilix filters",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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