ut2 1.4.9 → 1.4.10

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/README.md CHANGED
@@ -18,18 +18,18 @@
18
18
 
19
19
  安装依赖
20
20
 
21
- #### npm
22
-
23
21
  ```shell
24
22
  npm install ut2
25
23
  ```
26
24
 
27
- #### yarn
28
-
29
25
  ```shell
30
26
  yarn add ut2
31
27
  ```
32
28
 
29
+ ```shell
30
+ pnpm add ut2
31
+ ```
32
+
33
33
  ### 浏览器原生开发环境
34
34
 
35
35
  如果你的项目使用的是原生方式开发,可以在浏览器中使用 `script` 标签直接引入文件,并使用全局变量 `ut2` 。
package/dist/ut2.js CHANGED
@@ -475,7 +475,7 @@
475
475
  return value == null || value !== value ? defaultValue : value;
476
476
  }
477
477
 
478
- var VERSION = "1.4.9";
478
+ var VERSION = "1.4.10";
479
479
  var supportedArgumentsType = objectToString.call((function () { return arguments; })()) === argumentsTag;
480
480
  var FUNC_ERROR_TEXT = 'Expected a function';
481
481
  function toSource(func) {
@@ -670,9 +670,10 @@
670
670
  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
671
671
  }
672
672
 
673
+ var freeGlobalThis = typeof globalThis === 'object' && globalThis && globalThis.Object === Object && globalThis;
673
674
  var freeGlobal = typeof global === 'object' && global && global.Object === Object && global;
674
675
  var freeSelf = typeof self === 'object' && self && self.Object === Object && self;
675
- var root = freeGlobal || freeSelf || Function('return this')() || {};
676
+ var root = freeGlobalThis || freeGlobal || freeSelf || Function('return this')() || {};
676
677
 
677
678
  var freeExports = typeof exports === 'object' && exports && !exports.nodeType && exports;
678
679
  var freeModule = freeExports && typeof module === 'object' && module && !module.nodeType && module;