diff --git a/packages/server/package.json b/packages/server/package.json index bd17204..927b16e 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -33,7 +33,7 @@ "url": "https://github.com/playhaste/haste-sdk/issues" }, "dependencies": { - "@hastearcade/models": "^1.4.0", + "@hastearcade/models": "^2.1.0", "axios": "^0.21.1", "jsonwebtoken": "^9.0.0", "jwks-rsa": "^2.0.4" diff --git a/packages/server/src/api/haste.ts b/packages/server/src/api/haste.ts index 71d558b..bd41633 100644 --- a/packages/server/src/api/haste.ts +++ b/packages/server/src/api/haste.ts @@ -61,7 +61,7 @@ export class Haste { public static async getPlayerDetails(playerAccessToken: string, authUrl = 'auth.hastearcade.com') { if (isBrowser()) - throw new Error(`getPlayerDetails may only be called from a server environment. Do not use in browser please.`); + throw new Error(`getPlayerDetails may only be called from a server environment. Do not use in browser.`); const jwt = await validateAuthenticationToken(playerAccessToken, authUrl); const playerId = jwt['https://hastearcade.com/playerId'] as string; const email = jwt['https://hastearcade.com/email'] as string; diff --git a/packages/web/package.json b/packages/web/package.json index 58151fb..10f5867 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -42,7 +42,7 @@ "payout" ], "dependencies": { - "@hastearcade/models": "^1.4.0", + "@hastearcade/models": "^2.1.0", "@types/axios": "^0.14.0", "@types/uuid": "^8.3.3", "axios": "^0.21.1", diff --git a/packages/web/src/api/hasteClient.ts b/packages/web/src/api/hasteClient.ts index a9730f4..8804fab 100644 --- a/packages/web/src/api/hasteClient.ts +++ b/packages/web/src/api/hasteClient.ts @@ -21,7 +21,7 @@ export class HasteClient { public static build(signinUrl = 'https://authclient.hastearcade.com') { if (!isBrowser()) throw new Error( - `Haste client build can only be called from a browser based environment. If you are on running @hastearcade/web on a server, please use the server package instead.`, + `Haste client build can only be called from the browser. If you are on running @hastearcade/web on a server, please use the server package instead.`, ); return new HasteClient({