New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-data

Package Overview
Dependencies
Maintainers
4
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.3.14 to 17.3.17

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Changelog

#### Bug Fixes
- `250531`, `148065`, `251052` - Date time values are now properly `serialized`.
## 17.3.14 (2019-10-03)
### DataManager
#### Breaking Changes

@@ -9,0 +17,0 @@

9

dist/global/index.d.ts

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

/*!
* filename: index.d.ts
* version : 17.3.14
* 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 @@

122

package.json
{
"_from": "@syncfusion/ej2-data@*",
"_id": "@syncfusion/ej2-data@17.3.9",
"_inBundle": false,
"_integrity": "sha512-MMvnBcpkmVW9sC1zZJq6BZWbCXeDg2CRSrpz87BT6iPnbnbEAaTxc+bvf0iAzwk0E95aM8L7aVF1Xb5g6OshWA==",
"_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-release/@syncfusion/ej2-data/-/ej2-data-17.3.9.tgz",
"_shasum": "f2c40bb3c12efebda1b08c3e76df97fc759d476b",
"_spec": "@syncfusion/ej2-data@*",
"_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included",
"author": {
"name": "Syncfusion Inc."
},
"bundleDependencies": false,
"dependencies": {
"@syncfusion/ej2-base": "~17.3.14"
},
"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.3.14",
"sideEffects": false
}
"_from": "@syncfusion/ej2-data@*",
"_id": "@syncfusion/ej2-data@17.3.17",
"_inBundle": false,
"_integrity": "sha512-MMvnBcpkmVW9sC1zZJq6BZWbCXeDg2CRSrpz87BT6iPnbnbEAaTxc+bvf0iAzwk0E95aM8L7aVF1Xb5g6OshWA==",
"_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-release/@syncfusion/ej2-data/-/ej2-data-17.3.17.tgz",
"_shasum": "f2c40bb3c12efebda1b08c3e76df97fc759d476b",
"_spec": "@syncfusion/ej2-data@*",
"_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included",
"author": {
"name": "Syncfusion Inc."
},
"bundleDependencies": false,
"dependencies": {
"@syncfusion/ej2-base": "~17.3.16"
},
"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.3.17",
"sideEffects": false
}

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

* This is the base adaptor class that other adaptors can extend.
* @hidden
*/

@@ -14,3 +14,3 @@ export declare class Adaptor {

* Specifies the datasource option.
* @default null
*/

@@ -22,4 +22,4 @@ dataSource: DataOptions;

* It contains the datamanager operations list like group, searches, etc.,
* @default null
* @hidden
*/

@@ -30,3 +30,3 @@ pvt: PvtOptions;

* @param {DataOptions} ds?
* @hidden
* @returns aggregates

@@ -47,3 +47,3 @@ */

* Specifies the type of adaptor.
* @default Adaptor
*/

@@ -54,3 +54,3 @@ type: Object;

* JsonAdaptor is used to process JSON data. It contains methods to process the given JSON data based on the queries.
* @hidden
*/

@@ -187,3 +187,3 @@ export declare class JsonAdaptor extends Adaptor {

* It interacts with server-side for all DataManager Queries and CRUD operations.
* @hidden
*/

@@ -272,3 +272,3 @@ export declare class UrlAdaptor extends Adaptor {

* @param {Query} query
* @hidden
*/

@@ -289,3 +289,3 @@ getFiltersFrom(data: Object[] | string[] | number[], query: Query): Predicate;

* OData Adaptor that is extended from URL Adaptor, is used for consuming data through OData Service.
* @hidden
*/

@@ -296,4 +296,4 @@ export declare class ODataAdaptor extends UrlAdaptor {

* Specifies the root url of the provided odata url.
* @hidden
* @default null
*/

@@ -303,4 +303,4 @@ rootUrl: string;

* Specifies the resource name of the provided odata table.
* @hidden
* @default null
*/

@@ -483,7 +483,7 @@ resourceTableName: string;

* The DataManager uses the ODataV4Adaptor to consume OData v4 services.
* @hidden
*/
export declare class ODataV4Adaptor extends ODataAdaptor {
/**
* @hidden
*/

@@ -566,3 +566,3 @@ protected getModuleName(): string;

* Since this adaptor is targeted to interact with Web API created using OData endpoint, it is extended from ODataAdaptor
* @hidden
*/

@@ -618,3 +618,3 @@ export declare class WebApiAdaptor extends ODataAdaptor {

* WebMethodAdaptor can be used by DataManager to interact with web method.
* @hidden
*/

@@ -635,7 +635,7 @@ export declare class WebMethodAdaptor extends UrlAdaptor {

* It interacts with server-side only for CRUD operations.
* @hidden
*/
export declare class RemoteSaveAdaptor extends JsonAdaptor {
/**
* @hidden
*/

@@ -668,3 +668,3 @@ constructor();

* You can configure cache page size and duration of caching by using cachingPageSize and timeTillExpiration properties of the DataManager
* @hidden
*/

@@ -682,3 +682,3 @@ export declare class CacheAdaptor extends UrlAdaptor {

* @param {number} pageSize?
* @hidden
*/

@@ -690,3 +690,3 @@ constructor(adaptor?: CacheAdaptor, timeStamp?: number, pageSize?: number);

* @param {Query} query?
* @hidden
*/

@@ -753,3 +753,3 @@ generateKey(url: string, query: Query): string;

/**
* @hidden
*/

@@ -768,3 +768,3 @@ export interface CrudOptions {

/**
* @hidden
*/

@@ -780,3 +780,3 @@ export interface PvtOptions {

/**
* @hidden
*/

@@ -799,3 +799,3 @@ export interface DataResult {

/**
* @hidden
*/

@@ -810,3 +810,3 @@ export interface Requests {

/**
* @hidden
*/

@@ -821,3 +821,3 @@ export interface RemoteArgs {

/**
* @hidden
*/

@@ -824,0 +824,0 @@ export interface RemoteOptions {

@@ -8,7 +8,13 @@ import { Ajax } from '@syncfusion/ej2-base';

export declare class DataManager {
/** @hidden */
adaptor: AdaptorOptions;
/** @hidden */
defaultQuery: Query;
/** @hidden */
dataSource: DataOptions;
/** @hidden */
dateParse: boolean;
/** @hidden */
timeZoneHandling: boolean;
/** @hidden */
ready: Promise<Ajax>;

@@ -22,3 +28,3 @@ private isDataAvailable;

* @param {AdaptorOptions|string} adaptor?
* @hidden
*/

@@ -111,3 +117,3 @@ constructor(dataSource?: DataOptions | JSON[] | Object[], query?: Query, adaptor?: AdaptorOptions | string);

/**
* @hidden
*/

@@ -139,3 +145,3 @@ export interface DataOptions {

/**
* @hidden
*/

@@ -149,3 +155,3 @@ export interface ReturnOption {

/**
* @hidden
*/

@@ -163,3 +169,3 @@ export interface RequestOptions {

/**
* @hidden
*/

@@ -166,0 +172,0 @@ export interface AdaptorOptions {

@@ -15,7 +15,9 @@ import { Ajax } from '@syncfusion/ej2-base';

* @param {AdaptorOptions|string} adaptor?
* @hidden
*/
function DataManager(dataSource, query, adaptor) {
var _this = this;
/** @hidden */
this.dateParse = true;
/** @hidden */
this.timeZoneHandling = true;

@@ -22,0 +24,0 @@ this.requests = [];

@@ -7,16 +7,31 @@ import { DataManager } from './manager';

export declare class Query {
/** @hidden */
queries: QueryOptions[];
/** @hidden */
key: string;
/** @hidden */
fKey: string;
/** @hidden */
fromTable: string;
/** @hidden */
lookups: string[];
/** @hidden */
expands: Object[];
/** @hidden */
sortedColumns: Object[];
/** @hidden */
groupedColumns: Object[];
/** @hidden */
subQuerySelector: Function;
/** @hidden */
subQuery: Query;
/** @hidden */
isChild: boolean;
/** @hidden */
params: ParamOption[];
/** @hidden */
isCountRequired: boolean;
/** @hidden */
dataManager: DataManager;
/** @hidden */
distincts: string[];

@@ -26,3 +41,3 @@ /**

* @param {string|string[]} from?
* @hidden
*/

@@ -77,3 +92,3 @@ constructor(from?: string | string[]);

/**
* @hidden
*/

@@ -173,3 +188,3 @@ distinct(fields: string | string[]): Query;

* @param {string} name
* @hidden
*/

@@ -181,3 +196,3 @@ static filterQueries(queries: QueryOptions[], name: string): QueryOptions[];

* @param {string[]} singles
* @hidden
*/

@@ -191,10 +206,19 @@ static filterQueryLists(queries: Object[], singles: string[]): Object;

export declare class Predicate {
/** @hidden */
field: string;
/** @hidden */
operator: string;
/** @hidden */
value: string | number | Date | boolean | Predicate | Predicate[] | null;
/** @hidden */
condition: string;
/** @hidden */
ignoreCase: boolean;
/** @hidden */
ignoreAccent: boolean;
/** @hidden */
isComplex: boolean;
/** @hidden */
predicates: Predicate[];
/** @hidden */
comparer: Function;

@@ -208,3 +232,3 @@ [x: string]: string | number | Date | boolean | Predicate | Predicate[] | Function | null;

* @param {boolean=false} ignoreCase
* @hidden
*/

@@ -260,3 +284,3 @@ constructor(field: string | Predicate, operator: string, value: string | number | Date | boolean | Predicate | Predicate[] | null, ignoreCase?: boolean, ignoreAccent?: boolean);

/**
* @hidden
*/

@@ -291,3 +315,3 @@ export interface QueryOptions {

/**
* @hidden
*/

@@ -302,3 +326,3 @@ export interface QueryList {

/**
* @hidden
*/

@@ -305,0 +329,0 @@ export interface ParamOption {

@@ -9,7 +9,10 @@ import { DataUtil } from './util';

* @param {string|string[]} from?
* @hidden
*/
function Query(from) {
/** @hidden */
this.subQuery = null;
/** @hidden */
this.isChild = false;
/** @hidden */
this.distincts = [];

@@ -126,3 +129,3 @@ this.queries = [];

/**
* @hidden
*/

@@ -380,3 +383,3 @@ Query.prototype.distinct = function (fields) {

* @param {string} name
* @hidden
*/

@@ -392,3 +395,3 @@ Query.filterQueries = function (queries, name) {

* @param {string[]} singles
* @hidden
*/

@@ -421,7 +424,9 @@ Query.filterQueryLists = function (queries, singles) {

* @param {boolean=false} ignoreCase
* @hidden
*/
function Predicate(field, operator, value, ignoreCase, ignoreAccent) {
if (ignoreCase === void 0) { ignoreCase = false; }
/** @hidden */
this.ignoreAccent = false;
/** @hidden */
this.isComplex = false;

@@ -428,0 +433,0 @@ if (typeof field === 'string') {

@@ -5,3 +5,3 @@ import { DataManager } from './manager';

* Data manager common utility methods.
* @hidden
*/

@@ -11,3 +11,3 @@ export declare class DataUtil {

* Specifies the value which will be used to adjust the date value to server timezone.
* @default null
*/

@@ -17,3 +17,3 @@ static serverTimezoneOffset: number;

* Species whether are not to be parsed with serverTimezoneOffset value.
* @hidden
*/

@@ -26,3 +26,3 @@ static timeZoneHandling: boolean;

* @param {Object} inst?
* @hidden
*/

@@ -45,3 +45,3 @@ static getValue<T>(value: T | Function, inst?: Object): T;

* @param {string} order
* @hidden
*/

@@ -55,3 +55,3 @@ static fnSort(order: string): Function;

*/
static fnAscending(x: string | number, y: string | number): number;
static fnAscending(x: string | number, y: string | number, locales?: string | string[], options?: Intl.CollatorOptions): number;
/**

@@ -63,3 +63,3 @@ * Comparer function which is used to sort the data in descending order.

*/
static fnDescending(x: string | number, y: string | number): number;
static fnDescending(x: string | number, y: string | number, locales?: string | string[], options?: Intl.CollatorOptions): number;
private static extractFields;

@@ -90,3 +90,3 @@ /**

* @param {string} pKey?
* @hidden
*/

@@ -105,3 +105,3 @@ static buildHierarchy(fKey: string, from: string, source: Group, lookup?: Group, pKey?: string): void;

* @param {string} prefix?
* @hidden
*/

@@ -122,3 +122,3 @@ static getFieldList(obj: Object, fields?: string[], prefix?: string): string[];

* @return { [key: string]: Object; } | Object
* @hidden
*/

@@ -176,3 +176,3 @@ static setValue(nameSpace: string, value: Object | null, obj: Object): {

* @param {Object} param2?
* @hidden
*/

@@ -211,3 +211,3 @@ static callAdaptorFunction(adaptor: Object, fnName: string, param1?: Object, param2?: Object): Object;

* @returns Object
* @hidden
*/

@@ -222,7 +222,7 @@ static getItemFromComparer(array: Object[], field: string, comparer: Function): Object;

* * distinct array of objects is return when requiresCompleteRecord set as true.
* @hidden
*/
static distinct(json: Object[], fieldName: string, requiresCompleteRecord?: boolean): Object[];
/**
* @hidden
*/

@@ -232,3 +232,3 @@ static dateParse: DateParseOption;

/**
* @hidden
*/

@@ -247,3 +247,3 @@ export interface Aggregates {

/**
* @hidden
*/

@@ -266,3 +266,3 @@ export interface Operators {

/**
* @hidden
*/

@@ -282,3 +282,3 @@ export interface Group {

/**
* @hidden
*/

@@ -298,3 +298,3 @@ export interface ParseOption {

/**
* @hidden
*/

@@ -301,0 +301,0 @@ export interface DateParseOption {

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

* Data manager common utility methods.
* @hidden
*/

@@ -18,3 +18,3 @@ var DataUtil = /** @class */ (function () {

* @param {Object} inst?
* @hidden
*/

@@ -46,3 +46,3 @@ DataUtil.getValue = function (value, inst) {

* @param {string} order
* @hidden
*/

@@ -62,3 +62,6 @@ DataUtil.fnSort = function (order) {

*/
DataUtil.fnAscending = function (x, y) {
DataUtil.fnAscending = function (x, y, locales, options) {
if (isNullOrUndefined(x) && isNullOrUndefined(y)) {
return -1;
}
if (y === null || y === undefined) {

@@ -68,3 +71,3 @@ return -1;

if (typeof x === 'string') {
return x.localeCompare(y);
return x.localeCompare(y, locales, options);
}

@@ -82,3 +85,6 @@ if (x === null || x === undefined) {

*/
DataUtil.fnDescending = function (x, y) {
DataUtil.fnDescending = function (x, y, locales, options) {
if (isNullOrUndefined(x) && isNullOrUndefined(y)) {
return -1;
}
if (y === null || y === undefined) {

@@ -88,3 +94,3 @@ return 1;

if (typeof x === 'string') {
return x.localeCompare(y) * -1;
return x.localeCompare(y, locales, options) * -1;
}

@@ -216,3 +222,3 @@ if (x === null || x === undefined) {

* @param {string} pKey?
* @hidden
*/

@@ -244,3 +250,3 @@ DataUtil.buildHierarchy = function (fKey, from, source, lookup, pKey) {

* @param {string} prefix?
* @hidden
*/

@@ -299,3 +305,3 @@ DataUtil.getFieldList = function (obj, fields, prefix) {

* @return { [key: string]: Object; } | Object
* @hidden
*/

@@ -377,3 +383,3 @@ DataUtil.setValue = function (nameSpace, value, obj) {

* @param {Object} param2?
* @hidden
*/

@@ -453,3 +459,3 @@ DataUtil.callAdaptorFunction = function (adaptor, fnName, param1, param2) {

* @returns Object
* @hidden
*/

@@ -491,3 +497,3 @@ DataUtil.getItemFromComparer = function (array, field, comparer) {

* * distinct array of objects is return when requiresCompleteRecord set as true.
* @hidden
*/

@@ -510,3 +516,3 @@ DataUtil.distinct = function (json, fieldName, requiresCompleteRecord) {

* Specifies the value which will be used to adjust the date value to server timezone.
* @default null
*/

@@ -516,3 +522,3 @@ DataUtil.serverTimezoneOffset = null;

* Species whether are not to be parsed with serverTimezoneOffset value.
* @hidden
*/

@@ -1659,3 +1665,3 @@ DataUtil.timeZoneHandling = true;

* @param {string} operator
* @hidden
*/

@@ -1673,3 +1679,3 @@ processSymbols: function (operator) {

* @param {string} operator
* @hidden
*/

@@ -1707,3 +1713,3 @@ processOperator: function (operator) {

* @param {string[]|Object[]} array
* @hidden
*/

@@ -1726,3 +1732,3 @@ iterateAndReviveArray: function (array) {

* @param {JSON} json
* @hidden
*/

@@ -1755,3 +1761,3 @@ iterateAndReviveJson: function (json) {

* @param {string|Date} value
* @hidden
*/

@@ -1767,3 +1773,3 @@ jsonReviver: function (field, value) {

var isUTC = value.indexOf('Z') > -1 || value.indexOf('z') > -1;
var arr = value.split(/[^0-9]/);
var arr = value.split(/[^0-9.]/);
if (isUTC) {

@@ -1819,3 +1825,3 @@ value = DataUtil.dateParse

* @param {boolean} stringify
* @hidden
*/

@@ -1838,3 +1844,3 @@ replacer: function (value, stringify) {

* @param {Object} val
* @hidden
*/

@@ -1865,3 +1871,3 @@ jsonReplacer: function (val, stringify) {

* @param {Object[]} val
* @hidden
*/

@@ -1883,3 +1889,3 @@ arrayReplacer: function (val) {

* @param {any} value
* @hidden
*/

@@ -1916,3 +1922,3 @@ /* tslint:disable-next-line:no-any */

/**
* @hidden
*/

@@ -1919,0 +1925,0 @@ DataUtil.dateParse = {

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