yolkbot 0.1.2-alpha.10 → 0.1.2-alpha.12
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/browser/build/global.js +1 -1
- package/browser/build/module.js +1 -1
- package/package.json +1 -1
- package/src/api.js +3 -3
- package/src/types/bot.d.ts +2 -0
package/package.json
CHANGED
package/src/api.js
CHANGED
|
@@ -97,7 +97,7 @@ async function loginWithCredentials(email, password, proxy = '', instance = 'she
|
|
|
97
97
|
'x-client-version': 'Chrome/JsCore/9.17.2/FirebaseCore-web',
|
|
98
98
|
'x-firebase-locale': 'en'
|
|
99
99
|
},
|
|
100
|
-
dispatcher: proxy ? new globals.ProxyAgent(proxy.replace(/socks(4|5|4a|5h)/g, 'https')) : undefined
|
|
100
|
+
dispatcher: proxy ? new globals.ProxyAgent(proxy.replace(/socks([4|5|4a|5h]+)/g, 'https')) : undefined
|
|
101
101
|
});
|
|
102
102
|
|
|
103
103
|
body = await request.json();
|
|
@@ -158,7 +158,7 @@ async function loginWithRefreshToken(refreshToken, proxy = '', instance = 'shell
|
|
|
158
158
|
'x-client-version': 'Chrome/JsCore/9.17.2/FirebaseCore-web',
|
|
159
159
|
'x-firebase-locale': 'en'
|
|
160
160
|
},
|
|
161
|
-
dispatcher: proxy ? new globals.ProxyAgent(proxy.replace(/socks(4|5|4a|5h)/g, 'https')) : undefined
|
|
161
|
+
dispatcher: proxy ? new globals.ProxyAgent(proxy.replace(/socks([4|5|4a|5h]+)/g, 'https')) : undefined
|
|
162
162
|
});
|
|
163
163
|
|
|
164
164
|
body = await request.json();
|
|
@@ -206,7 +206,7 @@ async function loginAnonymously(proxy = '', instance = 'shellshock.io') {
|
|
|
206
206
|
'x-client-version': 'Chrome/JsCore/9.17.2/FirebaseCore-web',
|
|
207
207
|
'x-firebase-locale': 'en'
|
|
208
208
|
},
|
|
209
|
-
dispatcher: proxy ? new globals.ProxyAgent(proxy.replace(/socks(4|5|4a|5h)/g, 'https')) : undefined
|
|
209
|
+
dispatcher: proxy ? new globals.ProxyAgent(proxy.replace(/socks([4|5|4a|5h]+)/g, 'https')) : undefined
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
const body = await req.json();
|