ut2 1.10.0 → 1.11.0

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 CHANGED
@@ -49,6 +49,7 @@
49
49
  var functionTags = ['Function', 'AsyncFunction', 'GeneratorFunction', 'Proxy'].map(function (item) { return '[object ' + item + ']'; });
50
50
  var weakSetTag = '[object WeakSet]';
51
51
  var blobTag = '[object Blob]';
52
+ var fileTag = '[object File]';
52
53
  var domExceptionTag = '[object DOMException]';
53
54
  var objectTag = '[object Object]';
54
55
  var dataViewTag = '[object DataView]';
@@ -605,7 +606,7 @@
605
606
  return value == null || value !== value ? defaultValue : value;
606
607
  };
607
608
 
608
- var VERSION = "1.10.0";
609
+ var VERSION = "1.11.0";
609
610
  var isBrowser = typeof window !== stringUndefined && isObjectLike(window) && typeof document !== stringUndefined && isObjectLike(document) && window.document === document;
610
611
  var supportedArgumentsType = getTag((function () { return arguments; })()) === argumentsTag;
611
612
  var FUNC_ERROR_TEXT = 'Expected a function';
@@ -1155,6 +1156,14 @@
1155
1156
  return tag === errorTag || tag === domExceptionTag;
1156
1157
  }
1157
1158
 
1159
+ var fileExisted = typeof File !== stringUndefined;
1160
+ function isFile(value) {
1161
+ if (fileExisted && value instanceof File) {
1162
+ return true;
1163
+ }
1164
+ return getTag(value) === fileTag;
1165
+ }
1166
+
1158
1167
  var freeGlobalThis = globalThisExisted && globalThis.Object === Object && globalThis;
1159
1168
  var freeGlobal = globalExisted && global.Object === Object && global;
1160
1169
  var freeSelf = selfExisted && self.Object === Object && self;
@@ -1498,6 +1507,7 @@
1498
1507
  if (getKeys === void 0) { getKeys = allKeys; }
1499
1508
  return baseMerge(object, source, getKeys, customizer);
1500
1509
  }
1510
+ merge.NOT_MERGE_ARRAYS = function (objValue, srcValue) { return (isArray(srcValue) ? srcValue : undefined); };
1501
1511
 
1502
1512
  function castArray(value) {
1503
1513
  if (!arguments.length) {
@@ -1828,6 +1838,7 @@
1828
1838
  exports.isEmpty = isEmpty;
1829
1839
  exports.isEqual = isEqual;
1830
1840
  exports.isError = isError;
1841
+ exports.isFile = isFile;
1831
1842
  exports.isFinite = isFinite;
1832
1843
  exports.isFunction = isFunction;
1833
1844
  exports.isInteger = isInteger;