ut2 1.20.0 → 1.20.1

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
@@ -607,7 +607,7 @@
607
607
  return value == null || value !== value ? defaultValue : value;
608
608
  };
609
609
 
610
- var VERSION = "1.20.0";
610
+ var VERSION = "1.20.1";
611
611
  var isBrowser = typeof window !== stringUndefined && isObjectLike(window) && typeof document !== stringUndefined && isObjectLike(document) && window.document === document;
612
612
  var supportedArgumentsType = getTag((function () { return arguments; })()) === argumentsTag;
613
613
  var FUNC_ERROR_TEXT = 'Expected a function';
@@ -616,12 +616,12 @@
616
616
  try {
617
617
  return functionProtoToString.call(func);
618
618
  }
619
- catch (e) {
619
+ catch (err) {
620
620
  }
621
621
  try {
622
622
  return func + '';
623
623
  }
624
- catch (e) {
624
+ catch (err) {
625
625
  }
626
626
  }
627
627
  return '';
@@ -748,9 +748,7 @@
748
748
  if (timer !== nativeUndefined) {
749
749
  clearTimeout(timer);
750
750
  timer = nativeUndefined;
751
- if (lastArgs) {
752
- return invokeFunc(Date.now());
753
- }
751
+ return invokeFunc(Date.now());
754
752
  }
755
753
  return result;
756
754
  }
@@ -1004,7 +1002,7 @@
1004
1002
  return types;
1005
1003
  }
1006
1004
  }
1007
- catch (e) {
1005
+ catch (err) {
1008
1006
  }
1009
1007
  })();
1010
1008
  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer;
@@ -1925,7 +1923,7 @@
1925
1923
  return isNil(parent) ? true : delete parent[nth(paths, -1)];
1926
1924
  }
1927
1925
 
1928
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
1926
+ var reAsciiWord = /[^\x20-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
1929
1927
  function words(string, pattern) {
1930
1928
  if (pattern === void 0) { pattern = reAsciiWord; }
1931
1929
  return string.match(pattern) || [];