From 602ecd1ff041747039fb4d5a43b992f7ddb3cd26 Mon Sep 17 00:00:00 2001 From: Keith LaForce Date: Thu, 19 Aug 2021 15:14:45 -0400 Subject: [PATCH] fix(release): setting up release --- README.md | 4 ++-- packages/models/src/models/arcade.ts | 1 - packages/server/README.md | 2 +- packages/server/src/api/haste.ts | 2 +- packages/web/README.md | 2 +- packages/web/src/api/hasteClient.ts | 5 +---- 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index eae9b30..e3beab4 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ const haste = await Haste.build(process.env.HASTE_SERVER_CLIENT_ID, process.env. The client id and secret are defined in the developer portal on your game page. See image below for reference: -![](docs/assets/gameserverkeys.png) +![](https://github.com/playhaste/haste-sdk/blob/main/docs/assets/gameserverkeys.png) **NOTE: It is recommneded to create an abstraction (service, lib, etc) around the haste-sdk in your codebase. This will allow you to initialize one haste object.** @@ -176,7 +176,7 @@ const hasteClient = await HasteClient.build(process.env.HASTE_GAME_CLIENT_ID); The client id used here can be found in the developer portal and will be for your game _not your server_. See image below for a reference point: -![](docs/assets/gameclientkeys.png) +![](https://github.com/playhaste/haste-sdk/blob/main/docs/assets/gameclientkeys.png) #### Login diff --git a/packages/models/src/models/arcade.ts b/packages/models/src/models/arcade.ts index 01f51ac..da1540b 100644 --- a/packages/models/src/models/arcade.ts +++ b/packages/models/src/models/arcade.ts @@ -1,7 +1,6 @@ export class Arcade { id: string; name: string; - createdAt: Date; constructor(id: string) { this.id = id; diff --git a/packages/server/README.md b/packages/server/README.md index 8f47975..6e68a3c 100644 --- a/packages/server/README.md +++ b/packages/server/README.md @@ -39,7 +39,7 @@ const haste = await Haste.build(process.env.HASTE_SERVER_CLIENT_ID, process.env. The client id and secret are defined in the developer portal on your game page. See image below for reference: -![](docs/assets/gameserverkeys.png) +![](https://github.com/playhaste/haste-sdk/blob/main/docs/assets/gameserverkeys.png) **NOTE: It is recommneded to create an abstraction (service, lib, etc) around the haste-sdk in your codebase. This will allow you to initialize one haste object.** diff --git a/packages/server/src/api/haste.ts b/packages/server/src/api/haste.ts index e2081f1..a89b076 100644 --- a/packages/server/src/api/haste.ts +++ b/packages/server/src/api/haste.ts @@ -48,7 +48,7 @@ export class Haste { clientSecret: string, configuration?: HasteConfiguration, ): Promise { - if (isBrowser()) throw new Error(`build may only be called from a server environment. Do not use in browser.`); + if (isBrowser()) throw new Error(`build may only be called from a server environment.`); if (!clientId || clientId.length === 0) { throw new Error(`You must initialize Haste with a client id.`); diff --git a/packages/web/README.md b/packages/web/README.md index 34a1192..5868c0a 100644 --- a/packages/web/README.md +++ b/packages/web/README.md @@ -39,7 +39,7 @@ const hasteClient = await HasteClient.build(process.env.HASTE_GAME_CLIENT_ID); The client id used here can be found in the developer portal and will be for your game _not your server_. See image below for a reference point: -![](docs/assets/gameclientkeys.png) +![](https://github.com/playhaste/haste-sdk/blob/main/docs/assets/gameclientkeys.png) #### Login diff --git a/packages/web/src/api/hasteClient.ts b/packages/web/src/api/hasteClient.ts index 72bd9ae..bdd4f71 100644 --- a/packages/web/src/api/hasteClient.ts +++ b/packages/web/src/api/hasteClient.ts @@ -12,10 +12,7 @@ export class HasteClient { } public static async build(clientId: string, domain = 'haste-production.us.auth0.com') { - if (!isBrowser()) - throw new Error( - `Haste client build may only be called from a browser based environment. Please do not run this from a server.`, - ); + if (!isBrowser()) throw new Error(`Haste client build may only be called from a browser based environment.`); const auth0 = await createAuth0Client({ domain: domain,