ut2 1.9.3 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ut2.js +3 -6
- package/dist/ut2.js.map +1 -1
- package/dist/ut2.min.js +1 -1
- package/dist/ut2.min.js.map +1 -1
- package/es/internals/helpers.js +1 -1
- package/es/isBuffer.js +2 -5
- package/lib/internals/helpers.js +1 -1
- package/lib/isBuffer.js +2 -5
- package/package.json +1 -1
- package/types/after.d.ts +1 -1
- package/types/ceil.d.ts +2 -2
- package/types/chunk.d.ts +1 -1
- package/types/clamp.d.ts +3 -3
- package/types/conforms.d.ts +1 -1
- package/types/conformsTo.d.ts +2 -2
- package/types/countBy.d.ts +1 -1
- package/types/curry.d.ts +1 -1
- package/types/debounce.d.ts +2 -2
- package/types/defaultTo.d.ts +2 -2
- package/types/delay.d.ts +2 -2
- package/types/difference.d.ts +3 -3
- package/types/eq.d.ts +2 -2
- package/types/escapeRegExp.d.ts +1 -1
- package/types/every.d.ts +4 -4
- package/types/filter.d.ts +2 -2
- package/types/find.d.ts +3 -3
- package/types/floor.d.ts +2 -2
- package/types/forEach.d.ts +3 -3
- package/types/forEachRight.d.ts +3 -3
- package/types/groupBy.d.ts +2 -2
- package/types/gt.d.ts +2 -2
- package/types/gte.d.ts +2 -2
- package/types/identity.d.ts +1 -1
- package/types/inRange.d.ts +3 -3
- package/types/internals/getTag.d.ts +1 -1
- package/types/internals/isEqualDeep.d.ts +3 -3
- package/types/internals/native.d.ts +1 -1
- package/types/intersection.d.ts +3 -3
- package/types/invert.d.ts +2 -1
- package/types/isArguments.d.ts +1 -1
- package/types/isArray.d.ts +1 -1
- package/types/isArrayBuffer.d.ts +1 -1
- package/types/isArrayLike.d.ts +1 -1
- package/types/isArrayLikeObject.d.ts +6 -2
- package/types/isBigInt.d.ts +1 -1
- package/types/isBlob.d.ts +2 -2
- package/types/isBoolean.d.ts +1 -1
- package/types/isBuffer.d.ts +3 -3
- package/types/isDataView.d.ts +1 -1
- package/types/isDate.d.ts +1 -1
- package/types/isElement.d.ts +1 -1
- package/types/isEmpty.d.ts +1 -1
- package/types/isEqual.d.ts +3 -3
- package/types/isError.d.ts +3 -3
- package/types/isFinite.d.ts +2 -2
- package/types/isFunction.d.ts +3 -3
- package/types/isInteger.d.ts +2 -2
- package/types/isLength.d.ts +1 -1
- package/types/isMap.d.ts +1 -1
- package/types/isMatch.d.ts +3 -3
- package/types/isNaN.d.ts +2 -2
- package/types/isNil.d.ts +2 -2
- package/types/isNull.d.ts +2 -2
- package/types/isNumber.d.ts +1 -1
- package/types/isObject.d.ts +1 -1
- package/types/isObjectLike.d.ts +1 -1
- package/types/isPlainObject.d.ts +1 -1
- package/types/isPromiseLike.d.ts +1 -1
- package/types/isRegExp.d.ts +1 -1
- package/types/isSafeInteger.d.ts +2 -2
- package/types/isSet.d.ts +1 -1
- package/types/isString.d.ts +1 -1
- package/types/isSymbol.d.ts +1 -1
- package/types/isTypedArray.d.ts +1 -1
- package/types/isUndefined.d.ts +2 -2
- package/types/isWeakMap.d.ts +1 -1
- package/types/isWeakSet.d.ts +1 -1
- package/types/keyBy.d.ts +2 -2
- package/types/keys.d.ts +1 -1
- package/types/keysIn.d.ts +1 -1
- package/types/lt.d.ts +2 -2
- package/types/lte.d.ts +2 -2
- package/types/map.d.ts +2 -2
- package/types/max.d.ts +1 -1
- package/types/merge.d.ts +4 -4
- package/types/min.d.ts +1 -1
- package/types/noop.d.ts +1 -1
- package/types/nth.d.ts +1 -1
- package/types/nthArg.d.ts +1 -1
- package/types/omitBy.d.ts +3 -2
- package/types/orderBy.d.ts +1 -1
- package/types/partial.d.ts +1 -1
- package/types/partition.d.ts +5 -3
- package/types/pickBy.d.ts +3 -2
- package/types/random.d.ts +2 -2
- package/types/randomInt.d.ts +3 -3
- package/types/range.d.ts +3 -3
- package/types/reduce.d.ts +2 -2
- package/types/reduceRight.d.ts +2 -2
- package/types/round.d.ts +2 -2
- package/types/sleep.d.ts +1 -1
- package/types/some.d.ts +4 -4
- package/types/throttle.d.ts +2 -2
- package/types/times.d.ts +2 -2
- package/types/toInteger.d.ts +1 -1
- package/types/toString.d.ts +1 -1
- package/types/union.d.ts +2 -2
- package/types/uniq.d.ts +2 -2
- package/types/uniqueId.d.ts +2 -2
- package/types/words.d.ts +1 -1
- package/types/xor.d.ts +3 -3
package/dist/ut2.js
CHANGED
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
return value == null || value !== value ? defaultValue : value;
|
|
600
600
|
};
|
|
601
601
|
|
|
602
|
-
var VERSION = "1.9.
|
|
602
|
+
var VERSION = "1.9.4";
|
|
603
603
|
var supportedArgumentsType = getTag((function () { return arguments; })()) === argumentsTag;
|
|
604
604
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
605
605
|
function toSource(func) {
|
|
@@ -862,11 +862,8 @@
|
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
function isBuffer(value) {
|
|
865
|
-
if (typeof Buffer === 'function') {
|
|
866
|
-
|
|
867
|
-
if (typeof isBuffer_1 === 'function') {
|
|
868
|
-
return isBuffer_1(value);
|
|
869
|
-
}
|
|
865
|
+
if (typeof Buffer === 'function' && typeof Buffer.isBuffer === 'function') {
|
|
866
|
+
return Buffer.isBuffer(value);
|
|
870
867
|
}
|
|
871
868
|
return false;
|
|
872
869
|
}
|