Skip to content

Commit

Permalink
Merge pull request #24 from supabase-community/fix/tsup-cjs-errors
Browse files Browse the repository at this point in the history
Fix tsup CJS transpile errors
  • Loading branch information
gregnr authored Dec 23, 2024
2 parents 0ed68f0 + 8fa27cd commit c7ccafb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/pg-gateway/src/auth/cert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class CertAuthFlow extends BaseAuthFlow {
validateCredentials: NonNullable<CertAuthOptions['validateCredentials']>;
};
private username: string;
private completed = false;
private completed: boolean;

constructor(params: {
auth: CertAuthOptions;
Expand All @@ -32,6 +32,7 @@ export class CertAuthFlow extends BaseAuthFlow {
}) {
super(params);

this.completed = false;
this.auth = {
...params.auth,
validateCredentials:
Expand Down
4 changes: 3 additions & 1 deletion packages/pg-gateway/src/auth/md5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Md5AuthFlow extends BaseAuthFlow {
};
private username: string;
private salt: Uint8Array;
private completed = false;
private completed: boolean;

constructor(params: {
auth: Md5AuthOptions;
Expand All @@ -42,6 +42,8 @@ export class Md5AuthFlow extends BaseAuthFlow {
connectionState: ConnectionState;
}) {
super(params);

this.completed = false;
this.auth = {
...params.auth,
validateCredentials:
Expand Down
4 changes: 3 additions & 1 deletion packages/pg-gateway/src/auth/password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class PasswordAuthFlow extends BaseAuthFlow {
validateCredentials: NonNullable<PasswordAuthOptions['validateCredentials']>;
};
private username: string;
private completed = false;
private completed: boolean;

constructor(params: {
auth: PasswordAuthOptions;
Expand All @@ -41,6 +41,8 @@ export class PasswordAuthFlow extends BaseAuthFlow {
connectionState: ConnectionState;
}) {
super(params);

this.completed = false;
this.auth = {
...params.auth,
validateCredentials:
Expand Down
4 changes: 3 additions & 1 deletion packages/pg-gateway/src/auth/sasl/scram-sha-256.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class ScramSha256AuthFlow extends SaslMechanism implements AuthFlow {
clientFirstMessageBare?: string;
serverFirstMessage?: string;
serverNonce?: string;
step: ScramSha256Step = ScramSha256Step.Initial;
step: ScramSha256Step;
reader: BufferReader;
scramSha256Data?: ScramSha256Data;
connectionState: ConnectionState;
Expand All @@ -115,6 +115,8 @@ export class ScramSha256AuthFlow extends SaslMechanism implements AuthFlow {
connectionState: ConnectionState;
}) {
super({ writer: params.writer });

this.step = ScramSha256Step.Initial;
this.username = params.username;
this.auth = {
...params.auth,
Expand Down

0 comments on commit c7ccafb

Please sign in to comment.