@zjlab-fe/util 0.5.4 → 0.5.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.
- package/README.md +10 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,16 @@ export declare function uploadToOSS(ossUrl: string, content: string | Record<str
|
|
|
22
22
|
export declare function isOnline(): boolean;
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
### 检查当前域名是否是公开网络域名
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
/**
|
|
29
|
+
* 检查当前域名是否是公开网络域名,返回true表示是公开网络域名,返回false表示是非公开网络域名
|
|
30
|
+
* @returns {boolean}
|
|
31
|
+
*/
|
|
32
|
+
export declare function isPublicNetwork(): boolean;
|
|
33
|
+
```
|
|
34
|
+
|
|
25
35
|
### 格式化展示数字
|
|
26
36
|
|
|
27
37
|
```javascript
|