hifun-tools 1.4.8 → 1.4.9

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.
Files changed (2) hide show
  1. package/dist/init/utils.js +3 -1
  2. package/package.json +34 -34
@@ -120,7 +120,9 @@ export function filterSmartLines(tenantList, lineList, groupType, tenant) {
120
120
  if (groupType)
121
121
  filtered = filtered.filter((item) => item.lineGroup === groupType);
122
122
  const lines = filtered.map((item) => toStandardUrl(item.line));
123
- return lineList.map(toStandardUrl).filter((v) => isDomainMatch(lines, v));
123
+ return lineList
124
+ .map(toStandardUrl)
125
+ .filter((v) => isDomainMatch(lines.map(toStandardUrl), v));
124
126
  }
125
127
  /** 并发测速获取最佳 URL(限制超时和并发) */
126
128
  export async function getOptimalDecodedString(arr, options) {
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
- {
2
- "name": "hifun-tools",
3
- "version": "1.4.8",
4
- "main": "dist/index.js",
5
- "module": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "scripts": {
11
- "build": "tsc",
12
- "pub": "npm run build && npm version patch && npm publish --access public",
13
- "test": "jest",
14
- "test:watch": "jest --watch"
15
- },
16
- "files": [
17
- "dist"
18
- ],
19
- "devDependencies": {
20
- "@babel/core": "^7.28.5",
21
- "@babel/preset-typescript": "^7.28.5",
22
- "@types/jest": "^30.0.0",
23
- "jest": "^30.2.0",
24
- "jest-environment-jsdom": "^30.2.0",
25
- "jscodeshift": "^17.3.0",
26
- "prettier": "^3.6.2",
27
- "ts-jest": "^29.4.5",
28
- "typescript": "^5.6.3"
29
- },
30
- "dependencies": {
31
- "crypto-js": "^4.2.0",
32
- "md5": "^2.3.0"
33
- }
34
- }
1
+ {
2
+ "name": "hifun-tools",
3
+ "version": "1.4.9",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "pub": "npm run build && npm version patch && npm publish --access public",
13
+ "test": "jest",
14
+ "test:watch": "jest --watch"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "devDependencies": {
20
+ "@babel/core": "^7.28.5",
21
+ "@babel/preset-typescript": "^7.28.5",
22
+ "@types/jest": "^30.0.0",
23
+ "jest": "^30.2.0",
24
+ "jest-environment-jsdom": "^30.2.0",
25
+ "jscodeshift": "^17.3.0",
26
+ "prettier": "^3.6.2",
27
+ "ts-jest": "^29.4.5",
28
+ "typescript": "^5.6.3"
29
+ },
30
+ "dependencies": {
31
+ "crypto-js": "^4.2.0",
32
+ "md5": "^2.3.0"
33
+ }
34
+ }