surgio 3.11.2 → 3.12.0
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/bin/dev +0 -0
- package/package.json +69 -75
- package/build/base-command.d.ts +0 -20
- package/build/base-command.js +0 -75
- package/build/base-command.js.map +0 -1
- package/build/commands/check.d.ts +0 -10
- package/build/commands/check.js +0 -87
- package/build/commands/check.js.map +0 -1
- package/build/commands/clean-cache.d.ts +0 -6
- package/build/commands/clean-cache.js +0 -28
- package/build/commands/clean-cache.js.map +0 -1
- package/build/commands/doctor.d.ts +0 -6
- package/build/commands/doctor.js +0 -20
- package/build/commands/doctor.js.map +0 -1
- package/build/commands/generate.d.ts +0 -7
- package/build/commands/generate.js +0 -94
- package/build/commands/generate.js.map +0 -1
- package/build/commands/lint.d.ts +0 -6
- package/build/commands/lint.js +0 -37
- package/build/commands/lint.js.map +0 -1
- package/build/commands/new.d.ts +0 -6
- package/build/commands/new.js +0 -37
- package/build/commands/new.js.map +0 -1
- package/build/commands/subscriptions.d.ts +0 -7
- package/build/commands/subscriptions.js +0 -95
- package/build/commands/subscriptions.js.map +0 -1
- package/build/commands/upload.d.ts +0 -6
- package/build/commands/upload.js +0 -91
- package/build/commands/upload.js.map +0 -1
- package/build/config.d.ts +0 -6
- package/build/config.js +0 -156
- package/build/config.js.map +0 -1
- package/build/configurables.d.ts +0 -88
- package/build/configurables.js +0 -52
- package/build/configurables.js.map +0 -1
- package/build/constant/constant.d.ts +0 -36
- package/build/constant/constant.js +0 -160
- package/build/constant/constant.js.map +0 -1
- package/build/constant/env.d.ts +0 -9
- package/build/constant/env.js +0 -13
- package/build/constant/env.js.map +0 -1
- package/build/constant/error.d.ts +0 -1
- package/build/constant/error.js +0 -5
- package/build/constant/error.js.map +0 -1
- package/build/constant/index.d.ts +0 -3
- package/build/constant/index.js +0 -20
- package/build/constant/index.js.map +0 -1
- package/build/filters/classes.d.ts +0 -13
- package/build/filters/classes.js +0 -42
- package/build/filters/classes.js.map +0 -1
- package/build/filters/filters.d.ts +0 -25
- package/build/filters/filters.js +0 -107
- package/build/filters/filters.js.map +0 -1
- package/build/filters/index.d.ts +0 -2
- package/build/filters/index.js +0 -32
- package/build/filters/index.js.map +0 -1
- package/build/filters/utils.d.ts +0 -16
- package/build/filters/utils.js +0 -159
- package/build/filters/utils.js.map +0 -1
- package/build/generator/artifact.d.ts +0 -142
- package/build/generator/artifact.js +0 -370
- package/build/generator/artifact.js.map +0 -1
- package/build/generator/index.d.ts +0 -3
- package/build/generator/index.js +0 -25
- package/build/generator/index.js.map +0 -1
- package/build/generator/json-template.d.ts +0 -11
- package/build/generator/json-template.js +0 -66
- package/build/generator/json-template.js.map +0 -1
- package/build/generator/template.d.ts +0 -8
- package/build/generator/template.js +0 -234
- package/build/generator/template.js.map +0 -1
- package/build/hooks/init.d.ts +0 -3
- package/build/hooks/init.js +0 -33
- package/build/hooks/init.js.map +0 -1
- package/build/index.d.ts +0 -85
- package/build/index.js +0 -64
- package/build/index.js.map +0 -1
- package/build/internal.d.ts +0 -5
- package/build/internal.js +0 -25
- package/build/internal.js.map +0 -1
- package/build/misc/deprecation.d.ts +0 -0
- package/build/misc/deprecation.js +0 -2
- package/build/misc/deprecation.js.map +0 -1
- package/build/misc/flag_cn.d.ts +0 -56
- package/build/misc/flag_cn.js +0 -154
- package/build/misc/flag_cn.js.map +0 -1
- package/build/provider/BlackSSLProvider.d.ts +0 -11
- package/build/provider/BlackSSLProvider.js +0 -93
- package/build/provider/BlackSSLProvider.js.map +0 -1
- package/build/provider/ClashProvider.d.ts +0 -24
- package/build/provider/ClashProvider.js +0 -476
- package/build/provider/ClashProvider.js.map +0 -1
- package/build/provider/CustomProvider.d.ts +0 -10
- package/build/provider/CustomProvider.js +0 -144
- package/build/provider/CustomProvider.js.map +0 -1
- package/build/provider/Provider.d.ts +0 -17
- package/build/provider/Provider.js +0 -111
- package/build/provider/Provider.js.map +0 -1
- package/build/provider/ShadowsocksJsonSubscribeProvider.d.ts +0 -11
- package/build/provider/ShadowsocksJsonSubscribeProvider.js +0 -86
- package/build/provider/ShadowsocksJsonSubscribeProvider.js.map +0 -1
- package/build/provider/ShadowsocksSubscribeProvider.d.ts +0 -18
- package/build/provider/ShadowsocksSubscribeProvider.js +0 -84
- package/build/provider/ShadowsocksSubscribeProvider.js.map +0 -1
- package/build/provider/ShadowsocksrSubscribeProvider.d.ts +0 -15
- package/build/provider/ShadowsocksrSubscribeProvider.js +0 -93
- package/build/provider/ShadowsocksrSubscribeProvider.js.map +0 -1
- package/build/provider/SsdProvider.d.ts +0 -39
- package/build/provider/SsdProvider.js +0 -138
- package/build/provider/SsdProvider.js.map +0 -1
- package/build/provider/TrojanProvider.d.ts +0 -24
- package/build/provider/TrojanProvider.js +0 -98
- package/build/provider/TrojanProvider.js.map +0 -1
- package/build/provider/V2rayNSubscribeProvider.d.ts +0 -25
- package/build/provider/V2rayNSubscribeProvider.js +0 -181
- package/build/provider/V2rayNSubscribeProvider.js.map +0 -1
- package/build/provider/index.d.ts +0 -17
- package/build/provider/index.js +0 -54
- package/build/provider/index.js.map +0 -1
- package/build/provider/types.d.ts +0 -18
- package/build/provider/types.js +0 -3
- package/build/provider/types.js.map +0 -1
- package/build/redis.d.ts +0 -9
- package/build/redis.js +0 -63
- package/build/redis.js.map +0 -1
- package/build/types.d.ts +0 -138
- package/build/types.js +0 -31
- package/build/types.js.map +0 -1
- package/build/utils/cache.d.ts +0 -23
- package/build/utils/cache.js +0 -98
- package/build/utils/cache.js.map +0 -1
- package/build/utils/clash.d.ts +0 -3
- package/build/utils/clash.js +0 -448
- package/build/utils/clash.js.map +0 -1
- package/build/utils/constant.d.ts +0 -1
- package/build/utils/constant.js +0 -19
- package/build/utils/constant.js.map +0 -1
- package/build/utils/dns.d.ts +0 -4
- package/build/utils/dns.js +0 -51
- package/build/utils/dns.js.map +0 -1
- package/build/utils/doctor.d.ts +0 -2
- package/build/utils/doctor.js +0 -38
- package/build/utils/doctor.js.map +0 -1
- package/build/utils/env-flag.d.ts +0 -9
- package/build/utils/env-flag.js +0 -41
- package/build/utils/env-flag.js.map +0 -1
- package/build/utils/error-helper.d.ts +0 -2
- package/build/utils/error-helper.js +0 -62
- package/build/utils/error-helper.js.map +0 -1
- package/build/utils/errors.d.ts +0 -19
- package/build/utils/errors.js +0 -60
- package/build/utils/errors.js.map +0 -1
- package/build/utils/flag.d.ts +0 -3
- package/build/utils/flag.js +0 -79
- package/build/utils/flag.js.map +0 -1
- package/build/utils/http-client.d.ts +0 -3
- package/build/utils/http-client.js +0 -82
- package/build/utils/http-client.js.map +0 -1
- package/build/utils/index.d.ts +0 -90
- package/build/utils/index.js +0 -529
- package/build/utils/index.js.map +0 -1
- package/build/utils/linter.d.ts +0 -4
- package/build/utils/linter.js +0 -49
- package/build/utils/linter.js.map +0 -1
- package/build/utils/loon.d.ts +0 -3
- package/build/utils/loon.js +0 -236
- package/build/utils/loon.js.map +0 -1
- package/build/utils/quantumult.d.ts +0 -6
- package/build/utils/quantumult.js +0 -240
- package/build/utils/quantumult.js.map +0 -1
- package/build/utils/relayable-url.d.ts +0 -1
- package/build/utils/relayable-url.js +0 -18
- package/build/utils/relayable-url.js.map +0 -1
- package/build/utils/remote-snippet.d.ts +0 -8
- package/build/utils/remote-snippet.js +0 -198
- package/build/utils/remote-snippet.js.map +0 -1
- package/build/utils/singbox.d.ts +0 -3
- package/build/utils/singbox.js +0 -377
- package/build/utils/singbox.js.map +0 -1
- package/build/utils/ss.d.ts +0 -3
- package/build/utils/ss.js +0 -97
- package/build/utils/ss.js.map +0 -1
- package/build/utils/ssr.d.ts +0 -7
- package/build/utils/ssr.js +0 -53
- package/build/utils/ssr.js.map +0 -1
- package/build/utils/subscription.d.ts +0 -11
- package/build/utils/subscription.js +0 -68
- package/build/utils/subscription.js.map +0 -1
- package/build/utils/surfboard.d.ts +0 -7
- package/build/utils/surfboard.js +0 -184
- package/build/utils/surfboard.js.map +0 -1
- package/build/utils/surge.d.ts +0 -8
- package/build/utils/surge.js +0 -407
- package/build/utils/surge.js.map +0 -1
- package/build/utils/time.d.ts +0 -1
- package/build/utils/time.js +0 -6
- package/build/utils/time.js.map +0 -1
- package/build/utils/tmp-helper.d.ts +0 -30
- package/build/utils/tmp-helper.js +0 -102
- package/build/utils/tmp-helper.js.map +0 -1
- package/build/utils/trojan.d.ts +0 -2
- package/build/utils/trojan.js +0 -38
- package/build/utils/trojan.js.map +0 -1
- package/build/utils/useragent.d.ts +0 -18
- package/build/utils/useragent.js +0 -210
- package/build/utils/useragent.js.map +0 -1
- package/build/validators/artifact.d.ts +0 -44
- package/build/validators/artifact.js +0 -26
- package/build/validators/artifact.js.map +0 -1
- package/build/validators/common.d.ts +0 -377
- package/build/validators/common.js +0 -106
- package/build/validators/common.js.map +0 -1
- package/build/validators/filter.d.ts +0 -10
- package/build/validators/filter.js +0 -15
- package/build/validators/filter.js.map +0 -1
- package/build/validators/hooks.d.ts +0 -9
- package/build/validators/hooks.js +0 -11
- package/build/validators/hooks.js.map +0 -1
- package/build/validators/http.d.ts +0 -366
- package/build/validators/http.js +0 -23
- package/build/validators/http.js.map +0 -1
- package/build/validators/hysteria2.d.ts +0 -196
- package/build/validators/hysteria2.js +0 -15
- package/build/validators/hysteria2.js.map +0 -1
- package/build/validators/index.d.ts +0 -17
- package/build/validators/index.js +0 -34
- package/build/validators/index.js.map +0 -1
- package/build/validators/provider.d.ts +0 -120
- package/build/validators/provider.js +0 -46
- package/build/validators/provider.js.map +0 -1
- package/build/validators/shadowsocks.d.ts +0 -252
- package/build/validators/shadowsocks.js +0 -31
- package/build/validators/shadowsocks.js.map +0 -1
- package/build/validators/shadowsocksr.d.ts +0 -184
- package/build/validators/shadowsocksr.js +0 -19
- package/build/validators/shadowsocksr.js.map +0 -1
- package/build/validators/snell.d.ts +0 -178
- package/build/validators/snell.js +0 -17
- package/build/validators/snell.js.map +0 -1
- package/build/validators/socks5.d.ts +0 -196
- package/build/validators/socks5.js +0 -15
- package/build/validators/socks5.js.map +0 -1
- package/build/validators/surgio-config.d.ts +0 -387
- package/build/validators/surgio-config.js +0 -101
- package/build/validators/surgio-config.js.map +0 -1
- package/build/validators/trojan.d.ts +0 -255
- package/build/validators/trojan.js +0 -16
- package/build/validators/trojan.js.map +0 -1
- package/build/validators/tuic.d.ts +0 -741
- package/build/validators/tuic.js +0 -21
- package/build/validators/tuic.js.map +0 -1
- package/build/validators/vless.d.ts +0 -389
- package/build/validators/vless.js +0 -31
- package/build/validators/vless.js.map +0 -1
- package/build/validators/vmess.d.ts +0 -425
- package/build/validators/vmess.js +0 -86
- package/build/validators/vmess.js.map +0 -1
- package/build/validators/wireguard.d.ts +0 -230
- package/build/validators/wireguard.js +0 -26
- package/build/validators/wireguard.js.map +0 -1
package/build/filters/utils.js
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.mergeReversedFilters = exports.reverseFilter = exports.mergeSortedFilters = exports.useSortedKeywords = exports.discardProviders = exports.useProviders = exports.discardGlob = exports.useGlob = exports.matchGlob = exports.useRegexp = exports.discardKeywords = exports.useKeywords = exports.mergeFilters = exports.applyFilter = exports.validateFilter = void 0;
|
|
7
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
8
|
-
const micromatch_1 = __importDefault(require("micromatch"));
|
|
9
|
-
const classes_1 = require("./classes");
|
|
10
|
-
const validateFilter = (filter) => {
|
|
11
|
-
if (filter === null || filter === undefined) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
if (typeof filter === 'function') {
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
return (typeof filter === 'object' &&
|
|
18
|
-
'supportSort' in filter &&
|
|
19
|
-
'filter' in filter &&
|
|
20
|
-
typeof filter.supportSort === 'boolean' &&
|
|
21
|
-
typeof filter.filter === 'function');
|
|
22
|
-
};
|
|
23
|
-
exports.validateFilter = validateFilter;
|
|
24
|
-
const applyFilter = (nodeList, filter) => {
|
|
25
|
-
// istanbul ignore next
|
|
26
|
-
if (filter && !(0, exports.validateFilter)(filter)) {
|
|
27
|
-
throw new Error(`使用了无效的过滤器 ${filter}`);
|
|
28
|
-
}
|
|
29
|
-
let newNodeList = nodeList.filter((item) => {
|
|
30
|
-
// Only checks the enable property when it's present, default to true
|
|
31
|
-
const isEnabled = item.enable !== false;
|
|
32
|
-
if (filter && typeof filter === 'function') {
|
|
33
|
-
return filter(item) && isEnabled;
|
|
34
|
-
}
|
|
35
|
-
return isEnabled;
|
|
36
|
-
});
|
|
37
|
-
if (filter &&
|
|
38
|
-
typeof filter === 'object' &&
|
|
39
|
-
typeof filter.filter === 'function') {
|
|
40
|
-
newNodeList = filter.filter(newNodeList);
|
|
41
|
-
}
|
|
42
|
-
return newNodeList;
|
|
43
|
-
};
|
|
44
|
-
exports.applyFilter = applyFilter;
|
|
45
|
-
const mergeFilters = (filters, isStrict) => {
|
|
46
|
-
filters.forEach((filter) => {
|
|
47
|
-
if ('supportSort' in filter && filter.supportSort) {
|
|
48
|
-
throw new Error('mergeFilters 不支持包含排序功能的过滤器');
|
|
49
|
-
}
|
|
50
|
-
// istanbul ignore next
|
|
51
|
-
if (typeof filter !== 'function') {
|
|
52
|
-
throw new Error('mergeFilters 传入了无效的过滤器');
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
return (item) => {
|
|
56
|
-
return filters[isStrict ? 'every' : 'some']((filter) => filter(item));
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
exports.mergeFilters = mergeFilters;
|
|
60
|
-
const useKeywords = (keywords, isStrict) => {
|
|
61
|
-
// istanbul ignore next
|
|
62
|
-
if (!Array.isArray(keywords)) {
|
|
63
|
-
throw new Error('keywords 请使用数组');
|
|
64
|
-
}
|
|
65
|
-
return (item) => keywords[isStrict ? 'every' : 'some']((keyword) => item.nodeName.includes(keyword));
|
|
66
|
-
};
|
|
67
|
-
exports.useKeywords = useKeywords;
|
|
68
|
-
const discardKeywords = (keywords, isStrict) => {
|
|
69
|
-
// istanbul ignore next
|
|
70
|
-
if (!Array.isArray(keywords)) {
|
|
71
|
-
throw new Error('keywords 请使用数组');
|
|
72
|
-
}
|
|
73
|
-
return (item) => !keywords[isStrict ? 'every' : 'some']((keyword) => item.nodeName.includes(keyword));
|
|
74
|
-
};
|
|
75
|
-
exports.discardKeywords = discardKeywords;
|
|
76
|
-
const useRegexp = (regexp) => {
|
|
77
|
-
// istanbul ignore next
|
|
78
|
-
if (!lodash_1.default.isRegExp(regexp)) {
|
|
79
|
-
throw new Error('入参不是一个合法的正则表达式');
|
|
80
|
-
}
|
|
81
|
-
return (item) => regexp.test(item.nodeName);
|
|
82
|
-
};
|
|
83
|
-
exports.useRegexp = useRegexp;
|
|
84
|
-
const matchGlob = (str, glob) => {
|
|
85
|
-
return micromatch_1.default.contains(str, glob);
|
|
86
|
-
};
|
|
87
|
-
exports.matchGlob = matchGlob;
|
|
88
|
-
const useGlob = (glob) => {
|
|
89
|
-
return (item) => (0, exports.matchGlob)(item.nodeName, glob);
|
|
90
|
-
};
|
|
91
|
-
exports.useGlob = useGlob;
|
|
92
|
-
const discardGlob = (glob) => {
|
|
93
|
-
return (item) => !(0, exports.matchGlob)(item.nodeName, glob);
|
|
94
|
-
};
|
|
95
|
-
exports.discardGlob = discardGlob;
|
|
96
|
-
const useProviders = (keywords, isStrict = true) => {
|
|
97
|
-
// istanbul ignore next
|
|
98
|
-
if (!Array.isArray(keywords)) {
|
|
99
|
-
throw new Error('keywords 请使用数组');
|
|
100
|
-
}
|
|
101
|
-
return (item) => keywords.some((keyword) => isStrict
|
|
102
|
-
? item?.provider?.name === keyword
|
|
103
|
-
: item?.provider?.name.includes(keyword));
|
|
104
|
-
};
|
|
105
|
-
exports.useProviders = useProviders;
|
|
106
|
-
const discardProviders = (keywords, isStrict = true) => {
|
|
107
|
-
// istanbul ignore next
|
|
108
|
-
if (!Array.isArray(keywords)) {
|
|
109
|
-
throw new Error('keywords 请使用数组');
|
|
110
|
-
}
|
|
111
|
-
return (item) => !keywords.some((keyword) => isStrict
|
|
112
|
-
? item?.provider?.name === keyword
|
|
113
|
-
: item?.provider?.name.includes(keyword));
|
|
114
|
-
};
|
|
115
|
-
exports.discardProviders = discardProviders;
|
|
116
|
-
const useSortedKeywords = (keywords) => {
|
|
117
|
-
// istanbul ignore next
|
|
118
|
-
if (!Array.isArray(keywords)) {
|
|
119
|
-
throw new Error('keywords 请使用数组');
|
|
120
|
-
}
|
|
121
|
-
return new classes_1.SortFilterWithSortedKeywords(keywords);
|
|
122
|
-
};
|
|
123
|
-
exports.useSortedKeywords = useSortedKeywords;
|
|
124
|
-
const mergeSortedFilters = (filters) => {
|
|
125
|
-
filters.forEach((filter) => {
|
|
126
|
-
if ('supportSort' in filter && filter.supportSort) {
|
|
127
|
-
throw new Error('mergeSortedFilters 不支持包含排序功能的过滤器');
|
|
128
|
-
}
|
|
129
|
-
// istanbul ignore next
|
|
130
|
-
if (typeof filter !== 'function') {
|
|
131
|
-
throw new Error('mergeSortedFilters 传入了无效的过滤器');
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
return new classes_1.SortFilterWithSortedFilters(filters);
|
|
135
|
-
};
|
|
136
|
-
exports.mergeSortedFilters = mergeSortedFilters;
|
|
137
|
-
const reverseFilter = (filter) => {
|
|
138
|
-
if ('supportSort' in filter && filter.supportSort) {
|
|
139
|
-
throw new Error('reverseFilter 不支持包含排序功能的过滤器');
|
|
140
|
-
}
|
|
141
|
-
return (item) => !filter(item);
|
|
142
|
-
};
|
|
143
|
-
exports.reverseFilter = reverseFilter;
|
|
144
|
-
const mergeReversedFilters = (filters, isStrict) => {
|
|
145
|
-
filters.forEach((filter) => {
|
|
146
|
-
if ('supportSort' in filter && filter.supportSort) {
|
|
147
|
-
throw new Error('mergeReversedFilters 不支持包含排序功能的过滤器');
|
|
148
|
-
}
|
|
149
|
-
// istanbul ignore next
|
|
150
|
-
if (typeof filter !== 'function') {
|
|
151
|
-
throw new Error('mergeReversedFilters 传入了无效的过滤器');
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
return (item) => {
|
|
155
|
-
return filters[isStrict ? 'some' : 'every']((filter) => filter(item));
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
exports.mergeReversedFilters = mergeReversedFilters;
|
|
159
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/filters/utils.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAsB;AACtB,4DAAmC;AAQnC,uCAGkB;AAEX,MAAM,cAAc,GAAG,CAAC,MAAe,EAAW,EAAE;IACzD,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAA;IACd,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;QACjC,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,CACL,OAAO,MAAM,KAAK,QAAQ;QAC1B,aAAa,IAAI,MAAM;QACvB,QAAQ,IAAI,MAAM;QAClB,OAAO,MAAM,CAAC,WAAW,KAAK,SAAS;QACvC,OAAO,MAAM,CAAC,MAAM,KAAK,UAAU,CACpC,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,cAAc,kBAc1B;AAEM,MAAM,WAAW,GAAG,CACzB,QAA0B,EAC1B,MAA8C,EAC5B,EAAE;IACpB,uBAAuB;IACvB,IAAI,MAAM,IAAI,CAAC,IAAA,sBAAc,EAAC,MAAM,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,aAAa,MAAM,EAAE,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,WAAW,GAAqB,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI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AAE,CAAC;QAClD,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;IAChD,CAAC;IACD,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAChC,CAAC,CAAA;AALY,QAAA,aAAa,iBAKzB;AAEM,MAAM,oBAAoB,GAAG,CAClC,OAA8B,EAC9B,QAAkB,EACF,EAAE;IAClB,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACzB,IAAI,aAAa,IAAI,MAAM,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;YAClD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;QACvD,CAAC;QAED,uBAAuB;QACvB,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;QACnD,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;IACvE,CAAC,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,oBAAoB,wBAkBhC"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
import _ from 'lodash';
|
|
4
|
-
import { Environment } from 'nunjucks';
|
|
5
|
-
import { GetNodeListParams, PossibleProviderType } from '../provider';
|
|
6
|
-
import { ArtifactConfig, ArtifactConfigInput, CommandConfig, PossibleNodeConfigType, RemoteSnippet } from '../types';
|
|
7
|
-
export interface ArtifactOptions {
|
|
8
|
-
readonly remoteSnippetList?: ReadonlyArray<RemoteSnippet>;
|
|
9
|
-
readonly templateEngine?: Environment;
|
|
10
|
-
}
|
|
11
|
-
export type ExtendableRenderContext = Record<string, string>;
|
|
12
|
-
export declare class Artifact extends EventEmitter {
|
|
13
|
-
surgioConfig: CommandConfig;
|
|
14
|
-
private options;
|
|
15
|
-
initProgress: number;
|
|
16
|
-
artifact: ArtifactConfig;
|
|
17
|
-
providerNameList: ReadonlyArray<string>;
|
|
18
|
-
nodeConfigListMap: Map<string, ReadonlyArray<PossibleNodeConfigType>>;
|
|
19
|
-
providerMap: Map<string, PossibleProviderType>;
|
|
20
|
-
nodeList: PossibleNodeConfigType[];
|
|
21
|
-
private customFilters;
|
|
22
|
-
private netflixFilter;
|
|
23
|
-
private youtubePremiumFilter;
|
|
24
|
-
constructor(surgioConfig: CommandConfig, artifactConfig: ArtifactConfigInput, options?: ArtifactOptions);
|
|
25
|
-
get isReady(): boolean;
|
|
26
|
-
getRenderContext(extendRenderContext?: ExtendableRenderContext): {
|
|
27
|
-
readonly netflixFilter: NonNullable<((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
28
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
29
|
-
readonly supportSort: true;
|
|
30
|
-
} | undefined>;
|
|
31
|
-
readonly youtubePremiumFilter: NonNullable<((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
32
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
33
|
-
readonly supportSort: true;
|
|
34
|
-
} | undefined>;
|
|
35
|
-
readonly customFilters: Record<string, ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
36
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
37
|
-
readonly supportSort: true;
|
|
38
|
-
}>;
|
|
39
|
-
readonly customParams: Readonly<Record<string, any>>;
|
|
40
|
-
readonly usFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
41
|
-
readonly hkFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
42
|
-
readonly japanFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
43
|
-
readonly koreaFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
44
|
-
readonly singaporeFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
45
|
-
readonly germanyFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
46
|
-
readonly taiwanFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
47
|
-
readonly chinaBackFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
48
|
-
readonly chinaOutFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
49
|
-
readonly shadowsocksFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
50
|
-
readonly shadowsocksrFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
51
|
-
readonly vmessFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
52
|
-
readonly v2rayFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
53
|
-
readonly snellFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
54
|
-
readonly tuicFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
55
|
-
readonly httpFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
56
|
-
readonly httpsFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
57
|
-
readonly trojanFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
58
|
-
readonly socks5Filter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
59
|
-
readonly wireguardFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
60
|
-
readonly hysteria2Filter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
61
|
-
readonly vlessFilter: (nodeConfig: PossibleNodeConfigType) => boolean;
|
|
62
|
-
readonly proxyTestUrl: string | undefined;
|
|
63
|
-
readonly proxyTestInterval: number | undefined;
|
|
64
|
-
readonly internetTestUrl: string | undefined;
|
|
65
|
-
readonly internetTestInterval: number | undefined;
|
|
66
|
-
readonly downloadUrl: string;
|
|
67
|
-
readonly snippet: (filePath: string) => RemoteSnippet;
|
|
68
|
-
readonly remoteSnippets: _.Dictionary<RemoteSnippet>;
|
|
69
|
-
readonly nodeList: PossibleNodeConfigType[];
|
|
70
|
-
readonly provider: string;
|
|
71
|
-
readonly providerName: string;
|
|
72
|
-
readonly artifactName: string;
|
|
73
|
-
readonly getDownloadUrl: (name: string) => string;
|
|
74
|
-
readonly getUrl: (p: string) => string;
|
|
75
|
-
readonly getNodeNames: (list: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
76
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
77
|
-
readonly supportSort: true;
|
|
78
|
-
} | undefined, separator?: string | undefined) => string;
|
|
79
|
-
readonly getClashNodes: (list: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
80
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
81
|
-
readonly supportSort: true;
|
|
82
|
-
} | undefined) => Record<string, any>[];
|
|
83
|
-
readonly getClashNodeNames: (list: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
84
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
85
|
-
readonly supportSort: true;
|
|
86
|
-
} | undefined, prependNodeNames?: readonly string[] | undefined, defaultNodeNames?: readonly string[] | undefined) => readonly string[];
|
|
87
|
-
readonly getSingboxNodes: (list: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
88
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
89
|
-
readonly supportSort: true;
|
|
90
|
-
} | undefined) => Record<string, any>[];
|
|
91
|
-
readonly getSingboxNodeNames: (list: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
92
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
93
|
-
readonly supportSort: true;
|
|
94
|
-
} | undefined) => readonly string[];
|
|
95
|
-
readonly getSurgeNodes: (nodeList: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
96
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
97
|
-
readonly supportSort: true;
|
|
98
|
-
} | undefined) => string;
|
|
99
|
-
readonly getSurgeNodeNames: (nodeList: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
100
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
101
|
-
readonly supportSort: true;
|
|
102
|
-
} | undefined) => string;
|
|
103
|
-
readonly getSurgeWireguardNodes: (nodeList: readonly PossibleNodeConfigType[]) => string;
|
|
104
|
-
readonly getSurfboardNodes: (list: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
105
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
106
|
-
readonly supportSort: true;
|
|
107
|
-
} | undefined) => string;
|
|
108
|
-
readonly getSurfboardNodeNames: (list: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
109
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
110
|
-
readonly supportSort: true;
|
|
111
|
-
} | undefined) => string;
|
|
112
|
-
readonly getShadowsocksNodes: (list: readonly import("../types").ShadowsocksNodeConfig[], groupName?: string) => string;
|
|
113
|
-
readonly getShadowsocksNodesJSON: (list: readonly import("../types").ShadowsocksNodeConfig[]) => string;
|
|
114
|
-
readonly getShadowsocksrNodes: (list: readonly import("../types").ShadowsocksrNodeConfig[], groupName: string) => string;
|
|
115
|
-
readonly getV2rayNNodes: (list: readonly import("../types").VmessNodeConfig[]) => string;
|
|
116
|
-
readonly getQuantumultXNodes: (nodeList: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
117
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
118
|
-
readonly supportSort: true;
|
|
119
|
-
} | undefined) => string;
|
|
120
|
-
readonly getQuantumultXNodeNames: (nodeList: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
121
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
122
|
-
readonly supportSort: true;
|
|
123
|
-
} | undefined) => string;
|
|
124
|
-
readonly getLoonNodes: (list: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
125
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
126
|
-
readonly supportSort: true;
|
|
127
|
-
} | undefined) => string;
|
|
128
|
-
readonly getLoonNodeNames: (list: readonly PossibleNodeConfigType[], filter?: ((nodeConfig: PossibleNodeConfigType) => boolean) | {
|
|
129
|
-
readonly filter: <T extends PossibleNodeConfigType>(nodeList: readonly T[]) => readonly T[];
|
|
130
|
-
readonly supportSort: true;
|
|
131
|
-
} | undefined, separator?: string | undefined) => string;
|
|
132
|
-
readonly toUrlSafeBase64: (str: string) => string;
|
|
133
|
-
readonly toBase64: (str: string) => string;
|
|
134
|
-
readonly encodeURIComponent: typeof encodeURIComponent;
|
|
135
|
-
};
|
|
136
|
-
init(params?: {
|
|
137
|
-
getNodeListParams?: GetNodeListParams;
|
|
138
|
-
}): Promise<this>;
|
|
139
|
-
getMergedCustomParams(extendableCustomParams?: Record<string, any>): Readonly<Record<string, any>>;
|
|
140
|
-
render(templateEngine?: Environment, extendRenderContext?: ExtendableRenderContext): string;
|
|
141
|
-
private providerMapper;
|
|
142
|
-
}
|