Skip to content

Commit

Permalink
fix(release): small update to trigger releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rallieon committed Aug 19, 2021
1 parent 6bb8b8d commit bc1a477
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/models/src/models/arcade.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export class Arcade {
id: string;
name: string;
createdAt: Date;

constructor(id: string) {
this.id = id;
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/api/haste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Haste {
clientSecret: string,
configuration?: HasteConfiguration,
): Promise<Haste> {
if (isBrowser()) throw new Error(`build may only be called from a server environment.`);
if (isBrowser()) throw new Error(`build may only be called from a server environment. Do not use in browser.`);

if (!clientId || clientId.length === 0) {
throw new Error(`You must initialize Haste with a client id.`);
Expand Down
5 changes: 4 additions & 1 deletion packages/web/src/api/hasteClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ 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`);
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.`,
);

const auth0 = await createAuth0Client({
domain: domain,
Expand Down

0 comments on commit bc1a477

Please sign in to comment.