Comparing version 2.0.0-rc.8 to 2.0.0-rc.9
@@ -1,2 +0,2 @@ | ||
/** @license Data-Engine v2.0.0-rc.8 | ||
/** @license Data-Engine v2.0.0-rc.9 | ||
* data-sort.development.js | ||
@@ -16,2 +16,16 @@ * | ||
/* eslint-disable */ | ||
function logf() { | ||
console.log.call(arguments); | ||
} | ||
function noop() {} | ||
var log = noop; | ||
{ | ||
log = logf; | ||
} | ||
var classCallCheck = function (instance, Constructor) { | ||
@@ -193,2 +207,3 @@ if (!(instance instanceof Constructor)) { | ||
log('setData', data, 'should sort', shouldSort); | ||
_this.data = data; | ||
@@ -209,5 +224,7 @@ if (shouldSort) { | ||
this.setPrimaryKey = function (key) { | ||
log('setPrimaryKey'); | ||
if (_this.isCustomFunction) { | ||
return; | ||
} | ||
log('primaryKey Continue'); | ||
if (typeof key === 'string' && key.length > 0) { | ||
@@ -218,2 +235,3 @@ _this.primaryKey = key; | ||
} | ||
log(_this.currentName, _this.primaryKey); | ||
_this.sortFunc = _this.defaultSortWithKey; | ||
@@ -263,2 +281,3 @@ } | ||
this.sortData = function () { | ||
log(_this.currentName); | ||
if (_this.currentName) { | ||
@@ -265,0 +284,0 @@ _this.data = _this.data.sort(_this.sortFunc); |
@@ -1,2 +0,2 @@ | ||
/** @license Data-Engine v2.0.0-rc.8 | ||
/** @license Data-Engine v2.0.0-rc.9 | ||
* data-sort.production.min.js | ||
@@ -3,0 +3,0 @@ * |
{ | ||
"name": "data-sort", | ||
"description": "Data engine is small data management lib for some sort and filter.", | ||
"version": "2.0.0-rc.8", | ||
"version": "2.0.0-rc.9", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "Data", |
@@ -1,2 +0,2 @@ | ||
/** @license Engine v2.0.0-rc.8 | ||
/** @license Engine v2.0.0-rc.9 | ||
* data-sort.development.js | ||
@@ -18,2 +18,16 @@ * | ||
/* eslint-disable */ | ||
function logf() { | ||
console.log.call(arguments); | ||
} | ||
function noop() {} | ||
var log = noop; | ||
{ | ||
log = logf; | ||
} | ||
var classCallCheck = function (instance, Constructor) { | ||
@@ -195,2 +209,3 @@ if (!(instance instanceof Constructor)) { | ||
log('setData', data, 'should sort', shouldSort); | ||
_this.data = data; | ||
@@ -211,5 +226,7 @@ if (shouldSort) { | ||
this.setPrimaryKey = function (key) { | ||
log('setPrimaryKey'); | ||
if (_this.isCustomFunction) { | ||
return; | ||
} | ||
log('primaryKey Continue'); | ||
if (typeof key === 'string' && key.length > 0) { | ||
@@ -220,2 +237,3 @@ _this.primaryKey = key; | ||
} | ||
log(_this.currentName, _this.primaryKey); | ||
_this.sortFunc = _this.defaultSortWithKey; | ||
@@ -265,2 +283,3 @@ } | ||
this.sortData = function () { | ||
log(_this.currentName); | ||
if (_this.currentName) { | ||
@@ -267,0 +286,0 @@ _this.data = _this.data.sort(_this.sortFunc); |
@@ -1,2 +0,2 @@ | ||
/** @license Data-Engine v2.0.0-rc.8 | ||
/** @license Data-Engine v2.0.0-rc.9 | ||
* data-sort.production.min.js | ||
@@ -3,0 +3,0 @@ * |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23484
560