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

@syncfusion/ej2-data

Package Overview
Dependencies
Maintainers
3
Versions
173
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 17.2.48-beta to 17.2.49-beta

43

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

## 17.2.39 (2019-07-30)
### DataManager

@@ -10,2 +12,43 @@

- `242189` - CRUD Operations now function properly when using Batch Edit mode in `OdataV4Adaptor`.
- Support to enable or disable the date object parsing with `serverTimeZoneOffset` is now handled with `timeZoneHandling` property or `DataUtil.timeZoneHandling` globally.
## 17.2.36 (2019-07-24)
### DataManager
#### Bug Fixes
- `241939` - In Predicate or function , Date type has been added to give support for filtering Date values.
## 17.2.35 (2019-07-17)
### DataManager
#### Bug Fixes
- `#144418`, `#234444`, `#238765`, `#241262`, `#241163` - Date value is handled based on the server time zone offset.
## 17.2.28-beta (2019-06-27)
### DataManager
#### Bug Fixes
- #237039 - Delete operation is working properly when date column is assigned as primary key field.
## 17.1.50 (2019-06-04)
### DataManager
#### Bug Fixes
- #233040- Provided support to get the service root url from `odata` context field to use during batch operation.
## 17.1.41 (2019-04-16)
### DataManager
#### Bug Fixes
- #226615- Script error thrown in `UrlAdaptor` when `saveChanges` method is called without Query is resolved.

@@ -12,0 +55,0 @@

9

dist/global/index.d.ts

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

/*!
* filename: index.d.ts
* version : 17.2.48-beta
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
import * as _data from '@syncfusion/ej2-data';

@@ -11,0 +2,0 @@

71

package.json
{
"_from": "@syncfusion/ej2-data@*",
"_id": "@syncfusion/ej2-data@17.1.1",
"_inBundle": false,
"_integrity": "sha512-hkehXwQZR2FnTuuDrPiVYHZk8n7IOIidS6lskI4G455Z1/54yqewN+2KH9S1lZsdQCbZphc8KElgjGLRy9ZGwA==",
"_location": "/@syncfusion/ej2-data",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@syncfusion/ej2-data@*",
"name": "@syncfusion/ej2-data",
"escapedName": "@syncfusion%2fej2-data",
"scope": "@syncfusion",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/",
"/@syncfusion/ej2",
"/@syncfusion/ej2-barcode-generator",
"/@syncfusion/ej2-charts",
"/@syncfusion/ej2-diagrams",
"/@syncfusion/ej2-drawings",
"/@syncfusion/ej2-dropdowns",
"/@syncfusion/ej2-gantt",
"/@syncfusion/ej2-grids",
"/@syncfusion/ej2-heatmap",
"/@syncfusion/ej2-inplace-editor",
"/@syncfusion/ej2-lists",
"/@syncfusion/ej2-maps",
"/@syncfusion/ej2-navigations",
"/@syncfusion/ej2-pdfviewer",
"/@syncfusion/ej2-pivotview",
"/@syncfusion/ej2-schedule",
"/@syncfusion/ej2-treegrid",
"/@syncfusion/ej2-treemap"
],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-production/@syncfusion/ej2-data/-/ej2-data-17.1.1.tgz",
"_shasum": "a6ea12257be426f3b627d1a96d04992ec2f81b55",
"_spec": "@syncfusion/ej2-data@*",
"_where": "/jenkins/workspace/ation_hotfix_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included",
"author": {
"name": "Syncfusion Inc."
},
"bundleDependencies": false,
"dependencies": {
"@syncfusion/ej2-base": "17.2.48-beta"
},
"deprecated": false,
"description": "Essential JS 2 DataManager",
"devDependencies": {},
"es2015": "./dist/es6/ej2-data.es2015.js",
"license": "SEE LICENSE IN license",
"main": "./dist/ej2-data.umd.min.js",
"module": "./index.js",
"name": "@syncfusion/ej2-data",
"typings": "index.d.ts",
"version": "17.2.48-beta",
"sideEffects": false
"version": "17.2.49-beta",
"description": "Essential JS 2 DataManager",
"author": "Syncfusion Inc.",
"license": "SEE LICENSE IN license",
"main": "./dist/ej2-data.umd.min.js",
"module": "./index.js",
"es2015": "./dist/es6/ej2-data.es2015.js",
"dependencies": {
"@syncfusion/ej2-base": "17.2.49-beta"
},
"devDependencies": {},
"typings": "index.d.ts"
}

@@ -581,2 +581,3 @@ import { Ajax } from '@syncfusion/ej2-base';

update(dm: DataManager, keyField: string, value: Object, tableName?: string): Object;
batchRequest(dm: DataManager, changes: CrudOptions, e: RemoteArgs): Object;
/**

@@ -583,0 +584,0 @@ * Method will trigger before send the request to server side.

@@ -17,2 +17,4 @@ import { Ajax } from '@syncfusion/ej2-base';

/** @hidden */
timeZoneHandling: boolean;
/** @hidden */
ready: Promise<Ajax>;

@@ -138,2 +140,3 @@ private isDataAvailable;

requiresFormat?: boolean;
timeZoneHandling?: boolean;
}

@@ -140,0 +143,0 @@ /**

@@ -21,2 +21,4 @@ import { Ajax } from '@syncfusion/ej2-base';

this.dateParse = true;
/** @hidden */
this.timeZoneHandling = true;
this.requests = [];

@@ -27,2 +29,5 @@ if (!dataSource && !this.dataSource) {

adaptor = adaptor || dataSource.adaptor;
if (dataSource && dataSource.timeZoneHandling === false) {
this.timeZoneHandling = dataSource.timeZoneHandling;
}
var data;

@@ -167,5 +172,9 @@ if (dataSource instanceof Array) {

}
else {
else if (!isNullOrUndefined(result.url)) {
this.makeRequest(result, deffered, args, query);
}
else {
args = DataManager.getDeferedArgs(query, result, args);
deffered.resolve(args);
}
}

@@ -172,0 +181,0 @@ else {

@@ -14,2 +14,7 @@ import { DataManager } from './manager';

/**
* Species whether are not to be parsed with serverTimezoneOffset value.
* @hidden
*/
static timeZoneHandling: boolean;
/**
* Returns the value by invoking the provided parameter function.

@@ -274,2 +279,3 @@ * If the paramater is not of type function then it will be returned as it is.

arrayReplacer?: Function;
jsonDateReplacer?: (key: string, value: any) => any;
}

@@ -276,0 +282,0 @@ /**

@@ -342,3 +342,3 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';

if (comparer) {
current = comparer(this.getVal(left, 0, fieldName), this.getVal(right, 0, fieldName)) <= 0 ? left : right;
current = comparer(this.getVal(left, 0, fieldName), this.getVal(right, 0, fieldName), left[0], right[0]) <= 0 ? left : right;
}

@@ -502,2 +502,7 @@ else {

/**
* Species whether are not to be parsed with serverTimezoneOffset value.
* @hidden
*/
DataUtil.timeZoneHandling = true;
/**
* Throw error with the given string as message.

@@ -1739,4 +1744,5 @@ * @param {string} er

var ms = /^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(value);
var offSet = DataUtil.timeZoneHandling ? DataUtil.serverTimezoneOffset : null;
if (ms) {
return DataUtil.dateParse.toTimeZone(new Date(parseInt(ms[1], 10)), DataUtil.serverTimezoneOffset, true);
return DataUtil.dateParse.toTimeZone(new Date(parseInt(ms[1], 10)), offSet, true);
}

@@ -1746,3 +1752,3 @@ else if (/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(value)) {

value = DataUtil.dateParse
.toTimeZone(new Date(parseInt(arr[0], 10), parseInt(arr[1], 10) - 1, parseInt(arr[2], 10), parseInt(arr[3], 10), parseInt(arr[4], 10), parseInt(arr[5], 10)), DataUtil.serverTimezoneOffset, true);
.toTimeZone(new Date(parseInt(arr[0], 10), parseInt(arr[1], 10) - 1, parseInt(arr[2], 10), parseInt(arr[3], 10), parseInt(arr[4], 10), parseInt(arr[5], 10)), offSet, true);
}

@@ -1825,2 +1831,36 @@ }

return val;
},
/**
* It will replace the Date object with respective to UTC format value.
* @param {string} key
* @param {any} value
* @hidden
*/
/* tslint:disable-next-line:no-any */
jsonDateReplacer: function (key, value) {
if (key === 'value' && value) {
if (typeof value === 'string') {
var ms = /^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(value);
if (ms) {
value = DataUtil.dateParse.toTimeZone(new Date(parseInt(ms[1], 10)), null, true);
}
else if (/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(value)) {
var arr = value.split(/[^0-9]/);
value = DataUtil.dateParse
.toTimeZone(new Date(parseInt(arr[0], 10), parseInt(arr[1], 10) - 1, parseInt(arr[2], 10), parseInt(arr[3], 10), parseInt(arr[4], 10), parseInt(arr[5], 10)), null, true);
}
}
if (value instanceof Date) {
value = DataUtil.dateParse.addSelfOffset(value);
if (DataUtil.serverTimezoneOffset === null) {
return DataUtil.dateParse.toTimeZone(DataUtil.dateParse.addSelfOffset(value), null).toJSON();
}
else {
value = DataUtil.dateParse.toTimeZone(value, (((value.getTimezoneOffset() / 60) * 2)
- DataUtil.serverTimezoneOffset), false);
return value.toJSON();
}
}
}
return value;
}

@@ -1827,0 +1867,0 @@ };

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

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 not supported yet

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

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 not supported yet

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