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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yolkbot",
3
3
  "description": "create a shell shockers bot in under 10 lines.",
4
- "version": "0.1.2-alpha.10",
4
+ "version": "0.1.2-alpha.12",
5
5
  "keywords": [
6
6
  "shell shockers",
7
7
  "shellshock.io",
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();
@@ -66,6 +66,8 @@ export interface Account {
66
66
  firebaseId: string;
67
67
  sessionId: string;
68
68
  session: string;
69
+ email: string;
70
+ password?: string;
69
71
  cw: ChiknWinnerStatus;
70
72
  loadout: {
71
73
  hatId: number | null;