瀏覽代碼

Chore: prefer `foxts`

SukkaW 1 年之前
父節點
當前提交
33c71d6546
共有 3 個文件被更改,包括 7 次插入16 次删除
  1. 1 1
      Build/lib/rules/domainset.ts
  2. 1 2
      package.json
  3. 5 13
      pnpm-lock.yaml

+ 1 - 1
Build/lib/rules/domainset.ts

@@ -6,7 +6,7 @@ import type { SingboxSourceFormat } from '../singbox';
 import * as tldts from 'tldts-experimental';
 import { looseTldtsOpt } from '../../constants/loose-tldts-opt';
 import { fastStringCompare } from '../misc';
-import escapeStringRegexp from 'escape-string-regexp-node';
+import { escapeStringRegexp } from 'foxts/escape-string-regexp';
 
 export class DomainsetOutput extends RuleOutput<string[]> {
   protected type = 'domainset' as const;

+ 1 - 2
package.json

@@ -29,11 +29,10 @@
     "csv-parse": "^5.6.0",
     "devalue": "^5.1.1",
     "dns2": "^2.1.0",
-    "escape-string-regexp-node": "^1.0.2",
     "fast-cidr-tools": "^0.3.1",
     "fast-fifo": "^1.3.2",
     "fdir": "^6.4.2",
-    "foxts": "1.0.7",
+    "foxts": "^1.0.9",
     "hash-wasm": "^4.12.0",
     "json-stringify-pretty-compact": "^3.0.0",
     "make-fetch-happen": "^14.0.3",

+ 5 - 13
pnpm-lock.yaml

@@ -38,9 +38,6 @@ importers:
       dns2:
         specifier: ^2.1.0
         version: 2.1.0
-      escape-string-regexp-node:
-        specifier: ^1.0.2
-        version: 1.0.2
       fast-cidr-tools:
         specifier: ^0.3.1
         version: 0.3.1
@@ -51,8 +48,8 @@ importers:
         specifier: ^6.4.2
         version: 6.4.2(picomatch@4.0.2)
       foxts:
-        specifier: 1.0.7
-        version: 1.0.7
+        specifier: 1.0.9
+        version: 1.0.9
       hash-wasm:
         specifier: ^4.12.0
         version: 4.12.0
@@ -892,9 +889,6 @@ packages:
     resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
     engines: {node: '>=6'}
 
-  escape-string-regexp-node@1.0.2:
-    resolution: {integrity: sha512-tv6v/7vF8ob7vTNPBHJ6cdRGtb9t6wBZJt6ZWzJ5kDacXa3jplof+mmoXYLuEUtFXWw8xwR2wVbT2c20HvVubA==}
-
   escape-string-regexp@2.0.0:
     resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==}
     engines: {node: '>=8'}
@@ -1125,8 +1119,8 @@ packages:
     resolution: {integrity: sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==}
     engines: {node: '>= 6'}
 
-  foxts@1.0.7:
-    resolution: {integrity: sha512-JcLSIXujoAG6GoxKPgpwB6ME0cK23/txZZCPhANo9GdYaMkRwBZa9pN3ghf67juM46A1Trh2nxJLX01Oak+UvQ==}
+  foxts@1.0.9:
+    resolution: {integrity: sha512-ajZd/ZigH5jY2dluJfmkTB55Kv4dCY3bvHKMOoYMkb4a4qhykDL1Zr8Iz2ExiZeAFjY/OU7XRDbSeWIoB3PNLA==}
 
   fs-constants@1.0.0:
     resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}
@@ -2647,8 +2641,6 @@ snapshots:
 
   escalade@3.2.0: {}
 
-  escape-string-regexp-node@1.0.2: {}
-
   escape-string-regexp@2.0.0: {}
 
   escape-string-regexp@4.0.0: {}
@@ -2956,7 +2948,7 @@ snapshots:
       combined-stream: 1.0.8
       mime-types: 2.1.35
 
-  foxts@1.0.7: {}
+  foxts@1.0.9: {}
 
   fs-constants@1.0.0: {}