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

@antv/util

Package Overview
Dependencies
Maintainers
7
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/util - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

dist/util-1.1.1.min.js

406

build/util.js

@@ -80,3 +80,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

var isObject = __webpack_require__(14);
var isObject = __webpack_require__(15);
var isArray = __webpack_require__(1);

@@ -124,18 +124,2 @@

/* 2 */
/***/ (function(module, exports) {
var isArrayLike = function isArrayLike(value) {
/**
* isArrayLike([1, 2, 3]) => true
* isArrayLike(document.body.children) => true
* isArrayLike('abc') => true
* isArrayLike(Function) => false
*/
return value !== null && typeof value !== 'function' && isFinite(value.length);
};
module.exports = isArrayLike;
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {

@@ -157,2 +141,18 @@

/***/ }),
/* 3 */
/***/ (function(module, exports) {
var isArrayLike = function isArrayLike(value) {
/**
* isArrayLike([1, 2, 3]) => true
* isArrayLike(document.body.children) => true
* isArrayLike('abc') => true
* isArrayLike(Function) => false
*/
return value !== null && typeof value !== 'function' && isFinite(value.length);
};
module.exports = isArrayLike;
/***/ }),
/* 4 */

@@ -244,3 +244,3 @@ /***/ (function(module, exports) {

var isArrayLike = __webpack_require__(2);
var isArrayLike = __webpack_require__(3);

@@ -263,3 +263,3 @@ var indexOf = Array.prototype.indexOf;

var each = __webpack_require__(0);
var isArrayLike = __webpack_require__(2);
var isArrayLike = __webpack_require__(3);

@@ -303,4 +303,16 @@ var filter = function filter(arr, func) {

var isArrayLike = __webpack_require__(2);
var isType = __webpack_require__(4);
var isString = function isString(str) {
return isType(str, 'String');
};
module.exports = isString;
/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
var isArrayLike = __webpack_require__(3);
function toArray(value) {

@@ -313,3 +325,3 @@ return isArrayLike(value) ? Array.prototype.slice.call(value) : [];

/***/ }),
/* 13 */
/* 14 */
/***/ (function(module, exports) {

@@ -335,3 +347,3 @@

/***/ }),
/* 14 */
/* 15 */
/***/ (function(module, exports) {

@@ -355,6 +367,6 @@

/***/ }),
/* 15 */
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
var keys = __webpack_require__(16);
var keys = __webpack_require__(17);
var isNil = __webpack_require__(7);

@@ -378,7 +390,7 @@

/***/ }),
/* 16 */
/* 17 */
/***/ (function(module, exports, __webpack_require__) {
var each = __webpack_require__(0);
var isFunction = __webpack_require__(3);
var isFunction = __webpack_require__(2);

@@ -400,6 +412,6 @@ var keys = Object.keys ? function (obj) {

/***/ }),
/* 17 */
/* 18 */
/***/ (function(module, exports, __webpack_require__) {
var isArrayLike = __webpack_require__(2);
var isArrayLike = __webpack_require__(3);

@@ -429,3 +441,3 @@ var splice = Array.prototype.splice;

/***/ }),
/* 18 */
/* 19 */
/***/ (function(module, exports, __webpack_require__) {

@@ -449,3 +461,3 @@

/***/ }),
/* 19 */
/* 20 */
/***/ (function(module, exports) {

@@ -456,3 +468,3 @@

/***/ }),
/* 20 */
/* 21 */
/***/ (function(module, exports) {

@@ -466,7 +478,7 @@

/***/ }),
/* 21 */
/* 22 */
/***/ (function(module, exports, __webpack_require__) {
var each = __webpack_require__(0);
var isFunction = __webpack_require__(3);
var isFunction = __webpack_require__(2);

@@ -488,3 +500,3 @@ var values = Object.values ? function (obj) {

/***/ }),
/* 22 */
/* 23 */
/***/ (function(module, exports, __webpack_require__) {

@@ -501,3 +513,3 @@

/***/ }),
/* 23 */
/* 24 */
/***/ (function(module, exports, __webpack_require__) {

@@ -514,3 +526,3 @@

/***/ }),
/* 24 */
/* 25 */
/***/ (function(module, exports) {

@@ -527,3 +539,3 @@

/***/ }),
/* 25 */
/* 26 */
/***/ (function(module, exports) {

@@ -541,18 +553,6 @@

/***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) {
var isType = __webpack_require__(4);
var isString = function isString(str) {
return isType(str, 'String');
};
module.exports = isString;
/***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) {
var isFunction = __webpack_require__(3);
var isFunction = __webpack_require__(2);
var isArray = __webpack_require__(1);

@@ -614,4 +614,4 @@ var groupBy = __webpack_require__(28);

var isObjectLike = __webpack_require__(11);
var isArrayLike = __webpack_require__(2);
var isString = __webpack_require__(26);
var isArrayLike = __webpack_require__(3);
var isString = __webpack_require__(12);

@@ -667,9 +667,9 @@ var isEqual = function isEqual(value, other) {

var arrayUtil = __webpack_require__(31);
var eventUtil = __webpack_require__(43);
var mathUtil = __webpack_require__(46);
var objectUtil = __webpack_require__(61);
var stringUtil = __webpack_require__(65);
var typeUtil = __webpack_require__(71);
var eventUtil = __webpack_require__(44);
var mathUtil = __webpack_require__(47);
var objectUtil = __webpack_require__(62);
var stringUtil = __webpack_require__(66);
var typeUtil = __webpack_require__(72);
var each = __webpack_require__(0);
var mix = __webpack_require__(13);
var mix = __webpack_require__(14);

@@ -685,21 +685,21 @@ var util = {

// others
augment: __webpack_require__(76),
clone: __webpack_require__(77),
deepMix: __webpack_require__(78),
augment: __webpack_require__(77),
clone: __webpack_require__(78),
deepMix: __webpack_require__(79),
each: each,
extend: __webpack_require__(79),
extend: __webpack_require__(80),
filter: __webpack_require__(10),
group: __webpack_require__(80),
group: __webpack_require__(81),
groupBy: __webpack_require__(28),
groupToMap: __webpack_require__(27),
indexOf: __webpack_require__(81),
isEmpty: __webpack_require__(82),
indexOf: __webpack_require__(82),
isEmpty: __webpack_require__(83),
isEqual: __webpack_require__(29),
isEqualWith: __webpack_require__(83),
map: __webpack_require__(84),
isEqualWith: __webpack_require__(84),
map: __webpack_require__(85),
mix: mix,
pick: __webpack_require__(85),
toArray: __webpack_require__(12),
pick: __webpack_require__(86),
toArray: __webpack_require__(13),
toString: __webpack_require__(8),
uniqueId: __webpack_require__(86)
uniqueId: __webpack_require__(87)
};

@@ -727,7 +727,8 @@

pull: __webpack_require__(39),
pullAt: __webpack_require__(17),
pullAt: __webpack_require__(18),
reduce: __webpack_require__(40),
remove: __webpack_require__(41),
union: __webpack_require__(42),
uniq: __webpack_require__(18)
sortBy: __webpack_require__(42),
union: __webpack_require__(43),
uniq: __webpack_require__(19)
};

@@ -765,5 +766,5 @@

var isFunction = __webpack_require__(3);
var isFunction = __webpack_require__(2);
var isPlainObject = __webpack_require__(6);
var isMatch = __webpack_require__(15);
var isMatch = __webpack_require__(16);

@@ -982,4 +983,4 @@ function find(arr, predicate) {

var isArrayLike = __webpack_require__(2);
var pullAt = __webpack_require__(17);
var isArrayLike = __webpack_require__(3);
var pullAt = __webpack_require__(18);

@@ -1018,5 +1019,46 @@ var remove = function remove(arr, predicate) {

var isString = __webpack_require__(12);
var isFunction = __webpack_require__(2);
var isArray = __webpack_require__(1);
function sortBy(arr, key) {
var comparer = void 0;
if (isFunction(key)) {
comparer = function comparer(a, b) {
return key(a) - key(b);
};
} else {
var keys = [];
if (isString(key)) {
keys.push(key);
} else if (isArray(key)) {
keys = key;
}
comparer = function comparer(a, b) {
for (var i = 0; i < keys.length; i += 1) {
var prop = keys[i];
if (a[prop] > b[prop]) {
return 1;
}
if (a[prop] < b[prop]) {
return -1;
}
}
return 0;
};
}
arr.sort(comparer);
return arr;
}
module.exports = sortBy;
/***/ }),
/* 43 */
/***/ (function(module, exports, __webpack_require__) {
var each = __webpack_require__(0);
var toArray = __webpack_require__(12);
var uniq = __webpack_require__(18);
var toArray = __webpack_require__(13);
var uniq = __webpack_require__(19);

@@ -1035,3 +1077,3 @@ var union = function union() {

/***/ }),
/* 43 */
/* 44 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1041,8 +1083,8 @@

module.exports = {
getWrapBehavior: __webpack_require__(44),
wrapBehavior: __webpack_require__(45)
getWrapBehavior: __webpack_require__(45),
wrapBehavior: __webpack_require__(46)
};
/***/ }),
/* 44 */
/* 45 */
/***/ (function(module, exports) {

@@ -1064,3 +1106,3 @@

/***/ }),
/* 45 */
/* 46 */
/***/ (function(module, exports) {

@@ -1089,26 +1131,26 @@

/***/ }),
/* 46 */
/* 47 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = {
clamp: __webpack_require__(47),
fixedBase: __webpack_require__(48),
isDecimal: __webpack_require__(49),
isEven: __webpack_require__(50),
isInteger: __webpack_require__(51),
isNegative: __webpack_require__(52),
isNumberEqual: __webpack_require__(53),
isOdd: __webpack_require__(54),
isPositive: __webpack_require__(55),
maxBy: __webpack_require__(56),
minBy: __webpack_require__(57),
mod: __webpack_require__(58),
toDegree: __webpack_require__(59),
toInt: __webpack_require__(19),
toInteger: __webpack_require__(19),
toRadian: __webpack_require__(60)
clamp: __webpack_require__(48),
fixedBase: __webpack_require__(49),
isDecimal: __webpack_require__(50),
isEven: __webpack_require__(51),
isInteger: __webpack_require__(52),
isNegative: __webpack_require__(53),
isNumberEqual: __webpack_require__(54),
isOdd: __webpack_require__(55),
isPositive: __webpack_require__(56),
maxBy: __webpack_require__(57),
minBy: __webpack_require__(58),
mod: __webpack_require__(59),
toDegree: __webpack_require__(60),
toInt: __webpack_require__(20),
toInteger: __webpack_require__(20),
toRadian: __webpack_require__(61)
};
/***/ }),
/* 47 */
/* 48 */
/***/ (function(module, exports) {

@@ -1128,3 +1170,3 @@

/***/ }),
/* 48 */
/* 49 */
/***/ (function(module, exports) {

@@ -1148,3 +1190,3 @@

/***/ }),
/* 49 */
/* 50 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1161,3 +1203,3 @@

/***/ }),
/* 50 */
/* 51 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1174,3 +1216,3 @@

/***/ }),
/* 51 */
/* 52 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1187,3 +1229,3 @@

/***/ }),
/* 52 */
/* 53 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1200,3 +1242,3 @@

/***/ }),
/* 53 */
/* 54 */
/***/ (function(module, exports) {

@@ -1213,3 +1255,3 @@

/***/ }),
/* 54 */
/* 55 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1226,3 +1268,3 @@

/***/ }),
/* 55 */
/* 56 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1239,7 +1281,7 @@

/***/ }),
/* 56 */
/* 57 */
/***/ (function(module, exports, __webpack_require__) {
var isArray = __webpack_require__(1);
var isFunction = __webpack_require__(3);
var isFunction = __webpack_require__(2);
var each = __webpack_require__(0);

@@ -1289,7 +1331,7 @@ /**

/***/ }),
/* 57 */
/* 58 */
/***/ (function(module, exports, __webpack_require__) {
var isArray = __webpack_require__(1);
var isFunction = __webpack_require__(3);
var isFunction = __webpack_require__(2);
var each = __webpack_require__(0);

@@ -1339,3 +1381,3 @@ /**

/***/ }),
/* 58 */
/* 59 */
/***/ (function(module, exports) {

@@ -1350,3 +1392,3 @@

/***/ }),
/* 59 */
/* 60 */
/***/ (function(module, exports) {

@@ -1363,3 +1405,3 @@

/***/ }),
/* 60 */
/* 61 */
/***/ (function(module, exports) {

@@ -1376,17 +1418,17 @@

/***/ }),
/* 61 */
/* 62 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = {
forIn: __webpack_require__(62),
has: __webpack_require__(20),
hasKey: __webpack_require__(63),
hasValue: __webpack_require__(64),
keys: __webpack_require__(16),
isMatch: __webpack_require__(15),
values: __webpack_require__(21)
forIn: __webpack_require__(63),
has: __webpack_require__(21),
hasKey: __webpack_require__(64),
hasValue: __webpack_require__(65),
keys: __webpack_require__(17),
isMatch: __webpack_require__(16),
values: __webpack_require__(22)
};
/***/ }),
/* 62 */
/* 63 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1397,14 +1439,14 @@

/***/ }),
/* 63 */
/* 64 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(20);
module.exports = __webpack_require__(21);
/***/ }),
/* 64 */
/* 65 */
/***/ (function(module, exports, __webpack_require__) {
var contains = __webpack_require__(9);
var values = __webpack_require__(21);
var values = __webpack_require__(22);

@@ -1416,3 +1458,3 @@ module.exports = function (obj, value) {

/***/ }),
/* 65 */
/* 66 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1422,9 +1464,9 @@

var strUtil = {
lc: __webpack_require__(66),
lowerCase: __webpack_require__(22),
lowerFirst: __webpack_require__(67),
substitute: __webpack_require__(68),
uc: __webpack_require__(69),
upperCase: __webpack_require__(23),
upperFirst: __webpack_require__(70)
lc: __webpack_require__(67),
lowerCase: __webpack_require__(23),
lowerFirst: __webpack_require__(68),
substitute: __webpack_require__(69),
uc: __webpack_require__(70),
upperCase: __webpack_require__(24),
upperFirst: __webpack_require__(71)
};

@@ -1435,9 +1477,9 @@

/***/ }),
/* 66 */
/* 67 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(22);
module.exports = __webpack_require__(23);
/***/ }),
/* 67 */
/* 68 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1455,3 +1497,3 @@

/***/ }),
/* 68 */
/* 69 */
/***/ (function(module, exports) {

@@ -1474,9 +1516,9 @@

/***/ }),
/* 69 */
/* 70 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(23);
module.exports = __webpack_require__(24);
/***/ }),
/* 70 */
/* 71 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1494,3 +1536,3 @@

/***/ }),
/* 71 */
/* 72 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1501,18 +1543,18 @@

var checkType = {
getType: __webpack_require__(24),
getType: __webpack_require__(25),
isArray: __webpack_require__(1),
isArrayLike: __webpack_require__(2),
isBoolean: __webpack_require__(72),
isFunction: __webpack_require__(3),
isArrayLike: __webpack_require__(3),
isBoolean: __webpack_require__(73),
isFunction: __webpack_require__(2),
isNil: __webpack_require__(7),
isNull: __webpack_require__(73),
isNull: __webpack_require__(74),
isNumber: __webpack_require__(5),
isObject: __webpack_require__(14),
isObject: __webpack_require__(15),
isObjectLike: __webpack_require__(11),
isPlainObject: __webpack_require__(6),
isPrototype: __webpack_require__(25),
isPrototype: __webpack_require__(26),
isType: isType,
isUndefined: __webpack_require__(74),
isString: __webpack_require__(26),
isRegExp: __webpack_require__(75)
isUndefined: __webpack_require__(75),
isString: __webpack_require__(12),
isRegExp: __webpack_require__(76)
};

@@ -1529,3 +1571,3 @@

/***/ }),
/* 72 */
/* 73 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1548,3 +1590,3 @@

/***/ }),
/* 73 */
/* 74 */
/***/ (function(module, exports) {

@@ -1559,3 +1601,3 @@

/***/ }),
/* 74 */
/* 75 */
/***/ (function(module, exports) {

@@ -1570,3 +1612,3 @@

/***/ }),
/* 75 */
/* 76 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1583,8 +1625,8 @@

/***/ }),
/* 76 */
/* 77 */
/***/ (function(module, exports, __webpack_require__) {
var isFunction = __webpack_require__(3);
var toArray = __webpack_require__(12);
var mix = __webpack_require__(13);
var isFunction = __webpack_require__(2);
var toArray = __webpack_require__(13);
var mix = __webpack_require__(14);

@@ -1605,3 +1647,3 @@ var augment = function augment(c) {

/***/ }),
/* 77 */
/* 78 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1644,3 +1686,3 @@

/***/ }),
/* 78 */
/* 79 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1694,7 +1736,7 @@

/***/ }),
/* 79 */
/* 80 */
/***/ (function(module, exports, __webpack_require__) {
var isFunction = __webpack_require__(3);
var mix = __webpack_require__(13);
var isFunction = __webpack_require__(2);
var mix = __webpack_require__(14);

@@ -1734,3 +1776,3 @@ var extend = function extend(subclass, superclass, overrides, staticOverrides) {

/***/ }),
/* 80 */
/* 81 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1755,6 +1797,6 @@

/***/ }),
/* 81 */
/* 82 */
/***/ (function(module, exports, __webpack_require__) {
var isArrayLike = __webpack_require__(2);
var isArrayLike = __webpack_require__(3);

@@ -1783,9 +1825,9 @@ var indexOf = function indexOf(arr, obj) {

/***/ }),
/* 82 */
/* 83 */
/***/ (function(module, exports, __webpack_require__) {
var isNil = __webpack_require__(7);
var isArrayLike = __webpack_require__(2);
var getType = __webpack_require__(24);
var isPrototype = __webpack_require__(25);
var isArrayLike = __webpack_require__(3);
var getType = __webpack_require__(25);
var isPrototype = __webpack_require__(26);
var hasOwnProperty = Object.prototype.hasOwnProperty;

@@ -1827,6 +1869,6 @@

/***/ }),
/* 83 */
/* 84 */
/***/ (function(module, exports, __webpack_require__) {
var isFunction = __webpack_require__(3);
var isFunction = __webpack_require__(2);
var isEqual = __webpack_require__(29);

@@ -1866,7 +1908,7 @@ /**

/***/ }),
/* 84 */
/* 85 */
/***/ (function(module, exports, __webpack_require__) {
var each = __webpack_require__(0);
var isArrayLike = __webpack_require__(2);
var isArrayLike = __webpack_require__(3);

@@ -1887,3 +1929,3 @@ var map = function map(arr, func) {

/***/ }),
/* 85 */
/* 86 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1923,3 +1965,3 @@

/***/ }),
/* 86 */
/* 87 */
/***/ (function(module, exports) {

@@ -1926,0 +1968,0 @@

@@ -14,4 +14,5 @@ module.exports = {

remove: require('./remove'),
sortBy: require('./sortBy'),
union: require('./union'),
uniq: require('./uniq')
};
{
"name": "@antv/util",
"version": "1.1.0",
"version": "1.1.1",
"description": "A common util collection for antv projects",

@@ -5,0 +5,0 @@ "main": "build/util.js",

@@ -14,4 +14,5 @@ module.exports = {

remove: require('./remove'),
sortBy: require('./sortBy'),
union: require('./union'),
uniq: require('./uniq')
};
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