-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
34 lines (34 loc) · 972 Bytes
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"clients": [
{
"name": "fetch",
"methodRe": "fetch\\(['\"]([^'\"]+)['\"],\\s*\\{[^}]*method:\\s*['\"]([^'\"]+)['\"]",
"urlRe": "fetch\\(['\"]([^'\"]+)['\"]",
"urlMethodIndex": [1, 2]
},
{
"name": "axios",
"methodRe": "axios\\.([a-zA-Z]+)\\(['\"]([^'\"]+)['\"]",
"urlRe": "axios\\.([a-zA-Z]+)\\(['\"]([^'\"]+)['\"]",
"urlMethodIndex": [1, 2]
},
{
"name": "jquery",
"methodRe": "\\$.ajax\\(\\{\\s*url:\\s*['\"]([^'\"]+)['\"],\\s*type:\\s*['\"]([^'\"]+)['\"]",
"urlRe": "\\$.ajax\\(\\{\\s*url:\\s*['\"]([^'\"]+)['\"]",
"urlMethodIndex": [1, 2]
},
{
"name": "xhr",
"methodRe": "xhr\\.open\\(['\"]([^'\"]+)['\"],\\s*['\"]([^'\"]+)['\"]",
"urlRe": "xhr\\.open\\(['\"]([^'\"]+)['\"]",
"urlMethodIndex": [1, 2]
},
{
"name": "httpclient",
"methodRe": "\\.httpClient\\.([a-zA-Z]+)\\(['\"]([^'\"]+)['\"]",
"urlRe": "\\.httpClient\\.([a-zA-Z]+)\\(['\"]([^'\"]+)['\"]",
"urlMethodIndex": [2, 1]
}
]
}