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

nodejs-data-grid

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejs-data-grid - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

2

dist/lib/AKnexGrid.d.ts

@@ -11,3 +11,3 @@ import { Knex } from 'knex';

protected searchableColumns: string[] | null;
protected abstract searchQuery(knex: Knex): any;
protected abstract searchQuery(knex: Knex, dto: IGridRequestDto): any;
protected abstract toObject(data: Record<string, unknown>): T;

@@ -14,0 +14,0 @@ filter(dto: IGridRequestDto): Promise<GridResponse<T>>;

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

async filter(dto) {
let query = this.searchQuery(this.knex);
let query = this.searchQuery(this.knex, dto);
query = this.addFilters(query, dto);

@@ -144,4 +144,4 @@ const countRes = await query.clone().clear('select').clear('group').count();

}
static __type = ['T', 'knex', 'constructor', () => __ΩRecord, 'filterableColumns', function () { return null; }, () => __ΩRecord, 'sortableColumns', function () { return null; }, 'searchableColumns', function () { return null; }, 'searchQuery', () => __ΩRecord, 'data', 'toObject', () => __ΩIGridRequestDto, 'dto', () => GridResponse_1.default, 'filter', 'query', () => __ΩIGridRequestDto, 'addPaging', () => __ΩIGridRequestDto, 'addSorters', () => __ΩIGridRequestDto, 'addFilters', 'name', 'getFilterableColumn', () => __ΩIGridRequestDtoFilter, 'addOrExpression', 'b!P"2";"0#P&&o$#,J3%<>&P&&o\'#,J3(<>)P&F,J3*<>+P"2""0,<=P&#o-#2.e"!0/<=Pn021Pe#!72`03P"24n521"06;P"24n721"08;P"24n921"0:;P&2;&0<;P"24n=23"0>;5'];
static __type = ['T', 'knex', 'constructor', () => __ΩRecord, 'filterableColumns', function () { return null; }, () => __ΩRecord, 'sortableColumns', function () { return null; }, 'searchableColumns', function () { return null; }, () => __ΩIGridRequestDto, 'dto', 'searchQuery', () => __ΩRecord, 'data', 'toObject', () => __ΩIGridRequestDto, () => GridResponse_1.default, 'filter', 'query', () => __ΩIGridRequestDto, 'addPaging', () => __ΩIGridRequestDto, 'addSorters', () => __ΩIGridRequestDto, 'addFilters', 'name', 'getFilterableColumn', () => __ΩIGridRequestDtoFilter, 'addOrExpression', 'b!P"2";"0#P&&o$#,J3%<>&P&&o\'#,J3(<>)P&F,J3*<>+P"2"n,2-"0.<=P&#o/#20e"!01<=Pn22-Pe#!73`04P"25n62-"07;P"25n82-"09;P"25n:2-"0;;P&2<&0=;P"25n>24"0?;5'];
}
exports.default = AKnexGrid;

@@ -11,2 +11,3 @@ export interface IGridRequestDto {

};
extras?: Record<string, any>;
}

@@ -13,0 +14,0 @@ export interface IGridRequestDtoFilter {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Direction = exports.__ΩDirection = exports.Operator = exports.__ΩOperator = exports.__ΩIGridRequestDtoSorter = exports.__ΩIGridRequestDtoFilter = exports.__ΩIGridRequestDto = void 0;
const __ΩIGridRequestDto = [() => __ΩIGridRequestDtoFilter, 'filter', () => __ΩIGridRequestDtoFilter, 'additionalFilter', () => __ΩIGridRequestDtoSorter, 'sorter', () => __ΩIGridRequestDtoSorter, 'additionalSorter', 'search', 'page', 'itemsPerPage', 'paging', 'Pn!FF4"8n#FF4$8n%F4&8n\'F4(8&4)8P\'4*\'4+M4,8M'];
const __ΩRecord = ['K', 'T', 'l\'e#"Rb!b"Pde"!N#!'];
const __ΩIGridRequestDto = [() => __ΩIGridRequestDtoFilter, 'filter', () => __ΩIGridRequestDtoFilter, 'additionalFilter', () => __ΩIGridRequestDtoSorter, 'sorter', () => __ΩIGridRequestDtoSorter, 'additionalSorter', 'search', 'page', 'itemsPerPage', 'paging', () => __ΩRecord, 'extras', 'Pn!FF4"8n#FF4$8n%F4&8n\'F4(8&4)8P\'4*\'4+M4,8&"o-#4.8M'];
exports.__ΩIGridRequestDto = __ΩIGridRequestDto;

@@ -6,0 +7,0 @@ const __ΩIGridRequestDtoFilter = ['column', () => __ΩOperator, 'operator', 'value', 'P&4!n"4#&F4$M'];

import AKnexGrid from '../lib/AKnexGrid';
import { Knex } from 'knex';
import { IGridRequestDto } from '../lib/GridRequestDto';
import GridItem from './GridItem';

@@ -8,3 +9,3 @@ export default class ExampleGrid extends AKnexGrid<GridItem> {

protected searchableColumns: string[] | null;
protected searchQuery(knex: Knex): Knex.QueryBuilder<any, ({
protected searchQuery(knex: Knex, dto: IGridRequestDto): Knex.QueryBuilder<any, ({
_base: any;

@@ -11,0 +12,0 @@ _hasSelection: true;

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const { __ΩIGridRequestDto } = require('../lib/GridRequestDto');
const __ΩRecord = ['K', 'T', 'l\'e#"Rb!b"Pde"!N#!'];

@@ -24,3 +25,3 @@ const AKnexGrid_1 = __importDefault(require("../lib/AKnexGrid"));

];
searchQuery(knex) {
searchQuery(knex, dto) {
return knex

@@ -44,4 +45,4 @@ .from('example as e')

'namae',
]; }, 'knex', 'searchQuery', () => __ΩRecord, 'data', () => GridItem_1.default, 'toObject', 'P&&o!#,J3"<>#P&&o$#,J3%<>&P&F,J3\'<>(P"2)"0*<P&#o+#2,P7-0.<5!6"'];
]; }, 'knex', () => __ΩIGridRequestDto, 'dto', 'searchQuery', () => __ΩRecord, 'data', () => GridItem_1.default, 'toObject', 'P&&o!#,J3"<>#P&&o$#,J3%<>&P&F,J3\'<>(P"2)n*2+"0,<P&#o-#2.P7/00<5!6"'];
}
exports.default = ExampleGrid;

@@ -19,3 +19,3 @@ import { Knex } from 'knex';

// @ts-ignore
protected abstract searchQuery(knex: Knex);
protected abstract searchQuery(knex: Knex, dto: IGridRequestDto);

@@ -25,3 +25,3 @@ protected abstract toObject(data: Record<string, unknown>): T;

public async filter(dto: IGridRequestDto): Promise<GridResponse<T>> {
let query = this.searchQuery(this.knex);
let query = this.searchQuery(this.knex, dto);
query = this.addFilters(query, dto);

@@ -28,0 +28,0 @@ const countRes = await query.clone().clear('select').clear('group').count();

@@ -11,2 +11,3 @@ export interface IGridRequestDto {

},
extras?: Record<string, any>,
}

@@ -13,0 +14,0 @@

{
"name": "nodejs-data-grid",
"version": "1.3.5",
"version": "1.3.6",
"description": "",

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

import AKnexGrid from '../lib/AKnexGrid';
import { Knex } from 'knex';
import { IGridRequestDto } from '../lib/GridRequestDto';
import GridItem from './GridItem';

@@ -23,3 +24,3 @@

protected searchQuery(knex: Knex) {
protected searchQuery(knex: Knex, dto: IGridRequestDto) {
return knex

@@ -26,0 +27,0 @@ .from('example as e')

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