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

namirasoft-core

Package Overview
Dependencies
Maintainers
0
Versions
146
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.4.19 to 1.4.21

4

dist/BaseMetaColumn.d.ts

@@ -0,2 +1,4 @@

import { BaseMetaTable } from "./BaseMetaTable";
export declare class BaseMetaColumn {
table: BaseMetaTable;
name: string;

@@ -6,3 +8,3 @@ text: string;

required: boolean;
constructor(name: string, text: string, type: string, required: boolean);
constructor(table: BaseMetaTable, name: string, text: string, type: string, required: boolean);
}

@@ -5,3 +5,4 @@ "use strict";

class BaseMetaColumn {
constructor(name, text, type, required) {
constructor(table, name, text, type, required) {
this.table = table;
this.name = name;

@@ -8,0 +9,0 @@ this.text = text;

import { BaseMetaColumn } from "./BaseMetaColumn";
import { BaseMetaDatabase } from "./BaseMetaDatabase";
export declare class BaseMetaTable {
database: BaseMetaDatabase | null;
name: string;

@@ -8,5 +10,5 @@ text: string;

};
constructor(name: string, text: string);
constructor(database: BaseMetaDatabase | null, name: string, text: string);
forEachColumn<T, MC extends BaseMetaColumn>(handler: (table: MC) => T | null): T | null;
getColumns<MC extends BaseMetaColumn>(): MC[];
}

@@ -5,4 +5,5 @@ "use strict";

class BaseMetaTable {
constructor(name, text) {
constructor(database, name, text) {
this.columns = {};
this.database = database;
this.name = name;

@@ -9,0 +10,0 @@ this.text = text;

@@ -18,9 +18,19 @@ "use strict";

});
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;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });

@@ -27,0 +37,0 @@ exports.EncryptionOperation = void 0;

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

@@ -19,9 +15,3 @@ operator: FilterItemOperator;

static test(filters: FilterItem[] | null, object: any): boolean;
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;

@@ -28,0 +18,0 @@ isAllColumns(): boolean;

@@ -38,5 +38,5 @@ "use strict";

let value_table = next("Table");
let table = new BaseMetaTable_1.BaseMetaTable(value_table, value_table);
let table = new BaseMetaTable_1.BaseMetaTable(null, value_table, value_table);
let value_column = next("Column");
let column = new BaseMetaColumn_1.BaseMetaColumn(value_column, value_column, "", false);
let column = new BaseMetaColumn_1.BaseMetaColumn(table, value_column, value_column, "", false);
let value_not = next("Not");

@@ -43,0 +43,0 @@ let not = value_not != "0";

@@ -18,9 +18,19 @@ "use strict";

});
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;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });

@@ -27,0 +37,0 @@ exports.HashOperation = void 0;

@@ -18,9 +18,19 @@ "use strict";

});
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;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });

@@ -27,0 +37,0 @@ exports.PhoneOperation = void 0;

@@ -0,10 +1,6 @@

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

@@ -15,11 +11,5 @@ static encode(sorts: SortItem[] | null): string;

static parse(item: string | null): SortItem[];
constructor(table: {
name: string;
text: string;
}, column: {
name: string;
text: string;
}, ascending: boolean);
constructor(table: BaseMetaTable, column: BaseMetaColumn, ascending: boolean);
getCommand(): string;
toString(): string;
}

@@ -37,5 +37,5 @@ "use strict";

let value_table = next("Table");
let table = new BaseMetaTable_1.BaseMetaTable(value_table, value_table);
let table = new BaseMetaTable_1.BaseMetaTable(null, value_table, value_table);
let value_column = next("Column");
let column = new BaseMetaColumn_1.BaseMetaColumn(value_column, value_column, "", false);
let column = new BaseMetaColumn_1.BaseMetaColumn(table, value_column, value_column, "", false);
let value_asc = next("Asending").toLowerCase();

@@ -42,0 +42,0 @@ let asc = value_asc === "asc";

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

"private": false,
"version": "1.4.19",
"version": "1.4.21",
"author": "Amir Abolhasani",

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

@@ -0,0 +0,0 @@ export type BaseDatabaseRow<ID> =

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

import { BaseMetaTable } from "./BaseMetaTable";
export class BaseMetaColumn
{
table: BaseMetaTable;
name: string;

@@ -7,4 +10,5 @@ text: string;

required: boolean;
constructor(name: string, text: string, type: string, required: boolean)
constructor(table: BaseMetaTable, name: string, text: string, type: string, required: boolean)
{
this.table = table;
this.name = name;

@@ -11,0 +15,0 @@ this.text = text;

@@ -0,0 +0,0 @@ import { BaseMetaTable } from "./BaseMetaTable";

import { BaseMetaColumn } from "./BaseMetaColumn";
import { BaseMetaDatabase } from "./BaseMetaDatabase";
export class BaseMetaTable
{
database: BaseMetaDatabase | null;
name: string;
text: string;
public columns: { [name: string]: BaseMetaColumn } = {};
constructor(name: string, text: string)
constructor(database: BaseMetaDatabase | null, name: string, text: string)
{
this.database = database;
this.name = name;

@@ -11,0 +14,0 @@ this.text = text;

@@ -0,0 +0,0 @@ import axios, { AxiosRequestConfig, AxiosResponse } from "axios";

@@ -0,0 +0,0 @@ import { v4 } from "uuid";

@@ -0,0 +0,0 @@ import { IStorage } from "./IStorage";

@@ -0,0 +0,0 @@ export class ConsoleOperation

@@ -0,0 +0,0 @@ import { ErrorOperation } from "./ErrorOperation";

@@ -0,0 +0,0 @@ import { ConvertService } from "./ConvertService";

@@ -0,0 +0,0 @@ import { Country } from "./Country";

@@ -0,0 +0,0 @@ export class Country

@@ -0,0 +0,0 @@ import { Country } from "./Country";

@@ -0,0 +0,0 @@ import { Buffer } from 'buffer';

@@ -0,0 +0,0 @@ import * as crypto from 'node:crypto';

@@ -0,0 +0,0 @@ import { ConvertService } from "./ConvertService";

@@ -0,0 +0,0 @@ import { HTTPError } from "./HTTPError";

@@ -0,0 +0,0 @@ let fs: any;

@@ -9,4 +9,4 @@ import { BaseMetaColumn } from "./BaseMetaColumn";

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

@@ -51,6 +51,6 @@ public operator: FilterItemOperator;

let value_table = next("Table");
let table = new BaseMetaTable(value_table, value_table);
let table = new BaseMetaTable(null, value_table, value_table);
let value_column = next("Column");
let column = new BaseMetaColumn(value_column, value_column, "", false)
let column = new BaseMetaColumn(table, value_column, value_column, "", false)

@@ -90,3 +90,3 @@ let value_not = next("Not");

}
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[])
{

@@ -93,0 +93,0 @@ this.table = table;

@@ -0,0 +0,0 @@ export enum FilterItemColumnType

@@ -0,0 +0,0 @@ import { ErrorOperation } from "./ErrorOperation";

@@ -0,0 +0,0 @@ export class GeoOperation

@@ -0,0 +0,0 @@ import * as crypto from 'node:crypto';

@@ -0,0 +0,0 @@ export class HTTPError extends Error

@@ -0,0 +0,0 @@ export enum HTTPMethod

@@ -0,0 +0,0 @@ export * from "./BaseDatabaseRow";

@@ -0,0 +0,0 @@ export abstract class IStorage

@@ -0,0 +0,0 @@ import { EncodingOperation } from "./EncodingOperation";

@@ -0,0 +0,0 @@ import fs from "fs";

@@ -0,0 +0,0 @@ import { IStorage } from "./IStorage.js";

@@ -0,0 +0,0 @@ import { IStorage } from "./IStorage";

@@ -0,0 +0,0 @@ export class NamingConvention

@@ -0,0 +0,0 @@ import { ConvertService } from "./ConvertService";

@@ -0,0 +0,0 @@ let fs: any;

@@ -0,0 +0,0 @@ import * as Phone from 'phone';

@@ -0,0 +0,0 @@ export class PriceOperation

@@ -0,0 +0,0 @@ export class RegexTemplate

@@ -0,0 +0,0 @@ export class SearchOperation

@@ -8,4 +8,4 @@ import { BaseMetaColumn } from "./BaseMetaColumn";

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

@@ -48,6 +48,6 @@ public static encode(sorts: SortItem[] | null): string

let value_table = next("Table");
let table = new BaseMetaTable(value_table, value_table);
let table = new BaseMetaTable(null, value_table, value_table);
let value_column = next("Column");
let column = new BaseMetaColumn(value_column, value_column, "", false)
let column = new BaseMetaColumn(table, value_column, value_column, "", false)

@@ -64,3 +64,3 @@ let value_asc = next("Asending").toLowerCase();

}
constructor(table: { name: string; text: string; }, column: { name: string; text: string; }, ascending: boolean)
constructor(table: BaseMetaTable, column: BaseMetaColumn, ascending: boolean)
{

@@ -67,0 +67,0 @@ this.table = table;

@@ -0,0 +0,0 @@ export class StringOperation

@@ -0,0 +0,0 @@ import moment from "moment";

@@ -0,0 +0,0 @@ import { ParsedNameValue } from "./ParsedNameValue";

@@ -0,0 +0,0 @@ export class VersionOperation

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

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

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