@livechat/data-utils
Advanced tools
Comparing version 0.2.11 to 0.2.12
@@ -33,2 +33,6 @@ function add(first, second) { | ||
var capitalizeFirstLetter = function capitalizeFirstLetter(text) { | ||
return text.charAt(0).toUpperCase() + text.slice(1); | ||
}; | ||
function flatMap(iteratee, arr) { | ||
@@ -84,5 +88,5 @@ var _ref; | ||
for (var index = 0; index < text.length; index++) { | ||
var char = text[index]; | ||
var _char = text[index]; | ||
if (isLastCharLower && /[a-zA-Z]/.test(char) && char.toUpperCase() === char) { | ||
if (isLastCharLower && /[a-zA-Z]/.test(_char) && _char.toUpperCase() === _char) { | ||
text = text.slice(0, index) + '-' + text.slice(index); | ||
@@ -93,3 +97,3 @@ isLastCharLower = false; | ||
index++; | ||
} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(char) && char.toLowerCase() === char) { | ||
} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(_char) && _char.toLowerCase() === _char) { | ||
text = text.slice(0, index - 1) + '-' + text.slice(index - 1); | ||
@@ -100,5 +104,5 @@ isLastLastCharUpper = isLastCharUpper; | ||
} else { | ||
isLastCharLower = char.toLowerCase() === char; | ||
isLastCharLower = _char.toLowerCase() === _char; | ||
isLastLastCharUpper = isLastCharUpper; | ||
isLastCharUpper = char.toUpperCase() === char; | ||
isLastCharUpper = _char.toUpperCase() === _char; | ||
} | ||
@@ -177,2 +181,30 @@ } | ||
function deepMerge(target) { | ||
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
sources[_key - 1] = arguments[_key]; | ||
} | ||
if (!sources.length) return target; | ||
var source = sources.shift(); | ||
if (isObject(target) && isObject(source)) { | ||
// false negative | ||
// eslint-disable-next-line no-unused-vars | ||
for (var key in source) { | ||
if (isObject(source[key])) { | ||
var _Object$assign; | ||
if (!target[key]) Object.assign(target, (_Object$assign = {}, _Object$assign[key] = {}, _Object$assign)); | ||
deepMerge(target[key], source[key]); | ||
} else { | ||
var _Object$assign2; | ||
Object.assign(target, (_Object$assign2 = {}, _Object$assign2[key] = source[key], _Object$assign2)); | ||
} | ||
} | ||
} | ||
return deepMerge.apply(void 0, [target].concat(sources)); | ||
} | ||
function isNil(value) { | ||
@@ -608,2 +640,6 @@ return value === null || value === undefined; | ||
function randomInt(min, max) { | ||
return min + Math.floor(Math.random() * (max - min + 1)); | ||
} | ||
function range(max) { | ||
@@ -650,3 +686,3 @@ var arr = []; | ||
function set$1(_keys, val, obj) { | ||
function set(_keys, val, obj) { | ||
var _extends2; | ||
@@ -661,3 +697,3 @@ | ||
var nextObj = obj != null && hasOwn(index, obj) ? obj[index] : {}; | ||
finalVal = set$1(keys.slice(1), val, nextObj); | ||
finalVal = set(keys.slice(1), val, nextObj); | ||
} | ||
@@ -716,2 +752,16 @@ | ||
function shuffle(arr) { | ||
var copy = arr.slice(); | ||
var lastIndex = arr.length - 1; | ||
for (var i = 0; i < arr.length; i++) { | ||
var randomIndex = randomInt(i, lastIndex); | ||
var randomValue = copy[randomIndex]; | ||
copy[randomIndex] = copy[i]; | ||
copy[i] = randomValue; | ||
} | ||
return copy; | ||
} | ||
function sliceDiff(slice, obj) { | ||
@@ -815,2 +865,6 @@ var picked = pickByIndexed(function (value, key) { | ||
var toFixedNumber = function toFixedNumber(num, digits) { | ||
return Number(num.toFixed(digits)); | ||
}; | ||
var toPairs = function toPairs(obj) { | ||
@@ -921,2 +975,2 @@ return Object.keys(obj).map(function (key) { | ||
export { add, assign, chain, cloneDeep, camelCase, compact, compose, debounce, defaultTo, drop, dropRight, ensureArray, entries, find, findIndex, findKey, findLast, findLastIndex, findLastIndexFrom, filledArray, flatMap, flatten, forOwn, fromPairs, generateRandomId, generateUniqueId, get, getOr, groupBy, groupKeys, hasOwn, identity, includes, isArray, isEmpty, isFalsy, isNil, isObject, isTruthy, isPromise, keyBy, keys, last, mapKeys, mapValues, mapValuesIndexed, merge, mergeAll, memoize, memoizeOne, memoizeWith, noop, numericSortBy, omit, omitBy, omitByIndexed, once, over, overArgs, pair, partitionObject, pick, pickBy, pickByIndexed, pickOwn, range, reject, removeAt, set$1 as set, shallowEqual, sign, sliceDiff, snakeCase, someAreTruthy, splitAt, splitRightWhenAccum, spread, sum, take, takeLast, takeRightWhile, takeRightWhileFrom, throttle, toArray, toPairs, trailingThrottle, leadingThrottle, stringCompare, trimStart, trimEnd, repeat, uniq, uniqBy, update, values, without, zip, zipWith }; | ||
export { add, assign, camelCase, capitalizeFirstLetter, chain, cloneDeep, compact, compose, debounce, deepMerge, defaultTo, drop, dropRight, ensureArray, entries, filledArray, find, findIndex, findKey, findLast, findLastIndex, findLastIndexFrom, flatMap, flatten, forOwn, fromPairs, generateRandomId, generateUniqueId, get, getOr, groupBy, groupKeys, hasOwn, identity, includes, isArray, isEmpty, isFalsy, isNil, isObject, isPromise, isTruthy, keyBy, keys, last, leadingThrottle, mapKeys, mapValues, mapValuesIndexed, memoize, memoizeOne, memoizeWith, merge, mergeAll, noop, numericSortBy, omit, omitBy, omitByIndexed, once, over, overArgs, pair, partitionObject, pick, pickBy, pickByIndexed, pickOwn, randomInt, range, reject, removeAt, repeat, set, shallowEqual, shuffle, sign, sliceDiff, snakeCase, someAreTruthy, splitAt, splitRightWhenAccum, spread, stringCompare, sum, take, takeLast, takeRightWhile, takeRightWhileFrom, throttle, toArray, toFixedNumber, toPairs, trailingThrottle, trimEnd, trimStart, uniq, uniqBy, update, values, without, zip, zipWith }; |
@@ -37,2 +37,6 @@ 'use strict'; | ||
var capitalizeFirstLetter = function capitalizeFirstLetter(text) { | ||
return text.charAt(0).toUpperCase() + text.slice(1); | ||
}; | ||
function flatMap(iteratee, arr) { | ||
@@ -88,5 +92,5 @@ var _ref; | ||
for (var index = 0; index < text.length; index++) { | ||
var char = text[index]; | ||
var _char = text[index]; | ||
if (isLastCharLower && /[a-zA-Z]/.test(char) && char.toUpperCase() === char) { | ||
if (isLastCharLower && /[a-zA-Z]/.test(_char) && _char.toUpperCase() === _char) { | ||
text = text.slice(0, index) + '-' + text.slice(index); | ||
@@ -97,3 +101,3 @@ isLastCharLower = false; | ||
index++; | ||
} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(char) && char.toLowerCase() === char) { | ||
} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(_char) && _char.toLowerCase() === _char) { | ||
text = text.slice(0, index - 1) + '-' + text.slice(index - 1); | ||
@@ -104,5 +108,5 @@ isLastLastCharUpper = isLastCharUpper; | ||
} else { | ||
isLastCharLower = char.toLowerCase() === char; | ||
isLastCharLower = _char.toLowerCase() === _char; | ||
isLastLastCharUpper = isLastCharUpper; | ||
isLastCharUpper = char.toUpperCase() === char; | ||
isLastCharUpper = _char.toUpperCase() === _char; | ||
} | ||
@@ -181,2 +185,30 @@ } | ||
function deepMerge(target) { | ||
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
sources[_key - 1] = arguments[_key]; | ||
} | ||
if (!sources.length) return target; | ||
var source = sources.shift(); | ||
if (isObject(target) && isObject(source)) { | ||
// false negative | ||
// eslint-disable-next-line no-unused-vars | ||
for (var key in source) { | ||
if (isObject(source[key])) { | ||
var _Object$assign; | ||
if (!target[key]) Object.assign(target, (_Object$assign = {}, _Object$assign[key] = {}, _Object$assign)); | ||
deepMerge(target[key], source[key]); | ||
} else { | ||
var _Object$assign2; | ||
Object.assign(target, (_Object$assign2 = {}, _Object$assign2[key] = source[key], _Object$assign2)); | ||
} | ||
} | ||
} | ||
return deepMerge.apply(void 0, [target].concat(sources)); | ||
} | ||
function isNil(value) { | ||
@@ -612,2 +644,6 @@ return value === null || value === undefined; | ||
function randomInt(min, max) { | ||
return min + Math.floor(Math.random() * (max - min + 1)); | ||
} | ||
function range(max) { | ||
@@ -654,3 +690,3 @@ var arr = []; | ||
function set$1(_keys, val, obj) { | ||
function set(_keys, val, obj) { | ||
var _extends2; | ||
@@ -665,3 +701,3 @@ | ||
var nextObj = obj != null && hasOwn(index, obj) ? obj[index] : {}; | ||
finalVal = set$1(keys.slice(1), val, nextObj); | ||
finalVal = set(keys.slice(1), val, nextObj); | ||
} | ||
@@ -720,2 +756,16 @@ | ||
function shuffle(arr) { | ||
var copy = arr.slice(); | ||
var lastIndex = arr.length - 1; | ||
for (var i = 0; i < arr.length; i++) { | ||
var randomIndex = randomInt(i, lastIndex); | ||
var randomValue = copy[randomIndex]; | ||
copy[randomIndex] = copy[i]; | ||
copy[i] = randomValue; | ||
} | ||
return copy; | ||
} | ||
function sliceDiff(slice, obj) { | ||
@@ -819,2 +869,6 @@ var picked = pickByIndexed(function (value, key) { | ||
var toFixedNumber = function toFixedNumber(num, digits) { | ||
return Number(num.toFixed(digits)); | ||
}; | ||
var toPairs = function toPairs(obj) { | ||
@@ -927,8 +981,10 @@ return Object.keys(obj).map(function (key) { | ||
exports.assign = assign; | ||
exports.camelCase = camelCase; | ||
exports.capitalizeFirstLetter = capitalizeFirstLetter; | ||
exports.chain = chain; | ||
exports.cloneDeep = cloneDeep; | ||
exports.camelCase = camelCase; | ||
exports.compact = compact; | ||
exports.compose = compose; | ||
exports.debounce = debounce; | ||
exports.deepMerge = deepMerge; | ||
exports.defaultTo = defaultTo; | ||
@@ -939,2 +995,3 @@ exports.drop = drop; | ||
exports.entries = entries; | ||
exports.filledArray = filledArray; | ||
exports.find = find; | ||
@@ -946,3 +1003,2 @@ exports.findIndex = findIndex; | ||
exports.findLastIndexFrom = findLastIndexFrom; | ||
exports.filledArray = filledArray; | ||
exports.flatMap = flatMap; | ||
@@ -966,15 +1022,16 @@ exports.flatten = flatten; | ||
exports.isObject = isObject; | ||
exports.isPromise = isPromise; | ||
exports.isTruthy = isTruthy; | ||
exports.isPromise = isPromise; | ||
exports.keyBy = keyBy; | ||
exports.keys = keys; | ||
exports.last = last; | ||
exports.leadingThrottle = leadingThrottle; | ||
exports.mapKeys = mapKeys; | ||
exports.mapValues = mapValues; | ||
exports.mapValuesIndexed = mapValuesIndexed; | ||
exports.merge = merge; | ||
exports.mergeAll = mergeAll; | ||
exports.memoize = memoize; | ||
exports.memoizeOne = memoizeOne; | ||
exports.memoizeWith = memoizeWith; | ||
exports.merge = merge; | ||
exports.mergeAll = mergeAll; | ||
exports.noop = noop; | ||
@@ -994,7 +1051,10 @@ exports.numericSortBy = numericSortBy; | ||
exports.pickOwn = pickOwn; | ||
exports.randomInt = randomInt; | ||
exports.range = range; | ||
exports.reject = reject; | ||
exports.removeAt = removeAt; | ||
exports.set = set$1; | ||
exports.repeat = repeat; | ||
exports.set = set; | ||
exports.shallowEqual = shallowEqual; | ||
exports.shuffle = shuffle; | ||
exports.sign = sign; | ||
@@ -1007,2 +1067,3 @@ exports.sliceDiff = sliceDiff; | ||
exports.spread = spread; | ||
exports.stringCompare = stringCompare; | ||
exports.sum = sum; | ||
@@ -1015,9 +1076,7 @@ exports.take = take; | ||
exports.toArray = toArray; | ||
exports.toFixedNumber = toFixedNumber; | ||
exports.toPairs = toPairs; | ||
exports.trailingThrottle = trailingThrottle; | ||
exports.leadingThrottle = leadingThrottle; | ||
exports.stringCompare = stringCompare; | ||
exports.trimEnd = trimEnd; | ||
exports.trimStart = trimStart; | ||
exports.trimEnd = trimEnd; | ||
exports.repeat = repeat; | ||
exports.uniq = uniq; | ||
@@ -1024,0 +1083,0 @@ exports.uniqBy = uniqBy; |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global.DataUtils = {}))); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.DataUtils = {})); | ||
}(this, (function (exports) { 'use strict'; | ||
@@ -39,2 +39,6 @@ | ||
var capitalizeFirstLetter = function capitalizeFirstLetter(text) { | ||
return text.charAt(0).toUpperCase() + text.slice(1); | ||
}; | ||
function flatMap(iteratee, arr) { | ||
@@ -90,5 +94,5 @@ var _ref; | ||
for (var index = 0; index < text.length; index++) { | ||
var char = text[index]; | ||
var _char = text[index]; | ||
if (isLastCharLower && /[a-zA-Z]/.test(char) && char.toUpperCase() === char) { | ||
if (isLastCharLower && /[a-zA-Z]/.test(_char) && _char.toUpperCase() === _char) { | ||
text = text.slice(0, index) + '-' + text.slice(index); | ||
@@ -99,3 +103,3 @@ isLastCharLower = false; | ||
index++; | ||
} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(char) && char.toLowerCase() === char) { | ||
} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(_char) && _char.toLowerCase() === _char) { | ||
text = text.slice(0, index - 1) + '-' + text.slice(index - 1); | ||
@@ -106,5 +110,5 @@ isLastLastCharUpper = isLastCharUpper; | ||
} else { | ||
isLastCharLower = char.toLowerCase() === char; | ||
isLastCharLower = _char.toLowerCase() === _char; | ||
isLastLastCharUpper = isLastCharUpper; | ||
isLastCharUpper = char.toUpperCase() === char; | ||
isLastCharUpper = _char.toUpperCase() === _char; | ||
} | ||
@@ -183,2 +187,30 @@ } | ||
function deepMerge(target) { | ||
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
sources[_key - 1] = arguments[_key]; | ||
} | ||
if (!sources.length) return target; | ||
var source = sources.shift(); | ||
if (isObject(target) && isObject(source)) { | ||
// false negative | ||
// eslint-disable-next-line no-unused-vars | ||
for (var key in source) { | ||
if (isObject(source[key])) { | ||
var _Object$assign; | ||
if (!target[key]) Object.assign(target, (_Object$assign = {}, _Object$assign[key] = {}, _Object$assign)); | ||
deepMerge(target[key], source[key]); | ||
} else { | ||
var _Object$assign2; | ||
Object.assign(target, (_Object$assign2 = {}, _Object$assign2[key] = source[key], _Object$assign2)); | ||
} | ||
} | ||
} | ||
return deepMerge.apply(void 0, [target].concat(sources)); | ||
} | ||
function isNil(value) { | ||
@@ -614,2 +646,6 @@ return value === null || value === undefined; | ||
function randomInt(min, max) { | ||
return min + Math.floor(Math.random() * (max - min + 1)); | ||
} | ||
function range(max) { | ||
@@ -656,3 +692,3 @@ var arr = []; | ||
function set$1(_keys, val, obj) { | ||
function set(_keys, val, obj) { | ||
var _extends2; | ||
@@ -667,3 +703,3 @@ | ||
var nextObj = obj != null && hasOwn(index, obj) ? obj[index] : {}; | ||
finalVal = set$1(keys.slice(1), val, nextObj); | ||
finalVal = set(keys.slice(1), val, nextObj); | ||
} | ||
@@ -722,2 +758,16 @@ | ||
function shuffle(arr) { | ||
var copy = arr.slice(); | ||
var lastIndex = arr.length - 1; | ||
for (var i = 0; i < arr.length; i++) { | ||
var randomIndex = randomInt(i, lastIndex); | ||
var randomValue = copy[randomIndex]; | ||
copy[randomIndex] = copy[i]; | ||
copy[i] = randomValue; | ||
} | ||
return copy; | ||
} | ||
function sliceDiff(slice, obj) { | ||
@@ -821,2 +871,6 @@ var picked = pickByIndexed(function (value, key) { | ||
var toFixedNumber = function toFixedNumber(num, digits) { | ||
return Number(num.toFixed(digits)); | ||
}; | ||
var toPairs = function toPairs(obj) { | ||
@@ -929,8 +983,10 @@ return Object.keys(obj).map(function (key) { | ||
exports.assign = assign; | ||
exports.camelCase = camelCase; | ||
exports.capitalizeFirstLetter = capitalizeFirstLetter; | ||
exports.chain = chain; | ||
exports.cloneDeep = cloneDeep; | ||
exports.camelCase = camelCase; | ||
exports.compact = compact; | ||
exports.compose = compose; | ||
exports.debounce = debounce; | ||
exports.deepMerge = deepMerge; | ||
exports.defaultTo = defaultTo; | ||
@@ -941,2 +997,3 @@ exports.drop = drop; | ||
exports.entries = entries; | ||
exports.filledArray = filledArray; | ||
exports.find = find; | ||
@@ -948,3 +1005,2 @@ exports.findIndex = findIndex; | ||
exports.findLastIndexFrom = findLastIndexFrom; | ||
exports.filledArray = filledArray; | ||
exports.flatMap = flatMap; | ||
@@ -968,15 +1024,16 @@ exports.flatten = flatten; | ||
exports.isObject = isObject; | ||
exports.isPromise = isPromise; | ||
exports.isTruthy = isTruthy; | ||
exports.isPromise = isPromise; | ||
exports.keyBy = keyBy; | ||
exports.keys = keys; | ||
exports.last = last; | ||
exports.leadingThrottle = leadingThrottle; | ||
exports.mapKeys = mapKeys; | ||
exports.mapValues = mapValues; | ||
exports.mapValuesIndexed = mapValuesIndexed; | ||
exports.merge = merge; | ||
exports.mergeAll = mergeAll; | ||
exports.memoize = memoize; | ||
exports.memoizeOne = memoizeOne; | ||
exports.memoizeWith = memoizeWith; | ||
exports.merge = merge; | ||
exports.mergeAll = mergeAll; | ||
exports.noop = noop; | ||
@@ -996,7 +1053,10 @@ exports.numericSortBy = numericSortBy; | ||
exports.pickOwn = pickOwn; | ||
exports.randomInt = randomInt; | ||
exports.range = range; | ||
exports.reject = reject; | ||
exports.removeAt = removeAt; | ||
exports.set = set$1; | ||
exports.repeat = repeat; | ||
exports.set = set; | ||
exports.shallowEqual = shallowEqual; | ||
exports.shuffle = shuffle; | ||
exports.sign = sign; | ||
@@ -1009,2 +1069,3 @@ exports.sliceDiff = sliceDiff; | ||
exports.spread = spread; | ||
exports.stringCompare = stringCompare; | ||
exports.sum = sum; | ||
@@ -1017,9 +1078,7 @@ exports.take = take; | ||
exports.toArray = toArray; | ||
exports.toFixedNumber = toFixedNumber; | ||
exports.toPairs = toPairs; | ||
exports.trailingThrottle = trailingThrottle; | ||
exports.leadingThrottle = leadingThrottle; | ||
exports.stringCompare = stringCompare; | ||
exports.trimEnd = trimEnd; | ||
exports.trimStart = trimStart; | ||
exports.trimEnd = trimEnd; | ||
exports.repeat = repeat; | ||
exports.uniq = uniq; | ||
@@ -1026,0 +1085,0 @@ exports.uniqBy = uniqBy; |
@@ -1,1 +0,1 @@ | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.DataUtils={})}(this,function(n){"use strict";function r(n,r){return n+r}var t={}.hasOwnProperty;function a(n,r){return t.call(r,n)}function e(){return(e=Object.assign||function(t){for(var n=arguments.length,r=Array(1<n?n-1:0),e=1;e<n;e++)r[e-1]=arguments[e];return r.forEach(function(n){for(var r in n)a(r,n)&&(t[r]=n[r])}),t}).apply(void 0,arguments)}function u(n,r){var t;return(t=[]).concat.apply(t,r.map(n))}var c=Array.isArray;function f(n){return"object"==typeof n&&null!==n&&!c(n)}function o(t,e){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r]),n},{})}function i(n){return null==n}function l(n,r){for(var t=0;t<r.length;t++){var e=r[t];if(n(e))return e}}function s(n,r,t){for(var e=r;0<=e;e--)if(n(t[e]))return e;return-1}function p(n){return n}function y(r,t){return Object.keys(t).forEach(function(n){r(t[n],n)})}function v(){return Math.random().toString(36).substring(2)}function d(n,r){for(var t="string"==typeof n?n.split("."):n,e=0,u=r;u&&e<t.length;)u=u[t[e++]];return u}function h(n){return 0===(c(n)?n:Object.keys(n)).length}function g(u,o){if(h(o))return u;var i={};return y(function(n,r){if(a(r,o))if(f(u[r])&&f(o[r]))i[r]=g(u[r],o[r]);else if(c(u[r])&&c(o[r])){var t=Math.max(u[r].length,o[r].length);i[r]=Array(t);for(var e=0;e<t;e++)e in o[r]?i[r][e]=o[r][e]:e in u[r]&&(i[r][e]=u[r][e])}else i[r]=o[r];else i[r]=u[r]},u),y(function(n,r){a(r,i)||(i[r]=o[r])},o),i}function m(t,e){var u={};return function(){var n=t.apply(void 0,arguments);if(a(n,u))return u[n];var r=e.apply(void 0,arguments);return u[n]=r}}function O(r){return Object.keys(r).map(function(n){return r[n]})}function b(t,e){return Object.keys(e).reduce(function(n,r){return t(e[r],r)||(n[r]=e[r]),n},{})}function j(n,r){return r.slice(-n)}function k(n,r){return[n,r]}function A(t,e){return Object.keys(e).reduce(function(n,r){return t(e[r],r)&&(n[r]=e[r]),n},{})}function w(){return(w=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n}).apply(this,arguments)}function x(n,r){return n===r?0!==n||0!==r||1/n==1/r:n!=n&&r!=r}function C(n,r){return[r.slice(0,n),r.slice(n,r.length)]}function D(r,n,t){var e=s(function(n){return!r(n)},n,t);return e===n?[]:t.slice(e+1,n+1)}var T=/^\s+/;var L=/\s+$/;function z(t,n){var e=[];return n.filter(function(n){var r=t(n);return-1==e.indexOf(r)&&(e.push(r),!0)})}function B(t,n,e){return n.map(function(n,r){return t(n,e[r])})}n.add=r,n.assign=e,n.chain=function(r,t){return"function"==typeof t?function(n){return r(t(n))(n)}:u(r,t)},n.cloneDeep=function n(r){return c(r)?r.map(n):f(r)?o(n,r):r},n.camelCase=function(n){var r=n.trim();return 0===r.length?"":1===r.length?r.toLowerCase():/^[a-z\d]+$/.test(r)?r:(r!==r.toLowerCase()&&(r=function(n){for(var r=n,t=!1,e=!1,u=!1,o=0;o<r.length;o++){var i=r[o];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(r=r.slice(0,o)+"-"+r.slice(o),u=e,e=!(t=!1),o++):e&&u&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(r=r.slice(0,o-1)+"-"+r.slice(o-1),u=e,t=!(e=!1)):(t=i.toLowerCase()===i,u=e,e=i.toUpperCase()===i)}return r}(r)),r=r.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(n,r){return r.toUpperCase()}))},n.compact=function(e){return c(e)?e.filter(function(n){return null!=n}):Object.keys(e).reduce(function(n,r){var t=e[r];return null!=t&&(n[r]=t),n},{})},n.compose=function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduce(function(n,r){return function(){return n(r.apply(void 0,arguments))}})},n.debounce=function(e,u){var o;return function(){clearTimeout(o);for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];o=setTimeout.apply(void 0,[u,e].concat(r))}},n.defaultTo=function(r){return function(n){return i(n)?r:n}},n.drop=function(n,r){return r.slice(n)},n.dropRight=function(n,r){return r.slice(0,-n)},n.ensureArray=function(n){return c(n)?n:[n]},n.entries=function(r){return Object.keys(r).map(function(n){return[n,r[n]]})},n.find=l,n.findIndex=function(n,r){for(var t=0;t<r.length;t++)if(n(r[t]))return t;return-1},n.findKey=function(r,t){return l(function(n){return r(t[n])},Object.keys(t))},n.findLast=function(n,r){for(var t=r.length-1;0<=t;t--)if(n(r[t]))return r[t]},n.findLastIndex=function(n,r){return s(n,r.length-1,r)},n.findLastIndexFrom=s,n.filledArray=function(n,r){for(var t=[];n--;)t.push(r);return t},n.flatMap=u,n.flatten=function(n){return u(p,n)},n.forOwn=y,n.fromPairs=function(n){return n.reduce(function(n,r){return n[r[0]]=r[1],n},{})},n.generateRandomId=v,n.generateUniqueId=function n(r){var t=v();return a(t,r)?n(r):t},n.get=d,n.getOr=function(n,r,t){var e=d(r,t);return null!=e?e:n},n.groupBy=function(u,o){return Object.keys(o).reduce(function(n,r){var t=o[r],e=u(t);return n[e]=n[e]||[],n[e].push(t),n},{})},n.groupKeys=function(e,u){return Object.keys(u).reduce(function(n,r){var t=e(r);return n[t]=n[t]||{},n[t][r]=u[r],n},{})},n.hasOwn=a,n.identity=p,n.includes=function(n,r){return-1!=r.indexOf(n)},n.isArray=c,n.isEmpty=h,n.isFalsy=function(n){return!n},n.isNil=i,n.isObject=f,n.isTruthy=function(n){return!!n},n.isPromise=function(n){return!!n&&"function"==typeof n.then},n.keyBy=function(t,n){return n.reduce(function(n,r){return n[r[t]]=r,n},{})},n.keys=function(n){var r=[];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&r.push(t);return r},n.last=function(n){return 0<n.length?n[n.length-1]:null},n.mapKeys=function(t,e){return Object.keys(e).reduce(function(n,r){return n[t(r)]=e[r],n},{})},n.mapValues=o,n.mapValuesIndexed=function(t,e){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r],r),n},{})},n.merge=g,n.mergeAll=function(n){if(0===n.length)return{};var r=n[0];return n.slice(1).reduce(function(n,r){return g(n,r)},r)},n.memoize=function(n){return m(p,n)},n.memoizeOne=function(n){var r,t,e=!1;return function(){return e&&(0<arguments.length?arguments[0]:void 0)===t?r:(e=!0,t=0<arguments.length?arguments[0]:void 0,r=n.apply(void 0,arguments))}},n.memoizeWith=m,n.noop=function(){},n.numericSortBy=function(r,n){var t="function"==typeof r?r:function(n){return d(r,n)};return(c(n)?[].concat(n):O(n)).sort(function(n,r){return t(n)-t(r)})},n.omit=function(t,n){return b(function(n,r){return-1!=t.indexOf(r)},n)},n.omitBy=function(t,e){return Object.keys(e).reduce(function(n,r){return t(e[r])||(n[r]=e[r]),n},{})},n.omitByIndexed=b,n.once=function(n){var r,t=!1;return function(){return t?r:(t=!0,r=n.apply(void 0,arguments))}},n.over=function(e){return function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.map(function(n){return n.apply(void 0,r)})}},n.overArgs=function(u,o){return function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];var e=o.map(function(n,r){return n(t[r])});return u.apply(void 0,e.length<t.length?e.concat(j(t.length-e.length,t)):e)}},n.pair=k,n.partitionObject=function(t,e){return Object.keys(e).reduce(function(n,r){return n[t(e[r])?0:1][r]=e[r],n},[{},{}])},n.pick=function(n,t){return n.reduce(function(n,r){return n[r]=t[r],n},{})},n.pickBy=function(t,e){return Object.keys(e).reduce(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{})},n.pickByIndexed=A,n.pickOwn=function(n,t){return n.reduce(function(n,r){return a(r,t)&&(n[r]=t[r]),n},{})},n.range=function(n){for(var r=[],t=0;t<=n;)r.push(t++);return r},n.reject=function(r,n){return n.filter(function(n){return!r(n)})},n.removeAt=function(n,r){var t=[].concat(r);return t.splice(n,1),t},n.set=function n(r,t,e){var u,o=r.split?r.split("."):r,i=o[0],c=t;if(1<o.length){var f=null!=e&&a(i,e)?e[i]:{};c=n(o.slice(1),t,f)}return w({},e,((u={})[i]=c,u))},n.shallowEqual=function(n,r){if(x(n,r))return!0;if("object"!=typeof n||null===n||"object"!=typeof r||null===r)return!1;var t=Object.keys(n);if(t.length!==Object.keys(r).length)return!1;for(var e=0;e<t.length;e++)if(!a(t[e],r)||!x(n[t[e]],r[t[e]]))return!1;return!0},n.sign=function(n){return"number"!=typeof n||isNaN(n)?NaN:0===n?0:-0===n?-0:0<n?1:-1},n.sliceDiff=function(n,t){var r=A(function(n,r){return n!==t[r]},n);return h(r)?null:r},n.snakeCase=function(n){var r=n.replace(/[A-Z]|([-_ ]+)/g,function(n){var r=n.charCodeAt(0);return 64<r&&r<91?"_"+n.toLowerCase():"_"});return"_"===r[0]?r.substr(1):r},n.someAreTruthy=function(n){return n.some(p)},n.splitAt=C,n.splitRightWhenAccum=function(n,r,t){for(var e=t.length;0<e;e--){var u=n(t[e-1],r);if(r=u[1],u[0])return C(e-1,t)}return[[],t]},n.spread=function(r){return function(n){return r.apply(void 0,n)}},n.sum=function(n){return n.reduce(r,0)},n.take=function(n,r){return r.slice(0,n)},n.takeLast=j,n.takeRightWhile=function(n,r){return D(n,r.length-1,r)},n.takeRightWhileFrom=D,n.throttle=function(u,n){var o,i=Date.now()-2*u,c=function(){i=Date.now(),n.apply(void 0,arguments)};return function(){for(var n=Date.now(),r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];n-i<u?(clearTimeout(o),o=setTimeout.apply(void 0,[c,i-n+u].concat(t))):c.apply(void 0,t)}},n.toArray=function(n){return Array.prototype.slice.call(n)},n.toPairs=function(r){return Object.keys(r).map(function(n){return[n,r[n]]})},n.trailingThrottle=function(u,o){var i,c=Date.now()-2*u;return function(){var n=Date.now();n-c<u||(c=Date.now()),clearTimeout(i);for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];i=setTimeout.apply(void 0,[function(){return c=Date.now(),o.apply(void 0,arguments)},c-n+u].concat(t))}},n.leadingThrottle=function(n,r){var t=0;return function(){Date.now()-t<n||(t=Date.now(),r.apply(void 0,arguments))}},n.stringCompare=function(n,r){return n===r?0:n<r?-1:1},n.trimStart=function(n){return n.replace(T,"")},n.trimEnd=function(n){return n.replace(L,"")},n.repeat=function(n,r){return Array(n+1).join(r)},n.uniq=function(n){return z(p,n)},n.uniqBy=z,n.update=function(n,r,t){return[].concat(t.slice(0,n),[r],t.slice(n+1,t.length))},n.values=O,n.without=function(r,n){return n.filter(function(n){return-1==r.indexOf(n)})},n.zip=function(n,r){return B(k,n,r)},n.zipWith=B,Object.defineProperty(n,"__esModule",{value:!0})}); | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((n="undefined"!=typeof globalThis?globalThis:n||self).DataUtils={})}(this,(function(n){"use strict";function r(n,r){return n+r}var t={}.hasOwnProperty;function e(n,r){return t.call(r,n)}function u(){return(u=Object.assign||function(n){for(var r=arguments.length,t=Array(r>1?r-1:0),u=1;r>u;u++)t[u-1]=arguments[u];return t.forEach((function(r){for(var t in r)e(t,r)&&(n[t]=r[t])})),n}).apply(void 0,arguments)}function i(n,r){var t;return(t=[]).concat.apply(t,r.map(n))}var o=Array.isArray;function c(n){return"object"==typeof n&&null!==n&&!o(n)}function f(n,r){return Object.keys(r).reduce((function(t,e){return t[e]=n(r[e]),t}),{})}function a(n){return null==n}function l(n,r){for(var t=0;r.length>t;t++){var e=r[t];if(n(e))return e}}function s(n,r,t){for(var e=r;e>=0;e--)if(n(t[e]))return e;return-1}function p(n){return n}function v(n,r){return Object.keys(r).forEach((function(t){n(r[t],t)}))}function y(){return Math.random().toString(36).substring(2)}function d(n,r){for(var t="string"==typeof n?n.split("."):n,e=0,u=r;u&&t.length>e;)u=u[t[e++]];return u}function h(n){return 0===(o(n)?n:Object.keys(n)).length}function g(n,r){if(h(r))return n;var t={};return v((function(u,i){if(e(i,r))if(c(n[i])&&c(r[i]))t[i]=g(n[i],r[i]);else if(o(n[i])&&o(r[i])){var f=Math.max(n[i].length,r[i].length);t[i]=Array(f);for(var a=0;f>a;a++)a in r[i]?t[i][a]=r[i][a]:a in n[i]&&(t[i][a]=n[i][a])}else t[i]=r[i];else t[i]=n[i]}),n),v((function(n,u){e(u,t)||(t[u]=r[u])}),r),t}function m(n,r){var t={};return function(){var u=n.apply(void 0,arguments);if(e(u,t))return t[u];var i=r.apply(void 0,arguments);return t[u]=i,i}}function b(n){return Object.keys(n).map((function(r){return n[r]}))}function O(n,r){return Object.keys(r).reduce((function(t,e){return n(r[e],e)||(t[e]=r[e]),t}),{})}function j(n,r){return r.slice(-n)}function k(n,r){return[n,r]}function A(n,r){return Object.keys(r).reduce((function(t,e){return n(r[e],e)&&(t[e]=r[e]),t}),{})}function w(n,r){return n+Math.floor(Math.random()*(r-n+1))}function x(){return(x=Object.assign||function(n){for(var r=1;arguments.length>r;r++){var t=arguments[r];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n}).apply(this,arguments)}function C(n,r){return n===r?0!==n||0!==r||1/n==1/r:n!=n&&r!=r}function T(n,r){return[r.slice(0,n),r.slice(n,r.length)]}function D(n,r,t){var e=s((function(r){return!n(r)}),r,t);return e===r?[]:t.slice(e+1,r+1)}var L=/^\s+/;var z=/\s+$/;function I(n,r){var t=[];return r.filter((function(r){var e=n(r);return-1===t.indexOf(e)&&(t.push(e),!0)}))}function B(n,r,t){return r.map((function(r,e){return n(r,t[e])}))}n.add=r,n.assign=u,n.camelCase=function(n){var r=n.trim();return 0===r.length?"":1===r.length?r.toLowerCase():/^[a-z\d]+$/.test(r)?r:(r!==r.toLowerCase()&&(r=function(n){for(var r=n,t=!1,e=!1,u=!1,i=0;r.length>i;i++){var o=r[i];t&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(r=r.slice(0,i)+"-"+r.slice(i),t=!1,u=e,e=!0,i++):e&&u&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(r=r.slice(0,i-1)+"-"+r.slice(i-1),u=e,e=!1,t=!0):(t=o.toLowerCase()===o,u=e,e=o.toUpperCase()===o)}return r}(r)),r=r.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(n,r){return r.toUpperCase()})))},n.capitalizeFirstLetter=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.chain=function(n,r){return"function"==typeof r?function(t){return n(r(t))(t)}:i(n,r)},n.cloneDeep=function n(r){return o(r)?r.map(n):c(r)?f(n,r):r},n.compact=function(n){return o(n)?n.filter((function(n){return null!=n})):Object.keys(n).reduce((function(r,t){var e=n[t];return null!=e&&(r[t]=e),r}),{})},n.compose=function(){for(var n=arguments.length,r=Array(n),t=0;n>t;t++)r[t]=arguments[t];return r.reduce((function(n,r){return function(){return n(r.apply(void 0,arguments))}}))},n.debounce=function(n,r){var t;return function(){clearTimeout(t);for(var e=arguments.length,u=Array(e),i=0;e>i;i++)u[i]=arguments[i];t=setTimeout.apply(void 0,[r,n].concat(u))}},n.deepMerge=function n(r){for(var t=arguments.length,e=Array(t>1?t-1:0),u=1;t>u;u++)e[u-1]=arguments[u];if(!e.length)return r;var i=e.shift();if(c(r)&&c(i))for(var o in i){var f,a;if(c(i[o]))r[o]||Object.assign(r,((f={})[o]={},f)),n(r[o],i[o]);else Object.assign(r,((a={})[o]=i[o],a))}return n.apply(void 0,[r].concat(e))},n.defaultTo=function(n){return function(r){return a(r)?n:r}},n.drop=function(n,r){return r.slice(n)},n.dropRight=function(n,r){return r.slice(0,-n)},n.ensureArray=function(n){return o(n)?n:[n]},n.entries=function(n){return Object.keys(n).map((function(r){return[r,n[r]]}))},n.filledArray=function(n,r){for(var t=[];n--;)t.push(r);return t},n.find=l,n.findIndex=function(n,r){for(var t=0;r.length>t;t++)if(n(r[t]))return t;return-1},n.findKey=function(n,r){return l((function(t){return n(r[t])}),Object.keys(r))},n.findLast=function(n,r){for(var t=r.length-1;t>=0;t--)if(n(r[t]))return r[t]},n.findLastIndex=function(n,r){return s(n,r.length-1,r)},n.findLastIndexFrom=s,n.flatMap=i,n.flatten=function(n){return i(p,n)},n.forOwn=v,n.fromPairs=function(n){return n.reduce((function(n,r){return n[r[0]]=r[1],n}),{})},n.generateRandomId=y,n.generateUniqueId=function n(r){var t=y();return e(t,r)?n(r):t},n.get=d,n.getOr=function(n,r,t){var e=d(r,t);return null!=e?e:n},n.groupBy=function(n,r){return Object.keys(r).reduce((function(t,e){var u=r[e],i=n(u);return t[i]=t[i]||[],t[i].push(u),t}),{})},n.groupKeys=function(n,r){return Object.keys(r).reduce((function(t,e){var u=n(e);return t[u]=t[u]||{},t[u][e]=r[e],t}),{})},n.hasOwn=e,n.identity=p,n.includes=function(n,r){return-1!==r.indexOf(n)},n.isArray=o,n.isEmpty=h,n.isFalsy=function(n){return!n},n.isNil=a,n.isObject=c,n.isPromise=function(n){return!!n&&"function"==typeof n.then},n.isTruthy=function(n){return!!n},n.keyBy=function(n,r){return r.reduce((function(r,t){return r[t[n]]=t,r}),{})},n.keys=function(n){var r=[];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&r.push(t);return r},n.last=function(n){return n.length>0?n[n.length-1]:null},n.leadingThrottle=function(n,r){var t=0;return function(){var e=Date.now();n>e-t||(t=Date.now(),r.apply(void 0,arguments))}},n.mapKeys=function(n,r){return Object.keys(r).reduce((function(t,e){return t[n(e)]=r[e],t}),{})},n.mapValues=f,n.mapValuesIndexed=function(n,r){return Object.keys(r).reduce((function(t,e){return t[e]=n(r[e],e),t}),{})},n.memoize=function(n){return m(p,n)},n.memoizeOne=function(n){var r,t,e=!1;return function(){return e&&(arguments.length>0?arguments[0]:void 0)===t?r:(e=!0,t=arguments.length>0?arguments[0]:void 0,r=n.apply(void 0,arguments))}},n.memoizeWith=m,n.merge=g,n.mergeAll=function(n){if(0===n.length)return{};var r=n[0];return n.slice(1).reduce((function(n,r){return g(n,r)}),r)},n.noop=function(){},n.numericSortBy=function(n,r){var t="function"==typeof n?n:function(r){return d(n,r)};return(o(r)?[].concat(r):b(r)).sort((function(n,r){return t(n)-t(r)}))},n.omit=function(n,r){return O((function(r,t){return-1!==n.indexOf(t)}),r)},n.omitBy=function(n,r){return Object.keys(r).reduce((function(t,e){return n(r[e])||(t[e]=r[e]),t}),{})},n.omitByIndexed=O,n.once=function(n){var r,t=!1;return function(){return t?r:(t=!0,r=n.apply(void 0,arguments))}},n.over=function(n){return function(){for(var r=arguments.length,t=Array(r),e=0;r>e;e++)t[e]=arguments[e];return n.map((function(n){return n.apply(void 0,t)}))}},n.overArgs=function(n,r){return function(){for(var t=arguments.length,e=Array(t),u=0;t>u;u++)e[u]=arguments[u];var i=r.map((function(n,r){return n(e[r])}));return n.apply(void 0,e.length>i.length?i.concat(j(e.length-i.length,e)):i)}},n.pair=k,n.partitionObject=function(n,r){return Object.keys(r).reduce((function(t,e){return t[n(r[e])?0:1][e]=r[e],t}),[{},{}])},n.pick=function(n,r){return n.reduce((function(n,t){return n[t]=r[t],n}),{})},n.pickBy=function(n,r){return Object.keys(r).reduce((function(t,e){return n(r[e])&&(t[e]=r[e]),t}),{})},n.pickByIndexed=A,n.pickOwn=function(n,r){return n.reduce((function(n,t){return e(t,r)&&(n[t]=r[t]),n}),{})},n.randomInt=w,n.range=function(n){for(var r=[],t=0;n>=t;)r.push(t++);return r},n.reject=function(n,r){return r.filter((function(r){return!n(r)}))},n.removeAt=function(n,r){var t=[].concat(r);return t.splice(n,1),t},n.repeat=function(n,r){return Array(n+1).join(r)},n.set=function n(r,t,u){var i,o=r.split?r.split("."):r,c=o[0],f=t;if(o.length>1){var a=null!=u&&e(c,u)?u[c]:{};f=n(o.slice(1),t,a)}return x({},u,((i={})[c]=f,i))},n.shallowEqual=function(n,r){if(C(n,r))return!0;if("object"!=typeof n||null===n||"object"!=typeof r||null===r)return!1;var t=Object.keys(n);if(t.length!==Object.keys(r).length)return!1;for(var u=0;t.length>u;u++)if(!e(t[u],r)||!C(n[t[u]],r[t[u]]))return!1;return!0},n.shuffle=function(n){for(var r=n.slice(),t=n.length-1,e=0;n.length>e;e++){var u=w(e,t),i=r[u];r[u]=r[e],r[e]=i}return r},n.sign=function(n){return"number"!=typeof n||isNaN(n)?NaN:0===n?0:-0===n?-0:n>0?1:-1},n.sliceDiff=function(n,r){var t=A((function(n,t){return n!==r[t]}),n);return h(t)?null:t},n.snakeCase=function(n){var r=n.replace(/[A-Z]|([-_ ]+)/g,(function(n){var r=n.charCodeAt(0);return r>64&&91>r?"_"+n.toLowerCase():"_"}));return"_"===r[0]?r.substr(1):r},n.someAreTruthy=function(n){return n.some(p)},n.splitAt=T,n.splitRightWhenAccum=function(n,r,t){for(var e=t.length;e>0;e--){var u=n(t[e-1],r);if(r=u[1],u[0])return T(e-1,t)}return[[],t]},n.spread=function(n){return function(r){return n.apply(void 0,r)}},n.stringCompare=function(n,r){return n===r?0:r>n?-1:1},n.sum=function(n){return n.reduce(r,0)},n.take=function(n,r){return r.slice(0,n)},n.takeLast=j,n.takeRightWhile=function(n,r){return D(n,r.length-1,r)},n.takeRightWhileFrom=D,n.throttle=function(n,r){var t,e=Date.now()-2*n,u=function(){e=Date.now(),r.apply(void 0,arguments)};return function(){for(var r=Date.now(),i=arguments.length,o=Array(i),c=0;i>c;c++)o[c]=arguments[c];n>r-e?(clearTimeout(t),t=setTimeout.apply(void 0,[u,e-r+n].concat(o))):u.apply(void 0,o)}},n.toArray=function(n){return Array.prototype.slice.call(n)},n.toFixedNumber=function(n,r){return Number(n.toFixed(r))},n.toPairs=function(n){return Object.keys(n).map((function(r){return[r,n[r]]}))},n.trailingThrottle=function(n,r){var t,e=Date.now()-2*n,u=function(){return e=Date.now(),r.apply(void 0,arguments)};return function(){var r=Date.now();n>r-e||(e=Date.now()),clearTimeout(t);for(var i=arguments.length,o=Array(i),c=0;i>c;c++)o[c]=arguments[c];t=setTimeout.apply(void 0,[u,e-r+n].concat(o))}},n.trimEnd=function(n){return n.replace(z,"")},n.trimStart=function(n){return n.replace(L,"")},n.uniq=function(n){return I(p,n)},n.uniqBy=I,n.update=function(n,r,t){return[].concat(t.slice(0,n),[r],t.slice(n+1,t.length))},n.values=b,n.without=function(n,r){return r.filter((function(r){return-1===n.indexOf(r)}))},n.zip=function(n,r){return B(k,n,r)},n.zipWith=B,Object.defineProperty(n,"__esModule",{value:!0})})); |
{ | ||
"name": "@livechat/data-utils", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "Collections utility functions", | ||
@@ -15,11 +15,18 @@ "contributors": [ | ||
"types": "./types", | ||
"files": ["dist", "types/**/*.d.ts"], | ||
"files": [ | ||
"dist", | ||
"types/**/*.d.ts" | ||
], | ||
"keywords": [], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@babel/core": "^7.4.0", | ||
"@babel/plugin-proposal-class-properties": "^7.4.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.0.0", | ||
"@babel/preset-env": "^7.4.2", | ||
"@babel/preset-typescript": "^7.3.3", | ||
"@babel/core": "^7.10.5", | ||
"@babel/plugin-proposal-class-properties": "^7.10.4", | ||
"@babel/plugin-syntax-dynamic-import": "^7.8.3", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@rollup/plugin-babel": "^5.2.1", | ||
"@rollup/plugin-commonjs": "^15.0.0", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@rollup/plugin-replace": "^2.3.3", | ||
"babel-jest": "^24.9.0", | ||
@@ -29,9 +36,5 @@ "jest": "24.9.0", | ||
"rimraf": "^2.6.1", | ||
"rollup": "^0.63.5", | ||
"rollup-plugin-babel": "^4.0.1", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-plugin-replace": "^1.1.1", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
"typescript": "^3.6.4" | ||
"rollup": "^2.27.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"typescript": "^3.9.7" | ||
}, | ||
@@ -38,0 +41,0 @@ "scripts": { |
export { default as add } from './add'; | ||
export { default as assign } from './assign'; | ||
export { default as capitalizeFirstLetter } from './capitalizeFirstLetter'; | ||
export { default as chain } from './chain'; | ||
@@ -9,2 +10,3 @@ export { default as cloneDeep } from './cloneDeep'; | ||
export { default as debounce } from './debounce'; | ||
export { default as deepMerge } from './deepMerge'; | ||
export { default as defaultTo } from './defaultTo'; | ||
@@ -67,2 +69,3 @@ export { default as drop } from './drop'; | ||
export { default as pickOwn } from './pickOwn'; | ||
export { default as randomInt } from './randomInt'; | ||
export { default as range } from './range'; | ||
@@ -73,2 +76,4 @@ export { default as reject } from './reject'; | ||
export { default as shallowEqual } from './shallowEqual'; | ||
export { default as sign } from './sign'; | ||
export { default as shuffle } from './shuffle'; | ||
export { default as sliceDiff } from './sliceDiff'; | ||
@@ -87,2 +92,3 @@ export { default as snakeCase } from './snakeCase'; | ||
export { default as toArray } from './toArray'; | ||
export { default as toFixedNumber } from './toFixedNumber'; | ||
export { default as toPairs } from './toPairs'; | ||
@@ -89,0 +95,0 @@ export { default as trailingThrottle } from './trailingThrottle'; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
100622
70
2773
1