@uruhalushia/rule-converter-napi 0.3.0 → 0.3.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 +2 -2
- package/index.d.ts +3 -3
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -120,10 +120,10 @@ console.log(route.matched, route.rules)
|
|
|
120
120
|
```ts
|
|
121
121
|
interface AnyConvertOptions {
|
|
122
122
|
inputTarget?: 'mihomo' | 'general' | 'egern' | 'sing-box' | 'geoip' | 'geosite' | 'asn'
|
|
123
|
-
inputFormat?: 'yaml' | 'mrs' | 'text' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'mmdb' | 'sing-db' | 'metadb' | 'dat' | 'sing-geosite'
|
|
123
|
+
inputFormat?: 'yaml' | 'mrs' | 'text' | 'adguard' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'mmdb' | 'sing-db' | 'metadb' | 'dat' | 'sing-geosite'
|
|
124
124
|
inputBehavior?: 'auto' | 'domain' | 'ip' | 'classical'
|
|
125
125
|
outputTarget?: 'mihomo' | 'general' | 'egern' | 'sing-box' | 'geoip' | 'geosite' | 'asn'
|
|
126
|
-
outputFormat?: 'mrs' | 'text' | 'yaml' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'mmdb' | 'sing-db' | 'metadb' | 'dat' | 'sing-geosite'
|
|
126
|
+
outputFormat?: 'mrs' | 'text' | 'adguard' | 'yaml' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'mmdb' | 'sing-db' | 'metadb' | 'dat' | 'sing-geosite'
|
|
127
127
|
outputBehavior?: 'auto' | 'domain' | 'ip' | 'classical'
|
|
128
128
|
countries?: string[]
|
|
129
129
|
codes?: string[]
|
package/index.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ export interface AnyBufferResult {
|
|
|
9
9
|
|
|
10
10
|
export interface AnyConvertOptions {
|
|
11
11
|
inputTarget?: 'mihomo' | 'general' | 'egern' | 'sing-box' | 'geoip' | 'geosite' | 'asn'
|
|
12
|
-
inputFormat?: 'yaml' | 'mrs' | 'text' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'mmdb' | 'sing-db' | 'metadb' | 'dat' | 'sing-geosite'
|
|
12
|
+
inputFormat?: 'yaml' | 'mrs' | 'text' | 'adguard' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'mmdb' | 'sing-db' | 'metadb' | 'dat' | 'sing-geosite'
|
|
13
13
|
inputBehavior?: 'auto' | 'domain' | 'ip' | 'classical'
|
|
14
14
|
outputTarget?: 'mihomo' | 'general' | 'egern' | 'sing-box' | 'geoip' | 'geosite' | 'asn'
|
|
15
|
-
outputFormat?: 'mrs' | 'text' | 'yaml' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'mmdb' | 'sing-db' | 'metadb' | 'dat' | 'sing-geosite'
|
|
15
|
+
outputFormat?: 'mrs' | 'text' | 'adguard' | 'yaml' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'mmdb' | 'sing-db' | 'metadb' | 'dat' | 'sing-geosite'
|
|
16
16
|
outputBehavior?: 'auto' | 'domain' | 'ip' | 'classical'
|
|
17
17
|
countries?: Array<string>
|
|
18
18
|
codes?: Array<string>
|
|
@@ -88,7 +88,7 @@ export declare function matchFile(input: string, query: string, options?: MatchO
|
|
|
88
88
|
|
|
89
89
|
export interface MatchOptions {
|
|
90
90
|
inputTarget?: 'mihomo' | 'general' | 'egern' | 'sing-box' | 'geoip' | 'geosite' | 'asn'
|
|
91
|
-
inputFormat?: 'yaml' | 'mrs' | 'text' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'dat' | 'sing-geosite' | 'mmdb' | 'sing-db' | 'metadb'
|
|
91
|
+
inputFormat?: 'yaml' | 'mrs' | 'text' | 'adguard' | 'json' | 'srs' | 'domainset' | 'ruleset' | 'ipset' | 'dat' | 'sing-geosite' | 'mmdb' | 'sing-db' | 'metadb'
|
|
92
92
|
inputBehavior?: 'auto' | 'domain' | 'ip' | 'classical'
|
|
93
93
|
}
|
|
94
94
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uruhalushia/rule-converter-napi",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Node.js bindings for converting mihomo, sing-box, Egern, and generic rule sets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
"@napi-rs/cli": "^3"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@uruhalushia/rule-converter-napi-linux-x64-gnu": "0.3.
|
|
55
|
-
"@uruhalushia/rule-converter-napi-linux-arm64-gnu": "0.3.
|
|
56
|
-
"@uruhalushia/rule-converter-napi-linux-riscv64-gnu": "0.3.
|
|
57
|
-
"@uruhalushia/rule-converter-napi-linux-loong64-gnu": "0.3.
|
|
58
|
-
"@uruhalushia/rule-converter-napi-linux-x64-musl": "0.3.
|
|
59
|
-
"@uruhalushia/rule-converter-napi-linux-arm64-musl": "0.3.
|
|
60
|
-
"@uruhalushia/rule-converter-napi-linux-riscv64-musl": "0.3.
|
|
61
|
-
"@uruhalushia/rule-converter-napi-linux-loong64-musl": "0.3.
|
|
62
|
-
"@uruhalushia/rule-converter-napi-darwin-x64": "0.3.
|
|
63
|
-
"@uruhalushia/rule-converter-napi-darwin-arm64": "0.3.
|
|
64
|
-
"@uruhalushia/rule-converter-napi-win32-x64-msvc": "0.3.
|
|
65
|
-
"@uruhalushia/rule-converter-napi-win32-arm64-msvc": "0.3.
|
|
54
|
+
"@uruhalushia/rule-converter-napi-linux-x64-gnu": "0.3.1",
|
|
55
|
+
"@uruhalushia/rule-converter-napi-linux-arm64-gnu": "0.3.1",
|
|
56
|
+
"@uruhalushia/rule-converter-napi-linux-riscv64-gnu": "0.3.1",
|
|
57
|
+
"@uruhalushia/rule-converter-napi-linux-loong64-gnu": "0.3.1",
|
|
58
|
+
"@uruhalushia/rule-converter-napi-linux-x64-musl": "0.3.1",
|
|
59
|
+
"@uruhalushia/rule-converter-napi-linux-arm64-musl": "0.3.1",
|
|
60
|
+
"@uruhalushia/rule-converter-napi-linux-riscv64-musl": "0.3.1",
|
|
61
|
+
"@uruhalushia/rule-converter-napi-linux-loong64-musl": "0.3.1",
|
|
62
|
+
"@uruhalushia/rule-converter-napi-darwin-x64": "0.3.1",
|
|
63
|
+
"@uruhalushia/rule-converter-napi-darwin-arm64": "0.3.1",
|
|
64
|
+
"@uruhalushia/rule-converter-napi-win32-x64-msvc": "0.3.1",
|
|
65
|
+
"@uruhalushia/rule-converter-napi-win32-arm64-msvc": "0.3.1"
|
|
66
66
|
}
|
|
67
67
|
}
|