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

namirasoft-core

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

namirasoft-core - npm Package Compare versions

Comparing version 1.3.54 to 1.3.55

dist/BaseMetaColumn.d.ts

20

dist/FilterItem.d.ts

@@ -0,11 +1,7 @@

import { BaseMetaColumn } from "./BaseMetaColumn";
import { BaseMetaTable } from "./BaseMetaTable";
import { FilterItemOperator } from "./FilterItemOperator";
export declare class FilterItem {
table: {
name: string;
text: string;
};
column: {
name: string;
text: string;
};
table: BaseMetaTable;
column: BaseMetaColumn;
not: boolean;

@@ -16,9 +12,3 @@ operator: FilterItemOperator;

static parse(item: string | null): FilterItem[];
constructor(table: {
name: string;
text: string;
}, column: {
name: string;
text: string;
}, not: boolean, operator: FilterItemOperator, ...values: string[]);
constructor(table: BaseMetaTable, column: BaseMetaColumn, not: boolean, operator: FilterItemOperator, ...values: string[]);
getCommand(): string;

@@ -25,0 +15,0 @@ isAllColumns(): boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FilterItem = void 0;
const BaseMetaColumn_1 = require("./BaseMetaColumn");
const BaseMetaTable_1 = require("./BaseMetaTable");
const FilterItemOperator_1 = require("./FilterItemOperator");

@@ -16,3 +18,3 @@ class FilterItem {

for (let i = 0; i < items.length;) {
if (i + 3 >= items.length)
if (i + 4 >= items.length)
throw new Error("Invalid value for FilterItem: " + item);

@@ -35,4 +37,4 @@ let tableIndex = i;

}
ans.push(new FilterItem({ name: table, text: table }, { name: column, text: column }, not, operator, ...values));
i += 3 + operator.count;
ans.push(new FilterItem(new BaseMetaTable_1.BaseMetaTable(table, table), new BaseMetaColumn_1.BaseMetaColumn(column, column, "", false), not, operator, ...values));
i += 4 + operator.count;
}

@@ -39,0 +41,0 @@ }

export * from "./BaseDatabaseRow";
export * from "./BaseMetaColumn";
export * from "./BaseMetaTable";
export * from "./BaseServer";

@@ -3,0 +5,0 @@ export * from "./ConsoleOperation";

@@ -18,2 +18,4 @@ "use strict";

__exportStar(require("./BaseDatabaseRow"), exports);
__exportStar(require("./BaseMetaColumn"), exports);
__exportStar(require("./BaseMetaTable"), exports);
__exportStar(require("./BaseServer"), exports);

@@ -20,0 +22,0 @@ __exportStar(require("./ConsoleOperation"), exports);

@@ -11,3 +11,3 @@ {

"private": false,
"version": "1.3.54",
"version": "1.3.55",
"author": "Amir Abolhasani",

@@ -14,0 +14,0 @@ "license": "MIT",

@@ -0,1 +1,3 @@

import { BaseMetaColumn } from "./BaseMetaColumn";
import { BaseMetaTable } from "./BaseMetaTable";
import { FilterItemOperator } from "./FilterItemOperator";

@@ -5,10 +7,4 @@

{
public table: {
name: string;
text: string;
};
public column: {
name: string;
text: string;
};
public table: BaseMetaTable;
public column: BaseMetaColumn;
public not: boolean;

@@ -31,3 +27,3 @@ public operator: FilterItemOperator;

{
if (i + 3 >= items.length)
if (i + 4 >= items.length)
throw new Error("Invalid value for FilterItem: " + item);

@@ -51,4 +47,4 @@ let tableIndex = i;

}
ans.push(new FilterItem({ name: table, text: table }, { name: column, text: column }, not, operator, ...values));
i += 3 + operator.count;
ans.push(new FilterItem(new BaseMetaTable(table, table), new BaseMetaColumn(column, column, "", false), not, operator, ...values));
i += 4 + operator.count;
}

@@ -58,3 +54,3 @@ }

}
constructor(table: { name: string; text: string }, column: { name: string; text: string }, not: boolean, operator: FilterItemOperator, ...values: string[])
constructor(table: BaseMetaTable, column: BaseMetaColumn, not: boolean, operator: FilterItemOperator, ...values: string[])
{

@@ -61,0 +57,0 @@ this.table = table;

export * from "./BaseDatabaseRow";
export * from "./BaseMetaColumn";
export * from "./BaseMetaTable";
export * from "./BaseServer";

@@ -3,0 +5,0 @@ export * from "./ConsoleOperation";

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