@polyv/utils 2.3.0-beta.1 → 2.5.0-beta.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/README.md +4 -4
- package/{dist/es → cjs}/event.d.ts +1 -1
- package/{dist/es → cjs}/image.d.ts +8 -1
- package/cjs/image.js +1 -0
- package/{dist/es → cjs}/validate.d.ts +7 -0
- package/cjs/validate.js +1 -0
- package/{dist/cjs → es}/event.d.ts +1 -1
- package/{dist/cjs → es}/image.d.ts +8 -1
- package/{dist/es → es}/image.js +1 -1
- package/{dist/cjs → es}/validate.d.ts +7 -0
- package/es/validate.js +1 -0
- package/package.json +4 -43
- package/dist/cjs/image.js +0 -1
- package/dist/cjs/validate.js +0 -1
- package/dist/es/validate.js +0 -1
- /package/{dist/cjs → cjs}/boolean.d.ts +0 -0
- /package/{dist/cjs → cjs}/boolean.js +0 -0
- /package/{dist/cjs → cjs}/countdown.d.ts +0 -0
- /package/{dist/cjs → cjs}/countdown.js +0 -0
- /package/{dist/cjs → cjs}/date.d.ts +0 -0
- /package/{dist/cjs → cjs}/date.js +0 -0
- /package/{dist/cjs → cjs}/event.js +0 -0
- /package/{dist/cjs → cjs}/json.d.ts +0 -0
- /package/{dist/cjs → cjs}/json.js +0 -0
- /package/{dist/cjs → cjs}/net.d.ts +0 -0
- /package/{dist/cjs → cjs}/net.js +0 -0
- /package/{dist/cjs → cjs}/string.d.ts +0 -0
- /package/{dist/cjs → cjs}/string.js +0 -0
- /package/{dist/es → es}/boolean.d.ts +0 -0
- /package/{dist/es → es}/boolean.js +0 -0
- /package/{dist/es → es}/countdown.d.ts +0 -0
- /package/{dist/es → es}/countdown.js +0 -0
- /package/{dist/es → es}/date.d.ts +0 -0
- /package/{dist/es → es}/date.js +0 -0
- /package/{dist/es → es}/event.js +0 -0
- /package/{dist/es → es}/json.d.ts +0 -0
- /package/{dist/es → es}/json.js +0 -0
- /package/{dist/es → es}/net.d.ts +0 -0
- /package/{dist/es → es}/net.js +0 -0
- /package/{dist/es → es}/string.d.ts +0 -0
- /package/{dist/es → es}/string.js +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
npm install @polyv/utils@next
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
NPM 包同时提供了 ES 模块以及 CommonJS 模块,分别位于 `
|
|
11
|
+
NPM 包同时提供了 ES 模块以及 CommonJS 模块,分别位于 `es` 和 `cjs` 两个文件夹。它们使用上的区别和优缺点在于:
|
|
12
12
|
|
|
13
13
|
| 模块类型 | Tree shaking | Babel 编译 |
|
|
14
14
|
| --- | --- | --- |
|
|
@@ -30,7 +30,7 @@ module.exports = {
|
|
|
30
30
|
resolve: {
|
|
31
31
|
alias: {
|
|
32
32
|
// 配置别名缩短引用路径
|
|
33
|
-
'@utils': path.resolve(__dirname, './node_modules/@polyv/utils/
|
|
33
|
+
'@utils': path.resolve(__dirname, './node_modules/@polyv/utils/es')
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
@@ -67,7 +67,7 @@ module.exports = {
|
|
|
67
67
|
extend(config, ctx) {
|
|
68
68
|
// 配置别名缩短引用路径
|
|
69
69
|
config.resolve.alias['@utils'] = path.resolve(
|
|
70
|
-
__dirname, './node_modules/@polyv/utils/
|
|
70
|
+
__dirname, './node_modules/@polyv/utils/es'
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
@@ -105,4 +105,4 @@ import { Countdown } from '@utils/countdown';
|
|
|
105
105
|
- string 模块的 `cutStr`、`strLen` 两个方法的选项,不再支持 `mode` 属性。
|
|
106
106
|
- string 模块新增 `uuidV4` 方法。
|
|
107
107
|
- validate 模块的 `isPhoneNO` 方法改名为 `isChsPhoneNO`。
|
|
108
|
-
- CommonJS 模块的路径是
|
|
108
|
+
- CommonJS 模块的路径是 `cjs`(原来是 dist),ES 模块的路径是 `es`(原来是 src)。
|
|
@@ -34,7 +34,7 @@ export interface IOSSCompressOptions {
|
|
|
34
34
|
allowAVIF?: boolean;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* 如果指定图片 URL 的域名是 OSS
|
|
37
|
+
* 如果指定图片 URL 的域名是 OSS 域名,且没有任何 OSS 处理参数,则根据压缩选项追加 OSS 图片压缩处理参数。
|
|
38
38
|
* @param url 指定图片 URL。
|
|
39
39
|
* @param options 压缩选项。
|
|
40
40
|
* @returns 处理后的图片 URL。
|
|
@@ -47,3 +47,10 @@ export interface IOSSCompressOptions {
|
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
49
|
export declare function ossCompress(url: string, options: IOSSCompressOptions): string;
|
|
50
|
+
/**
|
|
51
|
+
* 对指定 HTML 代码中 img 标签的图片地址做 OSS 压缩处理。
|
|
52
|
+
* @param html 指定 HTML 代码。
|
|
53
|
+
* @param options 压缩选项。
|
|
54
|
+
* @returns 处理后的 HTML 代码。
|
|
55
|
+
*/
|
|
56
|
+
export declare function compressHTMLImgs(html: string, options: IOSSCompressOptions): string;
|
package/cjs/image.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function supportWebP(){var A=document.createElement("canvas");if(A.getContext&&A.getContext("2d")){var e="image/webp";return 0===A.toDataURL(e).indexOf("data:"+e)}return!1}function supportAVIF(){return new Promise((function(A){var e=new Image;e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",e.onerror=function(){A(!1)},e.onload=function(){A(!0)},setTimeout((function(){A(!1)}),1e3)}))}function ossCompress(A,e){var s=document.createElement("a");s.href=A;var t=s.search;if("liveimages.videocc.net"!==s.hostname.toLowerCase()||/(?:\?|&)x-oss-process(?:=|&|$)/.test(t))return A;var o="";return null==e.width&&null==e.height||(o+="/resize",e.width&&(o+=",w_"+e.width),e.height&&(o+=",h_"+e.height),o+=",limit_1"),e.allowAVIF?o+="/format,avif":e.allowWebP&&(o+="/format,webp"),o&&(o="x-oss-process=image"+o,A+=(-1===A.indexOf("?")?"?":"&")+o),A}function compressHTMLImgs(A,e){return A?A.replace(/(<img.*?\ssrc=)(["']?)(.+?)\2(.*?>)/gi,(function(A,s,t,o,r){return s+'"'+ossCompress(o,e)+'" data-src="'+o+'"'+r})):""}Object.defineProperty(exports,"__esModule",{value:!0}),exports.compressHTMLImgs=exports.ossCompress=exports.supportAVIF=exports.supportWebP=void 0,exports.supportWebP=supportWebP,exports.supportAVIF=supportAVIF,exports.ossCompress=ossCompress,exports.compressHTMLImgs=compressHTMLImgs;
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
export declare function isChsPhoneNO(str: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 检查目标字符串是否手机号。
|
|
18
|
+
* @param str 目标字符串。
|
|
19
|
+
* @param areaCode 区号,例如中国为 +86。
|
|
20
|
+
* @returns 目标字符串是否手机号。
|
|
21
|
+
*/
|
|
22
|
+
export declare function isPhoneNO(str: string, areaCode?: string): boolean;
|
|
16
23
|
/**
|
|
17
24
|
* 检查目标字符串是否电子邮箱地址。
|
|
18
25
|
* @param str 目标字符串。
|
package/cjs/validate.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function isChsPhoneNO(e){return/^1[3-9]\d{9}$/.test(e)}function isPhoneNO(e,s){return void 0===s&&(s="+86"),"+86"===s?isChsPhoneNO(e):/^\d{5,20}$/.test(e)}function isEmail(e){if(/^[\w-]+(?:\.[\w-]+)*@[\w-]+(?:\.[\w-]+)*\.[a-zA-Z]{2,}$/.test(e)){for(var s=e.replace("@",".").split("."),t=s.length-1;t>=0;t--)if(/^[-_]/.test(s[t])||/[_-]$/.test(s[t]))return!1;return!0}return!1}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isEmail=exports.isPhoneNO=exports.isChsPhoneNO=void 0,exports.isChsPhoneNO=isChsPhoneNO,exports.isPhoneNO=isPhoneNO,exports.isEmail=isEmail;
|
|
@@ -34,7 +34,7 @@ export interface IOSSCompressOptions {
|
|
|
34
34
|
allowAVIF?: boolean;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* 如果指定图片 URL 的域名是 OSS
|
|
37
|
+
* 如果指定图片 URL 的域名是 OSS 域名,且没有任何 OSS 处理参数,则根据压缩选项追加 OSS 图片压缩处理参数。
|
|
38
38
|
* @param url 指定图片 URL。
|
|
39
39
|
* @param options 压缩选项。
|
|
40
40
|
* @returns 处理后的图片 URL。
|
|
@@ -47,3 +47,10 @@ export interface IOSSCompressOptions {
|
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
49
|
export declare function ossCompress(url: string, options: IOSSCompressOptions): string;
|
|
50
|
+
/**
|
|
51
|
+
* 对指定 HTML 代码中 img 标签的图片地址做 OSS 压缩处理。
|
|
52
|
+
* @param html 指定 HTML 代码。
|
|
53
|
+
* @param options 压缩选项。
|
|
54
|
+
* @returns 处理后的 HTML 代码。
|
|
55
|
+
*/
|
|
56
|
+
export declare function compressHTMLImgs(html: string, options: IOSSCompressOptions): string;
|
package/{dist/es → es}/image.js
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function supportWebP(){const A=document.createElement("canvas");if(A.getContext&&A.getContext("2d")){const e="image/webp";return 0===A.toDataURL(e).indexOf("data:"+e)}return!1}export function supportAVIF(){return new Promise((A=>{const e=new Image;e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",e.onerror=()=>{A(!1)},e.onload=()=>{A(!0)},setTimeout((()=>{A(!1)}),1e3)}))}export function ossCompress(A,e){const t=document.createElement("a");t.href=A;const o=t.search;if("liveimages.videocc.net"!==t.hostname.toLowerCase()||/(?:\?|&)x-oss-process(?:=|&|$)/.test(o))return A;let
|
|
1
|
+
export function supportWebP(){const A=document.createElement("canvas");if(A.getContext&&A.getContext("2d")){const e="image/webp";return 0===A.toDataURL(e).indexOf("data:"+e)}return!1}export function supportAVIF(){return new Promise((A=>{const e=new Image;e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",e.onerror=()=>{A(!1)},e.onload=()=>{A(!0)},setTimeout((()=>{A(!1)}),1e3)}))}export function ossCompress(A,e){const t=document.createElement("a");t.href=A;const o=t.search;if("liveimages.videocc.net"!==t.hostname.toLowerCase()||/(?:\?|&)x-oss-process(?:=|&|$)/.test(o))return A;let s="";return null==e.width&&null==e.height||(s+="/resize",e.width&&(s+=",w_"+e.width),e.height&&(s+=",h_"+e.height),s+=",limit_1"),e.allowAVIF?s+="/format,avif":e.allowWebP&&(s+="/format,webp"),s&&(s="x-oss-process=image"+s,A+=(-1===A.indexOf("?")?"?":"&")+s),A}export function compressHTMLImgs(A,e){return A?A.replace(/(<img.*?\ssrc=)(["']?)(.+?)\2(.*?>)/gi,((A,t,o,s,r)=>t+'"'+ossCompress(s,e)+'" data-src="'+s+'"'+r)):""}
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
export declare function isChsPhoneNO(str: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 检查目标字符串是否手机号。
|
|
18
|
+
* @param str 目标字符串。
|
|
19
|
+
* @param areaCode 区号,例如中国为 +86。
|
|
20
|
+
* @returns 目标字符串是否手机号。
|
|
21
|
+
*/
|
|
22
|
+
export declare function isPhoneNO(str: string, areaCode?: string): boolean;
|
|
16
23
|
/**
|
|
17
24
|
* 检查目标字符串是否电子邮箱地址。
|
|
18
25
|
* @param str 目标字符串。
|
package/es/validate.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function isChsPhoneNO(t){return/^1[3-9]\d{9}$/.test(t)}export function isPhoneNO(t,e="+86"){return"+86"===e?isChsPhoneNO(t):/^\d{5,20}$/.test(t)}export function isEmail(t){if(/^[\w-]+(?:\.[\w-]+)*@[\w-]+(?:\.[\w-]+)*\.[a-zA-Z]{2,}$/.test(t)){const e=t.replace("@",".").split(".");for(let t=e.length-1;t>=0;t--)if(/^[-_]/.test(e[t])||/[_-]$/.test(e[t]))return!1;return!0}return!1}
|
package/package.json
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polyv/utils",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-beta.1",
|
|
4
4
|
"description": "Utility functions of Polyv frontend development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"polyv",
|
|
7
7
|
"utility",
|
|
8
8
|
"保利威"
|
|
9
9
|
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"dev": "cross-env NODE_ENV=development webpack-dev-server --config build/webpack.dev.config.js",
|
|
12
|
-
"gen-doc": "rimraf ./docs/2.x && typedoc --options ./typedoc.js --tsconfig ./src/tsconfig.json",
|
|
13
|
-
"lint": "eslint ./src/*.ts",
|
|
14
|
-
"compress": "node ./build/compress-js",
|
|
15
|
-
"build": "npm run lint && rimraf ./dist/** && tsc -p ./src/tsconfig.json && tsc -p ./src/tsconfig.es5.json && npm run compress"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist/**/*"
|
|
19
|
-
],
|
|
20
10
|
"author": "Polyv frontend team",
|
|
21
11
|
"license": "MIT",
|
|
22
12
|
"repository": {
|
|
@@ -30,35 +20,6 @@
|
|
|
30
20
|
"engines": {
|
|
31
21
|
"node": ">=10.0.0"
|
|
32
22
|
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"@babel/plugin-proposal-json-strings": "^7.16.0",
|
|
37
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
38
|
-
"@babel/plugin-syntax-import-meta": "^7.10.4",
|
|
39
|
-
"@babel/preset-env": "^7.16.4",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
41
|
-
"@typescript-eslint/parser": "^5.5.0",
|
|
42
|
-
"babel-eslint": "^10.1.0",
|
|
43
|
-
"babel-loader": "^8.2.3",
|
|
44
|
-
"copy-webpack-plugin": "^6.4.1",
|
|
45
|
-
"core-js": "^3.19.2",
|
|
46
|
-
"cross-env": "^7.0.3",
|
|
47
|
-
"eslint": "^8.3.0",
|
|
48
|
-
"eslint-plugin-sonarjs": "^0.11.0",
|
|
49
|
-
"eslint-webpack-plugin": "^3.1.1",
|
|
50
|
-
"glob": "^7.2.0",
|
|
51
|
-
"html-webpack-plugin": "^4.5.2",
|
|
52
|
-
"regenerator-runtime": "^0.13.9",
|
|
53
|
-
"rimraf": "^3.0.2",
|
|
54
|
-
"terser": "^5.10.0",
|
|
55
|
-
"ts-loader": "^8.3.0",
|
|
56
|
-
"typedoc": "^0.22.10",
|
|
57
|
-
"typescript": "^4.5.2",
|
|
58
|
-
"webpack": "^4.46.0",
|
|
59
|
-
"webpack-cli": "^3.3.12",
|
|
60
|
-
"webpack-dev-server": "^3.11.3",
|
|
61
|
-
"webpack-merge": "^5.8.0"
|
|
62
|
-
},
|
|
63
|
-
"dependencies": {}
|
|
64
|
-
}
|
|
23
|
+
"dependencies": {},
|
|
24
|
+
"miniprogram": "./"
|
|
25
|
+
}
|
package/dist/cjs/image.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function supportWebP(){var A=document.createElement("canvas");if(A.getContext&&A.getContext("2d")){var e="image/webp";return 0===A.toDataURL(e).indexOf("data:"+e)}return!1}function supportAVIF(){return new Promise((function(A){var e=new Image;e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",e.onerror=function(){A(!1)},e.onload=function(){A(!0)},setTimeout((function(){A(!1)}),1e3)}))}function ossCompress(A,e){var t=document.createElement("a");t.href=A;var o=t.search;if("liveimages.videocc.net"!==t.hostname.toLowerCase()||/(?:\?|&)x-oss-process(?:=|&|$)/.test(o))return A;var s="";return null==e.width&&null==e.height||(s+="/resize,mfit",e.width&&(s+=",w_"+e.width),e.height&&(s+=",h_"+e.height),s+=",limit_1"),e.allowAVIF?s+="/format,avif":e.allowWebP&&(s+="/format,webp"),s&&(s="x-oss-process=image"+s,A+=(-1===A.indexOf("?")?"?":"&")+s),A}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ossCompress=exports.supportAVIF=exports.supportWebP=void 0,exports.supportWebP=supportWebP,exports.supportAVIF=supportAVIF,exports.ossCompress=ossCompress;
|
package/dist/cjs/validate.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function isChsPhoneNO(e){return/^1[3-9]\d{9}$/.test(e)}function isEmail(e){if(/^[\w-]+(?:\.[\w-]+)*@[\w-]+(?:\.[\w-]+)*\.[a-zA-Z]{2,}$/.test(e)){for(var s=e.replace("@",".").split("."),t=s.length-1;t>=0;t--)if(/^[-_]/.test(s[t])||/[_-]$/.test(s[t]))return!1;return!0}return!1}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isEmail=exports.isChsPhoneNO=void 0,exports.isChsPhoneNO=isChsPhoneNO,exports.isEmail=isEmail;
|
package/dist/es/validate.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function isChsPhoneNO(t){return/^1[3-9]\d{9}$/.test(t)}export function isEmail(t){if(/^[\w-]+(?:\.[\w-]+)*@[\w-]+(?:\.[\w-]+)*\.[a-zA-Z]{2,}$/.test(t)){const e=t.replace("@",".").split(".");for(let t=e.length-1;t>=0;t--)if(/^[-_]/.test(e[t])||/[_-]$/.test(e[t]))return!1;return!0}return!1}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dist/cjs → cjs}/net.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dist/es → es}/date.js
RENAMED
|
File without changes
|
/package/{dist/es → es}/event.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/{dist/es → es}/json.js
RENAMED
|
File without changes
|
/package/{dist/es → es}/net.d.ts
RENAMED
|
File without changes
|
/package/{dist/es → es}/net.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|