Travis build: 1102 [cron]
This commit is contained in:
92
dist/_30s.es5.js
vendored
92
dist/_30s.es5.js
vendored
@ -851,6 +851,15 @@
|
||||
return fn(obj[key], key, obj);
|
||||
});
|
||||
};
|
||||
var formToObject = function formToObject(form) {
|
||||
return Array.from(new FormData(form)).reduce(function (acc, _ref10) {
|
||||
var _ref11 = _slicedToArray(_ref10, 2),
|
||||
key = _ref11[0],
|
||||
value = _ref11[1];
|
||||
|
||||
return _objectSpread({}, acc, _defineProperty({}, key, value));
|
||||
}, {});
|
||||
};
|
||||
var formatDuration = function formatDuration(ms) {
|
||||
if (ms < 0) ms = -ms;
|
||||
var time = {
|
||||
@ -862,10 +871,10 @@
|
||||
};
|
||||
return Object.entries(time).filter(function (val) {
|
||||
return val[1] !== 0;
|
||||
}).map(function (_ref10) {
|
||||
var _ref11 = _slicedToArray(_ref10, 2),
|
||||
key = _ref11[0],
|
||||
val = _ref11[1];
|
||||
}).map(function (_ref12) {
|
||||
var _ref13 = _slicedToArray(_ref12, 2),
|
||||
key = _ref13[0],
|
||||
val = _ref13[1];
|
||||
|
||||
return "".concat(val, " ").concat(key).concat(val !== 1 ? 's' : '');
|
||||
}).join(', ');
|
||||
@ -1065,9 +1074,9 @@
|
||||
var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
||||
|
||||
if (end && start > end) {
|
||||
var _ref12 = [start, end];
|
||||
end = _ref12[0];
|
||||
start = _ref12[1];
|
||||
var _ref14 = [start, end];
|
||||
end = _ref14[0];
|
||||
start = _ref14[1];
|
||||
}
|
||||
|
||||
return end == null ? n >= 0 && n < start : n >= start && n < end;
|
||||
@ -1455,14 +1464,14 @@
|
||||
}, {});
|
||||
}, {});
|
||||
};
|
||||
var midpoint = function midpoint(_ref13, _ref14) {
|
||||
var _ref15 = _slicedToArray(_ref13, 2),
|
||||
x1 = _ref15[0],
|
||||
y1 = _ref15[1];
|
||||
var midpoint = function midpoint(_ref15, _ref16) {
|
||||
var _ref17 = _slicedToArray(_ref15, 2),
|
||||
x1 = _ref17[0],
|
||||
y1 = _ref17[1];
|
||||
|
||||
var _ref16 = _slicedToArray(_ref14, 2),
|
||||
x2 = _ref16[0],
|
||||
y2 = _ref16[1];
|
||||
var _ref18 = _slicedToArray(_ref16, 2),
|
||||
x2 = _ref18[0],
|
||||
y2 = _ref18[1];
|
||||
|
||||
return [(x1 + x2) / 2, (y1 + y2) / 2];
|
||||
};
|
||||
@ -1536,10 +1545,10 @@
|
||||
return (n === -1 ? arr.slice(n) : arr.slice(n, n + 1))[0];
|
||||
};
|
||||
var objectFromPairs = function objectFromPairs(arr) {
|
||||
return arr.reduce(function (a, _ref17) {
|
||||
var _ref18 = _slicedToArray(_ref17, 2),
|
||||
key = _ref18[0],
|
||||
val = _ref18[1];
|
||||
return arr.reduce(function (a, _ref19) {
|
||||
var _ref20 = _slicedToArray(_ref19, 2),
|
||||
key = _ref20[0],
|
||||
val = _ref20[1];
|
||||
|
||||
return a[key] = val, a;
|
||||
}, {});
|
||||
@ -1628,10 +1637,10 @@
|
||||
return _toConsumableArray(arr).sort(function (a, b) {
|
||||
return props.reduce(function (acc, prop, i) {
|
||||
if (acc === 0) {
|
||||
var _ref19 = orders && orders[i] === 'desc' ? [b[prop], a[prop]] : [a[prop], b[prop]],
|
||||
_ref20 = _slicedToArray(_ref19, 2),
|
||||
p1 = _ref20[0],
|
||||
p2 = _ref20[1];
|
||||
var _ref21 = orders && orders[i] === 'desc' ? [b[prop], a[prop]] : [a[prop], b[prop]],
|
||||
_ref22 = _slicedToArray(_ref21, 2),
|
||||
p1 = _ref22[0],
|
||||
p2 = _ref22[1];
|
||||
|
||||
acc = p1 > p2 ? 1 : p1 < p2 ? -1 : 0;
|
||||
}
|
||||
@ -2009,8 +2018,8 @@
|
||||
type: 'application/javascript; charset=utf-8'
|
||||
}));
|
||||
return new Promise(function (res, rej) {
|
||||
worker.onmessage = function (_ref21) {
|
||||
var data = _ref21.data;
|
||||
worker.onmessage = function (_ref23) {
|
||||
var data = _ref23.data;
|
||||
res(data), worker.terminate();
|
||||
};
|
||||
|
||||
@ -2027,18 +2036,18 @@
|
||||
var sample = function sample(arr) {
|
||||
return arr[Math.floor(Math.random() * arr.length)];
|
||||
};
|
||||
var sampleSize = function sampleSize(_ref22) {
|
||||
var _ref23 = _toArray(_ref22),
|
||||
arr = _ref23.slice(0);
|
||||
var sampleSize = function sampleSize(_ref24) {
|
||||
var _ref25 = _toArray(_ref24),
|
||||
arr = _ref25.slice(0);
|
||||
|
||||
var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
||||
var m = arr.length;
|
||||
|
||||
while (m) {
|
||||
var i = Math.floor(Math.random() * m--);
|
||||
var _ref24 = [arr[i], arr[m]];
|
||||
arr[m] = _ref24[0];
|
||||
arr[i] = _ref24[1];
|
||||
var _ref26 = [arr[i], arr[m]];
|
||||
arr[m] = _ref26[0];
|
||||
arr[i] = _ref26[1];
|
||||
}
|
||||
|
||||
return arr.slice(0, n);
|
||||
@ -2060,6 +2069,11 @@
|
||||
var serializeCookie = function serializeCookie(name, val) {
|
||||
return "".concat(encodeURIComponent(name), "=").concat(encodeURIComponent(val));
|
||||
};
|
||||
var serializeForm = function serializeForm(form) {
|
||||
return Array.from(new FormData(form), function (field) {
|
||||
return field.map(encodeURIComponent).join('=');
|
||||
}).join('&');
|
||||
};
|
||||
var setStyle = function setStyle(el, ruleName, val) {
|
||||
return el.style[ruleName] = val;
|
||||
};
|
||||
@ -2085,17 +2099,17 @@
|
||||
return e.style.display = '';
|
||||
});
|
||||
};
|
||||
var shuffle = function shuffle(_ref25) {
|
||||
var _ref26 = _toArray(_ref25),
|
||||
arr = _ref26.slice(0);
|
||||
var shuffle = function shuffle(_ref27) {
|
||||
var _ref28 = _toArray(_ref27),
|
||||
arr = _ref28.slice(0);
|
||||
|
||||
var m = arr.length;
|
||||
|
||||
while (m) {
|
||||
var i = Math.floor(Math.random() * m--);
|
||||
var _ref27 = [arr[i], arr[m]];
|
||||
arr[m] = _ref27[0];
|
||||
arr[i] = _ref27[1];
|
||||
var _ref29 = [arr[i], arr[m]];
|
||||
arr[m] = _ref29[0];
|
||||
arr[i] = _ref29[1];
|
||||
}
|
||||
|
||||
return arr;
|
||||
@ -2169,8 +2183,8 @@
|
||||
};
|
||||
}).sort(function (a, b) {
|
||||
return compare(a.item, b.item) || a.index - b.index;
|
||||
}).map(function (_ref28) {
|
||||
var item = _ref28.item;
|
||||
}).map(function (_ref30) {
|
||||
var item = _ref30.item;
|
||||
return item;
|
||||
});
|
||||
};
|
||||
@ -2721,6 +2735,7 @@
|
||||
exports.forEachRight = forEachRight;
|
||||
exports.forOwn = forOwn;
|
||||
exports.forOwnRight = forOwnRight;
|
||||
exports.formToObject = formToObject;
|
||||
exports.formatDuration = formatDuration;
|
||||
exports.fromCamelCase = fromCamelCase;
|
||||
exports.functionName = functionName;
|
||||
@ -2891,6 +2906,7 @@
|
||||
exports.scrollToTop = scrollToTop;
|
||||
exports.sdbm = sdbm;
|
||||
exports.serializeCookie = serializeCookie;
|
||||
exports.serializeForm = serializeForm;
|
||||
exports.setStyle = setStyle;
|
||||
exports.shallowClone = shallowClone;
|
||||
exports.shank = shank;
|
||||
|
||||
2
dist/_30s.es5.min.js
vendored
2
dist/_30s.es5.min.js
vendored
File diff suppressed because one or more lines are too long
18
dist/_30s.esm.js
vendored
18
dist/_30s.esm.js
vendored
@ -386,6 +386,14 @@ const forOwnRight = (obj, fn) =>
|
||||
Object.keys(obj)
|
||||
.reverse()
|
||||
.forEach(key => fn(obj[key], key, obj));
|
||||
const formToObject = form =>
|
||||
Array.from(new FormData(form)).reduce(
|
||||
(acc, [key, value]) => ({
|
||||
...acc,
|
||||
[key]: value
|
||||
}),
|
||||
{}
|
||||
);
|
||||
const formatDuration = ms => {
|
||||
if (ms < 0) ms = -ms;
|
||||
const time = {
|
||||
@ -988,9 +996,9 @@ const reject = (pred, array) => array.filter((...args) => !pred(...args));
|
||||
const remove = (arr, func) =>
|
||||
Array.isArray(arr)
|
||||
? arr.filter(func).reduce((acc, val) => {
|
||||
arr.splice(arr.indexOf(val), 1);
|
||||
return acc.concat(val);
|
||||
}, [])
|
||||
arr.splice(arr.indexOf(val), 1);
|
||||
return acc.concat(val);
|
||||
}, [])
|
||||
: [];
|
||||
const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, '');
|
||||
const renameKeys = (keysMap, obj) =>
|
||||
@ -1044,6 +1052,8 @@ const sdbm = str => {
|
||||
);
|
||||
};
|
||||
const serializeCookie = (name, val) => `${encodeURIComponent(name)}=${encodeURIComponent(val)}`;
|
||||
const serializeForm = form =>
|
||||
Array.from(new FormData(form), field => field.map(encodeURIComponent).join('=')).join('&');
|
||||
const setStyle = (el, ruleName, val) => (el.style[ruleName] = val);
|
||||
const shallowClone = obj => Object.assign({}, obj);
|
||||
const shank = (arr, index = 0, delCount = 0, ...elements) =>
|
||||
@ -1353,4 +1363,4 @@ const zipWith = (...array) => {
|
||||
);
|
||||
};
|
||||
|
||||
export { CSVToArray, CSVToJSON, JSONToFile, JSONtoCSV, RGBToHex, URLJoin, UUIDGeneratorBrowser, UUIDGeneratorNode, all, allEqual, any, approximatelyEqual, arrayToCSV, arrayToHtmlList, ary, atob, attempt, average, averageBy, bifurcate, bifurcateBy, bind, bindAll, bindKey, binomialCoefficient, bottomVisible, btoa, byteSize, call, capitalize, capitalizeEveryWord, castArray, chainAsync, checkProp, chunk, clampNumber, cloneRegExp, coalesce, coalesceFactory, collectInto, colorize, compact, compactWhitespace, compose, composeRight, converge, copyToClipboard, countBy, countOccurrences, counter, createDirIfNotExists, createElement, createEventHub, currentURL, curry, dayOfYear, debounce, decapitalize, deepClone, deepFlatten, deepFreeze, deepMapKeys, defaults, defer, degreesToRads, delay, detectDeviceType, difference, differenceBy, differenceWith, dig, digitize, distance, drop, dropRight, dropRightWhile, dropWhile, elementContains, elementIsVisibleInViewport, elo, equals, escapeHTML, escapeRegExp, everyNth, extendHex, factorial, fibonacci, filterFalsy, filterNonUnique, filterNonUniqueBy, findKey, findLast, findLastIndex, findLastKey, flatten, flattenObject, flip, forEachRight, forOwn, forOwnRight, formatDuration, fromCamelCase, functionName, functions, gcd, geometricProgression, get, getColonTimeFromDate, getDaysDiffBetweenDates, getImages, getMeridiemSuffixOfInteger, getScrollPosition, getStyle, getType, getURLParameters, groupBy, hammingDistance, hasClass, hasFlags, hashBrowser, hashNode, head, hexToRGB, hide, httpGet, httpPost, httpsRedirect, hz, inRange, indentString, indexOfAll, initial, initialize2DArray, initializeArrayWithRange, initializeArrayWithRangeRight, initializeArrayWithValues, initializeNDArray, insertAfter, insertBefore, intersection, intersectionBy, intersectionWith, invertKeyValues, is, isAbsoluteURL, isAfterDate, isAnagram, isArrayLike, isBeforeDate, isBoolean, isBrowser, isBrowserTabFocused, isDivisible, isDuplexStream, isEmpty, isEven, isFunction, isLowerCase, isNegativeZero, isNil, isNull, isNumber, isObject, isObjectLike, isPlainObject, isPrime, isPrimitive, isPromiseLike, isReadableStream, isSameDate, isSorted, isStream, isString, isSymbol, isTravisCI, isUndefined, isUpperCase, isValidJSON, isWritableStream, join, last, lcm, longestItem, lowercaseKeys, luhnCheck, mapKeys, mapNumRange, mapObject, mapString, mapValues, mask, matches, matchesWith, maxBy, maxDate, maxN, median, memoize, merge, midpoint, minBy, minDate, minN, mostPerformant, negate, nest, nodeListToArray, none, nthArg, nthElement, objectFromPairs, objectToPairs, observeMutations, off, offset, omit, omitBy, on, onUserInputChange, once, orderBy, over, overArgs, pad, palindrome, parseCookie, partial, partialRight, partition, percentile, permutations, pick, pickBy, pipeAsyncFunctions, pipeFunctions, pluralize, powerset, prefix, prettyBytes, primes, promisify, pull, pullAtIndex, pullAtValue, pullBy, radsToDegrees, randomHexColorCode, randomIntArrayInRange, randomIntegerInRange, randomNumberInRange, readFileLines, rearg, recordAnimationFrames, redirect, reduceSuccessive, reduceWhich, reducedFilter, reject, remove, removeNonASCII, renameKeys, reverseString, round, runAsync, runPromisesInSeries, sample, sampleSize, scrollToTop, sdbm, serializeCookie, setStyle, shallowClone, shank, show, shuffle, similarity, size, sleep, smoothScroll, sortCharactersInString, sortedIndex, sortedIndexBy, sortedLastIndex, sortedLastIndexBy, splitLines, spreadOver, stableSort, standardDeviation, stringPermutations, stripHTMLTags, sum, sumBy, sumPower, symmetricDifference, symmetricDifferenceBy, symmetricDifferenceWith, tail, take, takeRight, takeRightWhile, takeWhile, throttle, timeTaken, times, toCamelCase, toCurrency, toDecimalMark, toHash, toKebabCase, toOrdinalSuffix, toSafeInteger, toSnakeCase, toTitleCase, toggleClass, tomorrow, transform, triggerEvent, truncateString, truthCheckCollection, unary, uncurry, unescapeHTML, unflattenObject, unfold, union, unionBy, unionWith, uniqueElements, uniqueElementsBy, uniqueElementsByRight, uniqueSymmetricDifference, untildify, unzip, unzipWith, validateNumber, vectorDistance, when, without, words, xProd, yesNo, zip, zipObject, zipWith };
|
||||
export { CSVToArray, CSVToJSON, JSONToFile, JSONtoCSV, RGBToHex, URLJoin, UUIDGeneratorBrowser, UUIDGeneratorNode, all, allEqual, any, approximatelyEqual, arrayToCSV, arrayToHtmlList, ary, atob, attempt, average, averageBy, bifurcate, bifurcateBy, bind, bindAll, bindKey, binomialCoefficient, bottomVisible, btoa, byteSize, call, capitalize, capitalizeEveryWord, castArray, chainAsync, checkProp, chunk, clampNumber, cloneRegExp, coalesce, coalesceFactory, collectInto, colorize, compact, compactWhitespace, compose, composeRight, converge, copyToClipboard, countBy, countOccurrences, counter, createDirIfNotExists, createElement, createEventHub, currentURL, curry, dayOfYear, debounce, decapitalize, deepClone, deepFlatten, deepFreeze, deepMapKeys, defaults, defer, degreesToRads, delay, detectDeviceType, difference, differenceBy, differenceWith, dig, digitize, distance, drop, dropRight, dropRightWhile, dropWhile, elementContains, elementIsVisibleInViewport, elo, equals, escapeHTML, escapeRegExp, everyNth, extendHex, factorial, fibonacci, filterFalsy, filterNonUnique, filterNonUniqueBy, findKey, findLast, findLastIndex, findLastKey, flatten, flattenObject, flip, forEachRight, forOwn, forOwnRight, formToObject, formatDuration, fromCamelCase, functionName, functions, gcd, geometricProgression, get, getColonTimeFromDate, getDaysDiffBetweenDates, getImages, getMeridiemSuffixOfInteger, getScrollPosition, getStyle, getType, getURLParameters, groupBy, hammingDistance, hasClass, hasFlags, hashBrowser, hashNode, head, hexToRGB, hide, httpGet, httpPost, httpsRedirect, hz, inRange, indentString, indexOfAll, initial, initialize2DArray, initializeArrayWithRange, initializeArrayWithRangeRight, initializeArrayWithValues, initializeNDArray, insertAfter, insertBefore, intersection, intersectionBy, intersectionWith, invertKeyValues, is, isAbsoluteURL, isAfterDate, isAnagram, isArrayLike, isBeforeDate, isBoolean, isBrowser, isBrowserTabFocused, isDivisible, isDuplexStream, isEmpty, isEven, isFunction, isLowerCase, isNegativeZero, isNil, isNull, isNumber, isObject, isObjectLike, isPlainObject, isPrime, isPrimitive, isPromiseLike, isReadableStream, isSameDate, isSorted, isStream, isString, isSymbol, isTravisCI, isUndefined, isUpperCase, isValidJSON, isWritableStream, join, last, lcm, longestItem, lowercaseKeys, luhnCheck, mapKeys, mapNumRange, mapObject, mapString, mapValues, mask, matches, matchesWith, maxBy, maxDate, maxN, median, memoize, merge, midpoint, minBy, minDate, minN, mostPerformant, negate, nest, nodeListToArray, none, nthArg, nthElement, objectFromPairs, objectToPairs, observeMutations, off, offset, omit, omitBy, on, onUserInputChange, once, orderBy, over, overArgs, pad, palindrome, parseCookie, partial, partialRight, partition, percentile, permutations, pick, pickBy, pipeAsyncFunctions, pipeFunctions, pluralize, powerset, prefix, prettyBytes, primes, promisify, pull, pullAtIndex, pullAtValue, pullBy, radsToDegrees, randomHexColorCode, randomIntArrayInRange, randomIntegerInRange, randomNumberInRange, readFileLines, rearg, recordAnimationFrames, redirect, reduceSuccessive, reduceWhich, reducedFilter, reject, remove, removeNonASCII, renameKeys, reverseString, round, runAsync, runPromisesInSeries, sample, sampleSize, scrollToTop, sdbm, serializeCookie, serializeForm, setStyle, shallowClone, shank, show, shuffle, similarity, size, sleep, smoothScroll, sortCharactersInString, sortedIndex, sortedIndexBy, sortedLastIndex, sortedLastIndexBy, splitLines, spreadOver, stableSort, standardDeviation, stringPermutations, stripHTMLTags, sum, sumBy, sumPower, symmetricDifference, symmetricDifferenceBy, symmetricDifferenceWith, tail, take, takeRight, takeRightWhile, takeWhile, throttle, timeTaken, times, toCamelCase, toCurrency, toDecimalMark, toHash, toKebabCase, toOrdinalSuffix, toSafeInteger, toSnakeCase, toTitleCase, toggleClass, tomorrow, transform, triggerEvent, truncateString, truthCheckCollection, unary, uncurry, unescapeHTML, unflattenObject, unfold, union, unionBy, unionWith, uniqueElements, uniqueElementsBy, uniqueElementsByRight, uniqueSymmetricDifference, untildify, unzip, unzipWith, validateNumber, vectorDistance, when, without, words, xProd, yesNo, zip, zipObject, zipWith };
|
||||
|
||||
18
dist/_30s.js
vendored
18
dist/_30s.js
vendored
@ -392,6 +392,14 @@
|
||||
Object.keys(obj)
|
||||
.reverse()
|
||||
.forEach(key => fn(obj[key], key, obj));
|
||||
const formToObject = form =>
|
||||
Array.from(new FormData(form)).reduce(
|
||||
(acc, [key, value]) => ({
|
||||
...acc,
|
||||
[key]: value
|
||||
}),
|
||||
{}
|
||||
);
|
||||
const formatDuration = ms => {
|
||||
if (ms < 0) ms = -ms;
|
||||
const time = {
|
||||
@ -994,9 +1002,9 @@
|
||||
const remove = (arr, func) =>
|
||||
Array.isArray(arr)
|
||||
? arr.filter(func).reduce((acc, val) => {
|
||||
arr.splice(arr.indexOf(val), 1);
|
||||
return acc.concat(val);
|
||||
}, [])
|
||||
arr.splice(arr.indexOf(val), 1);
|
||||
return acc.concat(val);
|
||||
}, [])
|
||||
: [];
|
||||
const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, '');
|
||||
const renameKeys = (keysMap, obj) =>
|
||||
@ -1050,6 +1058,8 @@
|
||||
);
|
||||
};
|
||||
const serializeCookie = (name, val) => `${encodeURIComponent(name)}=${encodeURIComponent(val)}`;
|
||||
const serializeForm = form =>
|
||||
Array.from(new FormData(form), field => field.map(encodeURIComponent).join('=')).join('&');
|
||||
const setStyle = (el, ruleName, val) => (el.style[ruleName] = val);
|
||||
const shallowClone = obj => Object.assign({}, obj);
|
||||
const shank = (arr, index = 0, delCount = 0, ...elements) =>
|
||||
@ -1459,6 +1469,7 @@
|
||||
exports.forEachRight = forEachRight;
|
||||
exports.forOwn = forOwn;
|
||||
exports.forOwnRight = forOwnRight;
|
||||
exports.formToObject = formToObject;
|
||||
exports.formatDuration = formatDuration;
|
||||
exports.fromCamelCase = fromCamelCase;
|
||||
exports.functionName = functionName;
|
||||
@ -1629,6 +1640,7 @@
|
||||
exports.scrollToTop = scrollToTop;
|
||||
exports.sdbm = sdbm;
|
||||
exports.serializeCookie = serializeCookie;
|
||||
exports.serializeForm = serializeForm;
|
||||
exports.setStyle = setStyle;
|
||||
exports.shallowClone = shallowClone;
|
||||
exports.shank = shank;
|
||||
|
||||
Reference in New Issue
Block a user