Skip to content

Commit

Permalink
Replace more utilities w/ foxts
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Dec 12, 2024
1 parent a13a2bb commit 80ac403
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Build/lib/rules/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HostnameSmolTrie } from '../trie';
import stringify from 'json-stringify-pretty-compact';
import path from 'node:path';
import { withBannerArray } from '../misc';
import { invariant } from 'foxact/invariant';
import { invariant } from 'foxts/guard';
import picocolors from 'picocolors';
import fs from 'node:fs';
import { writeFile } from '../misc';
Expand Down
2 changes: 1 addition & 1 deletion Build/lib/rules/domainset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { invariant } from 'foxact/invariant';
import { invariant } from 'foxts/guard';
import createKeywordFilter from '../aho-corasick';
import { RuleOutput } from './base';
import type { SingboxSourceFormat } from '../singbox';
Expand Down
2 changes: 1 addition & 1 deletion Build/lib/trie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import { fastStringCompare } from './misc';
import util from 'node:util';
import { noop } from 'foxact/noop';
import { noop } from 'foxts/noop';
import { fastStringArrayJoin } from 'foxts/fast-string-array-join';
import FIFO from './fifo';

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"escape-string-regexp-node": "^1.0.2",
"fast-cidr-tools": "^0.3.1",
"fdir": "^6.4.2",
"foxact": "^0.2.42",
"foxts": "1.0.4",
"foxts": "1.0.6",
"hash-wasm": "^4.12.0",
"json-stringify-pretty-compact": "^3.0.0",
"make-fetch-happen": "^14.0.3",
Expand Down
36 changes: 5 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 80ac403

Please sign in to comment.