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

@ag-grid-enterprise/server-side-row-model

Package Overview
Dependencies
Maintainers
3
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag-grid-enterprise/server-side-row-model - npm Package Compare versions

Comparing version 29.3.3 to 29.3.4

32

dist/cjs/es5/serverSideRowModel/stores/lazy/lazyCache.js

@@ -278,16 +278,32 @@ "use strict";

LazyCache.prototype.getDisplayIndexFromStoreIndex = function (storeIndex) {
var nodesAfterThis = this.nodeMap.filter(function (lazyNode) { return lazyNode.index > storeIndex; });
if (nodesAfterThis.length === 0) {
return this.store.getDisplayIndexEnd() - (this.numberOfRows - storeIndex);
var _a, _b;
var nodeAtIndex = this.nodeMap.getBy('index', storeIndex);
if (nodeAtIndex) {
return nodeAtIndex.node.rowIndex;
}
var nextNode;
for (var i = 0; i < nodesAfterThis.length; i++) {
var lazyNode = nodesAfterThis[i];
var previousNode;
this.nodeMap.forEach(function (lazyNode) {
// previous node
if (storeIndex > lazyNode.index) {
// get the largest previous node
if (previousNode == null || previousNode.index < lazyNode.index) {
previousNode = lazyNode;
}
return;
}
// next node
// get the smallest next node
if (nextNode == null || nextNode.index > lazyNode.index) {
nextNode = lazyNode;
return;
}
});
if (!nextNode) {
return this.store.getDisplayIndexEnd() - (this.numberOfRows - storeIndex);
}
var nextDisplayIndex = nextNode.node.rowIndex;
var storeIndexDiff = nextNode.index - storeIndex;
return nextDisplayIndex - storeIndexDiff;
if (!previousNode) {
return this.store.getDisplayIndexStart() + storeIndex;
}
return (_b = (_a = previousNode.node.childStore) === null || _a === void 0 ? void 0 : _a.getDisplayIndexEnd()) !== null && _b !== void 0 ? _b : previousNode.node.rowIndex + 1;
};

@@ -294,0 +310,0 @@ /**

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

export declare const VERSION = "29.3.3";
export declare const VERSION = "29.3.4";

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

// DO NOT UPDATE MANUALLY: Generated from script during build time
exports.VERSION = '29.3.3';
exports.VERSION = '29.3.4';

@@ -241,16 +241,32 @@ "use strict";

getDisplayIndexFromStoreIndex(storeIndex) {
const nodesAfterThis = this.nodeMap.filter(lazyNode => lazyNode.index > storeIndex);
if (nodesAfterThis.length === 0) {
return this.store.getDisplayIndexEnd() - (this.numberOfRows - storeIndex);
var _a, _b;
const nodeAtIndex = this.nodeMap.getBy('index', storeIndex);
if (nodeAtIndex) {
return nodeAtIndex.node.rowIndex;
}
let nextNode;
for (let i = 0; i < nodesAfterThis.length; i++) {
const lazyNode = nodesAfterThis[i];
let previousNode;
this.nodeMap.forEach(lazyNode => {
// previous node
if (storeIndex > lazyNode.index) {
// get the largest previous node
if (previousNode == null || previousNode.index < lazyNode.index) {
previousNode = lazyNode;
}
return;
}
// next node
// get the smallest next node
if (nextNode == null || nextNode.index > lazyNode.index) {
nextNode = lazyNode;
return;
}
});
if (!nextNode) {
return this.store.getDisplayIndexEnd() - (this.numberOfRows - storeIndex);
}
const nextDisplayIndex = nextNode.node.rowIndex;
const storeIndexDiff = nextNode.index - storeIndex;
return nextDisplayIndex - storeIndexDiff;
if (!previousNode) {
return this.store.getDisplayIndexStart() + storeIndex;
}
return (_b = (_a = previousNode.node.childStore) === null || _a === void 0 ? void 0 : _a.getDisplayIndexEnd()) !== null && _b !== void 0 ? _b : previousNode.node.rowIndex + 1;
}

@@ -257,0 +273,0 @@ /**

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

export declare const VERSION = "29.3.3";
export declare const VERSION = "29.3.4";

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

// DO NOT UPDATE MANUALLY: Generated from script during build time
exports.VERSION = '29.3.3';
exports.VERSION = '29.3.4';

@@ -275,16 +275,32 @@ var __extends = (this && this.__extends) || (function () {

LazyCache.prototype.getDisplayIndexFromStoreIndex = function (storeIndex) {
var nodesAfterThis = this.nodeMap.filter(function (lazyNode) { return lazyNode.index > storeIndex; });
if (nodesAfterThis.length === 0) {
return this.store.getDisplayIndexEnd() - (this.numberOfRows - storeIndex);
var _a, _b;
var nodeAtIndex = this.nodeMap.getBy('index', storeIndex);
if (nodeAtIndex) {
return nodeAtIndex.node.rowIndex;
}
var nextNode;
for (var i = 0; i < nodesAfterThis.length; i++) {
var lazyNode = nodesAfterThis[i];
var previousNode;
this.nodeMap.forEach(function (lazyNode) {
// previous node
if (storeIndex > lazyNode.index) {
// get the largest previous node
if (previousNode == null || previousNode.index < lazyNode.index) {
previousNode = lazyNode;
}
return;
}
// next node
// get the smallest next node
if (nextNode == null || nextNode.index > lazyNode.index) {
nextNode = lazyNode;
return;
}
});
if (!nextNode) {
return this.store.getDisplayIndexEnd() - (this.numberOfRows - storeIndex);
}
var nextDisplayIndex = nextNode.node.rowIndex;
var storeIndexDiff = nextNode.index - storeIndex;
return nextDisplayIndex - storeIndexDiff;
if (!previousNode) {
return this.store.getDisplayIndexStart() + storeIndex;
}
return (_b = (_a = previousNode.node.childStore) === null || _a === void 0 ? void 0 : _a.getDisplayIndexEnd()) !== null && _b !== void 0 ? _b : previousNode.node.rowIndex + 1;
};

@@ -291,0 +307,0 @@ /**

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

export declare const VERSION = "29.3.3";
export declare const VERSION = "29.3.4";
// DO NOT UPDATE MANUALLY: Generated from script during build time
export var VERSION = '29.3.3';
export var VERSION = '29.3.4';

@@ -238,16 +238,32 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

getDisplayIndexFromStoreIndex(storeIndex) {
const nodesAfterThis = this.nodeMap.filter(lazyNode => lazyNode.index > storeIndex);
if (nodesAfterThis.length === 0) {
return this.store.getDisplayIndexEnd() - (this.numberOfRows - storeIndex);
var _a, _b;
const nodeAtIndex = this.nodeMap.getBy('index', storeIndex);
if (nodeAtIndex) {
return nodeAtIndex.node.rowIndex;
}
let nextNode;
for (let i = 0; i < nodesAfterThis.length; i++) {
const lazyNode = nodesAfterThis[i];
let previousNode;
this.nodeMap.forEach(lazyNode => {
// previous node
if (storeIndex > lazyNode.index) {
// get the largest previous node
if (previousNode == null || previousNode.index < lazyNode.index) {
previousNode = lazyNode;
}
return;
}
// next node
// get the smallest next node
if (nextNode == null || nextNode.index > lazyNode.index) {
nextNode = lazyNode;
return;
}
});
if (!nextNode) {
return this.store.getDisplayIndexEnd() - (this.numberOfRows - storeIndex);
}
const nextDisplayIndex = nextNode.node.rowIndex;
const storeIndexDiff = nextNode.index - storeIndex;
return nextDisplayIndex - storeIndexDiff;
if (!previousNode) {
return this.store.getDisplayIndexStart() + storeIndex;
}
return (_b = (_a = previousNode.node.childStore) === null || _a === void 0 ? void 0 : _a.getDisplayIndexEnd()) !== null && _b !== void 0 ? _b : previousNode.node.rowIndex + 1;
}

@@ -254,0 +270,0 @@ /**

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

export declare const VERSION = "29.3.3";
export declare const VERSION = "29.3.4";
// DO NOT UPDATE MANUALLY: Generated from script during build time
export const VERSION = '29.3.3';
export const VERSION = '29.3.4';
{
"name": "@ag-grid-enterprise/server-side-row-model",
"version": "29.3.3",
"version": "29.3.4",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -50,4 +50,4 @@ "main": "./dist/cjs/es5/main.js",

"dependencies": {
"@ag-grid-community/core": "~29.3.3",
"@ag-grid-enterprise/core": "~29.3.3"
"@ag-grid-community/core": "~29.3.4",
"@ag-grid-enterprise/core": "~29.3.4"
},

@@ -54,0 +54,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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