util-helpers 4.21.5 → 4.21.6

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.
@@ -477,6 +477,7 @@
477
477
 
478
478
  var URLExisted = typeof URL !== 'undefined';
479
479
 
480
+ var nativeUndefined = void 0;
480
481
  var objectKeys = Object.keys;
481
482
  var objectValues = Object.values;
482
483
  var createObjectURL = URLExisted ? URL.createObjectURL : constant('');
@@ -510,7 +511,7 @@
510
511
  var extendRegExp = loose ? looseChineseExtendRegExp : chineseExtendRegExp;
511
512
  var hasExtend = useExtend && supportRegExpUnicode;
512
513
  var resultRegExp = hasExtend ? extendRegExp : basicRegExp;
513
- var flag = hasExtend ? 'u' : undefined;
514
+ var flag = hasExtend ? 'u' : nativeUndefined;
514
515
  var reg = new RegExp(resultRegExp, flag);
515
516
  return reg.test(valueStr);
516
517
  }
@@ -1713,7 +1714,7 @@
1713
1714
  ctx.fillRect(0, 0, canvas.width, canvas.height);
1714
1715
  }
1715
1716
  var internalOffset = [0, 0];
1716
- if (rotate !== undefined) {
1717
+ if (rotate !== nativeUndefined) {
1717
1718
  ctx.translate(image.width / 2, image.height / 2);
1718
1719
  internalOffset = [-image.width / 2, -image.height / 2];
1719
1720
  ctx.rotate((rotate * Math.PI) / 180);
@@ -1793,7 +1794,7 @@
1793
1794
  case 5:
1794
1795
  res = _a.sent();
1795
1796
  currentFileName = fileName || data.split('?')[0].split('#')[0].split('/').pop();
1796
- return [2, download(res, { fileName: currentFileName, type: type || (isBlob(res) ? res.type : undefined) })];
1797
+ return [2, download(res, { fileName: currentFileName, type: type || (isBlob(res) ? res.type : nativeUndefined) })];
1797
1798
  case 6:
1798
1799
  payload = new Blob([data], { type: type || 'text/plain' });
1799
1800
  _a.label = 7;
@@ -2257,9 +2258,9 @@
2257
2258
  return internalFindTreeSelect(tree, predicate, childrenField);
2258
2259
  }
2259
2260
 
2260
- var VERSION = "4.21.5";
2261
+ var VERSION = "4.21.6";
2261
2262
 
2262
- var version = "4.21.5";
2263
+ var version = "4.21.6";
2263
2264
 
2264
2265
  exports.VERSION = VERSION;
2265
2266
  exports.ajax = ajax;