🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@syncfusion/ej2-data

Package Overview
Dependencies
Maintainers
3
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-data - npm Package Compare versions

Comparing version
33.2.12
to
34.1.29
+1
-1
dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 33.2.12
* version : 34.1.29
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"name": "@syncfusion/ej2-data",
"version": "33.2.12",
"version": "34.1.29",
"description": "Essential JS 2 DataManager",

@@ -11,3 +11,3 @@ "author": "Syncfusion Inc.",

"dependencies": {
"@syncfusion/ej2-base": "~33.2.3"
"@syncfusion/ej2-base": "~34.1.29"
},

@@ -14,0 +14,0 @@ "devDependencies": {},

@@ -819,2 +819,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

DataManager.prototype.successFunc = function (record, request, changes) {
var _this = this;
if (this.isGraphQLAdaptor(this.adaptor)) {

@@ -837,18 +838,21 @@ var data = typeof record === 'object' ? record : JSON.parse(record);

}
if (this.isEnableCache) {
var requests = JSON.parse(request.data);
if (requests.action === 'insert' || requests.action === 'remove') {
var obj = { keys: [], results: [] };
window.localStorage.setItem(this.guidId, JSON.stringify(obj));
}
else if (requests.action === 'update') {
var cachedItems = JSON.parse(window.localStorage.getItem(this.guidId));
var data = cachedItems ? cachedItems.results[cachedItems.keys.indexOf(this.cacheQuery)] : null;
if (data && data.result) {
var cacheData = data.result;
for (var i = 0; i < cacheData.length; i++) {
if (cacheData[i][requests.keyColumn] === requests.key) {
cacheData[i] = requests.value;
window.localStorage.setItem(this.guidId, JSON.stringify(cachedItems));
break;
var promise = this.afterReponseRequest(record);
promise.then(function (record) {
if (_this.isEnableCache) {
var requests = JSON.parse(request.data);
if (requests.action === 'insert' || requests.action === 'remove') {
var obj = { keys: [], results: [] };
window.localStorage.setItem(_this.guidId, JSON.stringify(obj));
}
else if (requests.action === 'update') {
var cachedItems = JSON.parse(window.localStorage.getItem(_this.guidId));
var data = cachedItems ? cachedItems.results[cachedItems.keys.indexOf(_this.cacheQuery)] : null;
if (data && data.result) {
var cacheData = data.result;
for (var i = 0; i < cacheData.length; i++) {
if (cacheData[i][requests.keyColumn] === requests.key) {
cacheData[i] = requests.value;
window.localStorage.setItem(_this.guidId, JSON.stringify(cachedItems));
break;
}
}

@@ -858,5 +862,5 @@ }

}
}
record = this.adaptor.processResponse(DataUtil.parse.parseJson(record), this, null, request.fetchRequest, request, changes);
this.fetchDeffered.resolve(record);
record = _this.adaptor.processResponse(DataUtil.parse.parseJson(record), _this, null, request.fetchRequest, request, changes);
_this.fetchDeffered.resolve(record);
}).catch(function (e) { return _this.dataManagerFailure(e, _this.fetchDeffered); });
};

@@ -863,0 +867,0 @@ DataManager.prototype.failureFunc = function (e) {

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

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

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