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.1 to 1.2.0

dist/util-1.2.0.min.js

2

lib/array/contains.js

@@ -1,2 +0,2 @@

var isArrayLike = require('../type/isArrayLike');
var isArrayLike = require('../type/is-array-like');

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

@@ -1,4 +0,4 @@

var isFunction = require('../type/isFunction');
var isPlainObject = require('../type/isPlainObject');
var isMatch = require('../object/isMatch');
var isFunction = require('../type/is-function');
var isPlainObject = require('../type/is-plain-object');
var isMatch = require('../object/is-match');

@@ -5,0 +5,0 @@ function find(arr, predicate) {

@@ -1,2 +0,2 @@

var isArray = require('../type/isArray');
var isArray = require('../type/is-array');
var each = require('../each');

@@ -3,0 +3,0 @@

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

find: require('./find'),
firstValue: require('./firstValue'),
firstValue: require('./first-value'),
flatten: require('./flatten'),
flattenDeep: require('./flattenDeep'),
getRange: require('./getRange'),
flattenDeep: require('./flatten-deep'),
getRange: require('./get-range'),
merge: require('./merge'),
pull: require('./pull'),
pullAt: require('./pullAt'),
pullAt: require('./pull-at'),
reduce: require('./reduce'),
remove: require('./remove'),
sortBy: require('./sortBy'),
sortBy: require('./sort-by'),
union: require('./union'),
uniq: require('./uniq')
};

@@ -1,3 +0,3 @@

var isArray = require('../type/isArray');
var isPlainObject = require('../type/isPlainObject');
var isArray = require('../type/is-array');
var isPlainObject = require('../type/is-plain-object');
var each = require('../each');

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

var isArrayLike = require('../type/isArrayLike');
var pullAt = require('./pullAt');
var isArrayLike = require('../type/is-array-like');
var pullAt = require('./pull-at');

@@ -4,0 +4,0 @@ var remove = function remove(arr, predicate) {

var each = require('../each');
var toArray = require('../toArray');
var toArray = require('../to-array');
var uniq = require('./uniq');

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

var isFunction = require('./type/isFunction');
var toArray = require('./toArray');
var isFunction = require('./type/is-function');
var toArray = require('./to-array');
var mix = require('./mix');

@@ -4,0 +4,0 @@

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var isArray = require('./type/isArray');
var isArray = require('./type/is-array');

@@ -5,0 +5,0 @@ var clone = function clone(obj) {

@@ -1,3 +0,3 @@

var isObject = require('./type/isObject');
var isArray = require('./type/isArray');
var isObject = require('./type/is-object');
var isArray = require('./type/is-array');

@@ -4,0 +4,0 @@ var each = function each(elements, func) {

module.exports = {
getWrapBehavior: require('./getWrapBehavior'),
wrapBehavior: require('./wrapBehavior')
getWrapBehavior: require('./get-wrap-behavior'),
wrapBehavior: require('./wrap-behavior')
};

@@ -1,2 +0,2 @@

var isFunction = require('./type/isFunction');
var isFunction = require('./type/is-function');
var mix = require('./mix');

@@ -3,0 +3,0 @@

var each = require('./each');
var isArrayLike = require('./type/isArrayLike');
var isArrayLike = require('./type/is-array-like');

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

@@ -1,2 +0,2 @@

var groupToMap = require('./groupToMap');
var groupToMap = require('./group-to-map');

@@ -3,0 +3,0 @@ var group = function group(data, condition) {

@@ -22,3 +22,3 @@

clone: require('./clone'),
deepMix: require('./deepMix'),
deepMix: require('./deep-mix'),
each: each,

@@ -28,14 +28,14 @@ extend: require('./extend'),

group: require('./group'),
groupBy: require('./groupBy'),
groupToMap: require('./groupToMap'),
indexOf: require('./indexOf'),
isEmpty: require('./isEmpty'),
isEqual: require('./isEqual'),
isEqualWith: require('./isEqualWith'),
groupBy: require('./group-by'),
groupToMap: require('./group-to-map'),
indexOf: require('./index-of'),
isEmpty: require('./is-empty'),
isEqual: require('./is-equal'),
isEqualWith: require('./is-equal-with'),
map: require('./map'),
mix: mix,
pick: require('./pick'),
toArray: require('./toArray'),
toString: require('./toString'),
uniqueId: require('./uniqueId')
toArray: require('./to-array'),
toString: require('./to-string'),
uniqueId: require('./unique-id')
};

@@ -42,0 +42,0 @@

var each = require('./each');
var isArrayLike = require('./type/isArrayLike');
var isArrayLike = require('./type/is-array-like');

@@ -4,0 +4,0 @@ var map = function map(arr, func) {

module.exports = {
clamp: require('./clamp'),
fixedBase: require('./fixedBase'),
isDecimal: require('./isDecimal'),
isEven: require('./isEven'),
isInteger: require('./isInteger'),
isNegative: require('./isNegative'),
isNumberEqual: require('./isNumberEqual'),
isOdd: require('./isOdd'),
isPositive: require('./isPositive'),
maxBy: require('./maxBy'),
minBy: require('./minBy'),
fixedBase: require('./fixed-base'),
isDecimal: require('./is-decimal'),
isEven: require('./is-even'),
isInteger: require('./is-integer'),
isNegative: require('./is-negative'),
isNumberEqual: require('./is-number-equal'),
isOdd: require('./is-odd'),
isPositive: require('./is-positive'),
maxBy: require('./max-by'),
minBy: require('./min-by'),
mod: require('./mod'),
toDegree: require('./toDegree'),
toInt: require('./toInteger'),
toInteger: require('./toInteger'),
toRadian: require('./toRadian')
toDegree: require('./to-degree'),
toInt: require('./to-integer'),
toInteger: require('./to-integer'),
toRadian: require('./to-radian')
};
module.exports = {
forIn: require('./forIn'),
forIn: require('./for-in'),
has: require('./has'),
hasKey: require('./hasKey'),
hasValue: require('./hasValue'),
hasKey: require('./has-key'),
hasValue: require('./has-value'),
keys: require('./keys'),
isMatch: require('./isMatch'),
isMatch: require('./is-match'),
values: require('./values')
};
var each = require('../each');
var isFunction = require('../type/isFunction');
var isFunction = require('../type/is-function');

@@ -4,0 +4,0 @@ var keys = Object.keys ? function (obj) {

var each = require('../each');
var isFunction = require('../type/isFunction');
var isFunction = require('../type/is-function');

@@ -4,0 +4,0 @@ var values = Object.values ? function (obj) {

var each = require('./each');
var isPlaineObject = require('./type/isPlainObject');
var isPlaineObject = require('./type/is-plain-object');

@@ -4,0 +4,0 @@ var hasOwnProperty = Object.prototype.hasOwnProperty;

var strUtil = {
lc: require('./lc'),
lowerCase: require('./lowerCase'),
lowerFirst: require('./lowerFirst'),
lowerCase: require('./lower-case'),
lowerFirst: require('./lower-first'),
substitute: require('./substitute'),
uc: require('./uc'),
upperCase: require('./upperCase'),
upperFirst: require('./upperFirst')
upperCase: require('./upper-case'),
upperFirst: require('./upper-first')
};
module.exports = strUtil;

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

module.exports = require('./lowerCase');
module.exports = require('./lower-case');

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

module.exports = require('./upperCase');
module.exports = require('./upper-case');

@@ -1,20 +0,20 @@

var isType = require('./isType');
var isType = require('./is-type');
var checkType = {
getType: require('./getType'),
isArray: require('./isArray'),
isArrayLike: require('./isArrayLike'),
isBoolean: require('./isBoolean'),
isFunction: require('./isFunction'),
isNil: require('./isNil'),
isNull: require('./isNull'),
isNumber: require('./isNumber'),
isObject: require('./isObject'),
isObjectLike: require('./isObjectLike'),
isPlainObject: require('./isPlainObject'),
isPrototype: require('./isPrototype'),
getType: require('./get-type'),
isArray: require('./is-array'),
isArrayLike: require('./is-array-like'),
isBoolean: require('./is-boolean'),
isFunction: require('./is-function'),
isNil: require('./is-nil'),
isNull: require('./is-null'),
isNumber: require('./is-number'),
isObject: require('./is-object'),
isObjectLike: require('./is-object-like'),
isPlainObject: require('./is-plain-object'),
isPrototype: require('./is-prototype'),
isType: isType,
isUndefined: require('./isUndefined'),
isString: require('./isString'),
isRegExp: require('./isRegExp')
isUndefined: require('./is-undefined'),
isString: require('./is-string'),
isRegExp: require('./is-reg-exp')
};

@@ -21,0 +21,0 @@

{
"name": "@antv/util",
"version": "1.1.1",
"version": "1.2.0",
"description": "A common util collection for antv projects",

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

@@ -1,2 +0,2 @@

const isArrayLike = require('../type/isArrayLike');
const isArrayLike = require('../type/is-array-like');

@@ -3,0 +3,0 @@ const indexOf = Array.prototype.indexOf;

@@ -1,4 +0,4 @@

const isFunction = require('../type/isFunction');
const isPlainObject = require('../type/isPlainObject');
const isMatch = require('../object/isMatch');
const isFunction = require('../type/is-function');
const isPlainObject = require('../type/is-plain-object');
const isMatch = require('../object/is-match');

@@ -5,0 +5,0 @@ function find(arr, predicate) {

@@ -1,2 +0,2 @@

const isArray = require('../type/isArray');
const isArray = require('../type/is-array');
const each = require('../each');

@@ -3,0 +3,0 @@

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

find: require('./find'),
firstValue: require('./firstValue'),
firstValue: require('./first-value'),
flatten: require('./flatten'),
flattenDeep: require('./flattenDeep'),
getRange: require('./getRange'),
flattenDeep: require('./flatten-deep'),
getRange: require('./get-range'),
merge: require('./merge'),
pull: require('./pull'),
pullAt: require('./pullAt'),
pullAt: require('./pull-at'),
reduce: require('./reduce'),
remove: require('./remove'),
sortBy: require('./sortBy'),
sortBy: require('./sort-by'),
union: require('./union'),
uniq: require('./uniq')
};

@@ -1,3 +0,3 @@

const isArray = require('../type/isArray');
const isPlainObject = require('../type/isPlainObject');
const isArray = require('../type/is-array');
const isPlainObject = require('../type/is-plain-object');
const each = require('../each');

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

const isArrayLike = require('../type/isArrayLike');
const pullAt = require('./pullAt');
const isArrayLike = require('../type/is-array-like');
const pullAt = require('./pull-at');

@@ -4,0 +4,0 @@ const remove = function(arr, predicate) {

const each = require('../each');
const toArray = require('../toArray');
const toArray = require('../to-array');
const uniq = require('./uniq');

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

const isFunction = require('./type/isFunction');
const toArray = require('./toArray');
const isFunction = require('./type/is-function');
const toArray = require('./to-array');
const mix = require('./mix');

@@ -4,0 +4,0 @@

@@ -1,2 +0,2 @@

const isArray = require('./type/isArray');
const isArray = require('./type/is-array');

@@ -3,0 +3,0 @@ const clone = function(obj) {

@@ -1,3 +0,3 @@

const isObject = require('./type/isObject');
const isArray = require('./type/isArray');
const isObject = require('./type/is-object');
const isArray = require('./type/is-array');

@@ -4,0 +4,0 @@ const each = function(elements, func) {

module.exports = {
getWrapBehavior: require('./getWrapBehavior'),
wrapBehavior: require('./wrapBehavior')
getWrapBehavior: require('./get-wrap-behavior'),
wrapBehavior: require('./wrap-behavior')
};

@@ -1,2 +0,2 @@

const isFunction = require('./type/isFunction');
const isFunction = require('./type/is-function');
const mix = require('./mix');

@@ -3,0 +3,0 @@

const each = require('./each');
const isArrayLike = require('./type/isArrayLike');
const isArrayLike = require('./type/is-array-like');

@@ -4,0 +4,0 @@ const filter = function(arr, func) {

@@ -1,2 +0,2 @@

const groupToMap = require('./groupToMap');
const groupToMap = require('./group-to-map');

@@ -3,0 +3,0 @@ const group = function(data, condition) {

@@ -22,3 +22,3 @@

clone: require('./clone'),
deepMix: require('./deepMix'),
deepMix: require('./deep-mix'),
each,

@@ -28,14 +28,14 @@ extend: require('./extend'),

group: require('./group'),
groupBy: require('./groupBy'),
groupToMap: require('./groupToMap'),
indexOf: require('./indexOf'),
isEmpty: require('./isEmpty'),
isEqual: require('./isEqual'),
isEqualWith: require('./isEqualWith'),
groupBy: require('./group-by'),
groupToMap: require('./group-to-map'),
indexOf: require('./index-of'),
isEmpty: require('./is-empty'),
isEqual: require('./is-equal'),
isEqualWith: require('./is-equal-with'),
map: require('./map'),
mix,
pick: require('./pick'),
toArray: require('./toArray'),
toString: require('./toString'),
uniqueId: require('./uniqueId')
toArray: require('./to-array'),
toString: require('./to-string'),
uniqueId: require('./unique-id')
};

@@ -42,0 +42,0 @@

const each = require('./each');
const isArrayLike = require('./type/isArrayLike');
const isArrayLike = require('./type/is-array-like');

@@ -4,0 +4,0 @@ const map = function(arr, func) {

module.exports = {
clamp: require('./clamp'),
fixedBase: require('./fixedBase'),
isDecimal: require('./isDecimal'),
isEven: require('./isEven'),
isInteger: require('./isInteger'),
isNegative: require('./isNegative'),
isNumberEqual: require('./isNumberEqual'),
isOdd: require('./isOdd'),
isPositive: require('./isPositive'),
maxBy: require('./maxBy'),
minBy: require('./minBy'),
fixedBase: require('./fixed-base'),
isDecimal: require('./is-decimal'),
isEven: require('./is-even'),
isInteger: require('./is-integer'),
isNegative: require('./is-negative'),
isNumberEqual: require('./is-number-equal'),
isOdd: require('./is-odd'),
isPositive: require('./is-positive'),
maxBy: require('./max-by'),
minBy: require('./min-by'),
mod: require('./mod'),
toDegree: require('./toDegree'),
toInt: require('./toInteger'),
toInteger: require('./toInteger'),
toRadian: require('./toRadian')
toDegree: require('./to-degree'),
toInt: require('./to-integer'),
toInteger: require('./to-integer'),
toRadian: require('./to-radian')
};
module.exports = {
forIn: require('./forIn'),
forIn: require('./for-in'),
has: require('./has'),
hasKey: require('./hasKey'),
hasValue: require('./hasValue'),
hasKey: require('./has-key'),
hasValue: require('./has-value'),
keys: require('./keys'),
isMatch: require('./isMatch'),
isMatch: require('./is-match'),
values: require('./values')
};
const each = require('../each');
const isFunction = require('../type/isFunction');
const isFunction = require('../type/is-function');

@@ -4,0 +4,0 @@ const keys = Object.keys ? obj => Object.keys(obj) : obj => {

const each = require('../each');
const isFunction = require('../type/isFunction');
const isFunction = require('../type/is-function');

@@ -4,0 +4,0 @@ const values = Object.values ? obj => Object.values(obj) : obj => {

const each = require('./each');
const isPlaineObject = require('./type/isPlainObject');
const isPlaineObject = require('./type/is-plain-object');

@@ -4,0 +4,0 @@ const hasOwnProperty = Object.prototype.hasOwnProperty;

const strUtil = {
lc: require('./lc'),
lowerCase: require('./lowerCase'),
lowerFirst: require('./lowerFirst'),
lowerCase: require('./lower-case'),
lowerFirst: require('./lower-first'),
substitute: require('./substitute'),
uc: require('./uc'),
upperCase: require('./upperCase'),
upperFirst: require('./upperFirst')
upperCase: require('./upper-case'),
upperFirst: require('./upper-first')
};
module.exports = strUtil;

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

module.exports = require('./lowerCase');
module.exports = require('./lower-case');

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

module.exports = require('./upperCase');
module.exports = require('./upper-case');

@@ -1,20 +0,20 @@

const isType = require('./isType');
const isType = require('./is-type');
const checkType = {
getType: require('./getType'),
isArray: require('./isArray'),
isArrayLike: require('./isArrayLike'),
isBoolean: require('./isBoolean'),
isFunction: require('./isFunction'),
isNil: require('./isNil'),
isNull: require('./isNull'),
isNumber: require('./isNumber'),
isObject: require('./isObject'),
isObjectLike: require('./isObjectLike'),
isPlainObject: require('./isPlainObject'),
isPrototype: require('./isPrototype'),
getType: require('./get-type'),
isArray: require('./is-array'),
isArrayLike: require('./is-array-like'),
isBoolean: require('./is-boolean'),
isFunction: require('./is-function'),
isNil: require('./is-nil'),
isNull: require('./is-null'),
isNumber: require('./is-number'),
isObject: require('./is-object'),
isObjectLike: require('./is-object-like'),
isPlainObject: require('./is-plain-object'),
isPrototype: require('./is-prototype'),
isType,
isUndefined: require('./isUndefined'),
isString: require('./isString'),
isRegExp: require('./isRegExp')
isUndefined: require('./is-undefined'),
isString: require('./is-string'),
isRegExp: require('./is-reg-exp')
};

@@ -21,0 +21,0 @@

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