@everymatrix/general-player-login-form 1.19.6 → 1.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-player-login-form",
3
- "version": "1.19.6",
3
+ "version": "1.20.0",
4
4
  "main": "dist/general-player-login-form.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "f507ed6544a49ba6d7857c275bec9ac5a244131f"
38
+ "gitHead": "cce8ceef88ab812968208af95253b28b94fc43d2"
39
39
  }
@@ -217,7 +217,7 @@
217
217
  body: JSON.stringify(bodyData),
218
218
  };
219
219
 
220
- fetch(`${endpoint}/player/login/player`, options)
220
+ fetch(`${endpoint}/v1/player/login/player`, options)
221
221
  .then((res:any) => {
222
222
  if (res.status >= 500) {
223
223
  errorMessage = "Server might not be responsing";
@@ -289,7 +289,7 @@
289
289
  const sendSmsToken = async (number, playerId) => {
290
290
  localStorage.setItem('smsTimer', JSON.stringify(Math.floor(Date.now() / 1000)));
291
291
  try {
292
- const res = await fetch(`${endpoint}/player/sms/token`,{
292
+ const res = await fetch(`${endpoint}/v1/player/sms/token`,{
293
293
  method: 'POST',
294
294
  headers: {
295
295
  'Content-Type': 'application/json',