Skip to content

Commit 18c2db4

Browse files
authored
Merge pull request #37 from TaloDev/develop
Release 0.9.0
2 parents 0e9d76c + ce3e506 commit 18c2db4

35 files changed

+505
-313
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959
"postcss-cli": "^8.3.1",
6060
"postcss-nesting": "^8.0.1",
6161
"snowpack": "^3.8.8",
62-
"tailwindcss": "^2.2.2"
62+
"tailwindcss": "^3.0.24"
6363
},
6464
"license": "MIT",
6565
"browserslist": ">0.75%",
6666
"lint-staged": {
6767
"*.{js,jsx}": "eslint --fix"
6868
},
69-
"version": "0.8.1"
69+
"version": "0.9.0"
7070
}

src/api/api.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ instance.interceptors.request.use((config) => {
1414
config.headers['Authorization'] = `Bearer ${AuthService.getToken()}`
1515
}
1616

17+
config.headers['X-Talo-Include-Dev-Data'] = window.localStorage.getItem('includeDevData') === 'true' ? '1' : '0'
18+
1719
return config
1820
}, (error) => Promise.reject(error)
1921
)

src/api/confirmEmail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import api from './api'
22

3-
export default async (code) => api.post('/users/confirm_email', { code })
3+
export default (code) => api.post('/users/confirm_email', { code })

src/api/createAPIKey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import api from './api'
22

3-
export default async (gameId, scopes) => api.post('/api-keys', { gameId, scopes })
3+
export default (gameId, scopes) => api.post('/api-keys', { gameId, scopes })

src/api/createDataExport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import api from './api'
22

3-
export default async (gameId, entities) => api.post('/data-exports', { gameId, entities })
3+
export default (gameId, entities) => api.post('/data-exports', { gameId, entities })

src/api/createDemo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import api from './api'
22

3-
export default async () => api.post('/public/demo')
3+
export default () => api.post('/public/demo')

src/api/createGame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import api from './api'
22

3-
export default async (name) => api.post('/games', { name })
3+
export default (name) => api.post('/games', { name })

src/api/deleteAPIKey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import api from './api'
22

3-
export default async (apiKeyId) => api.delete(`/api-keys/${apiKeyId}`)
3+
export default (apiKeyId) => api.delete(`/api-keys/${apiKeyId}`)

src/api/findPlayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import api from './api'
22

3-
export default async (gameId, playerId) => api.get(`/players?gameId=${gameId}&search=${playerId}`)
3+
export default (gameId, playerId) => api.get(`/players?gameId=${gameId}&search=${playerId}`)

src/api/getAPIKeyScopes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import api from './api'
22

3-
export default async () => api.get('/api-keys/scopes')
3+
export default () => api.get('/api-keys/scopes')

0 commit comments

Comments
 (0)