-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
56 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import {EnvironmentType} from "@kwilteam/kwil-js/dist/core/enums"; | ||
import {WebKwil} from "@kwilteam/kwil-js"; | ||
import {BaseTSNClient, TSNClientOptions} from "./client"; | ||
import { EnvironmentType } from "@kwilteam/kwil-js/dist/core/enums"; | ||
import { WebKwil } from "@kwilteam/kwil-js"; | ||
import { BaseTSNClient, TSNClientOptions } from "./client"; | ||
|
||
export class BrowserTSNClient extends BaseTSNClient<EnvironmentType.BROWSER> { | ||
constructor(options: TSNClientOptions) { | ||
super(options); | ||
this.kwilClient = new WebKwil({ | ||
...options, | ||
kwilProvider: options.endpoint, | ||
}); | ||
} | ||
constructor(options: TSNClientOptions) { | ||
super(options); | ||
this.kwilClient = new WebKwil({ | ||
...options, | ||
kwilProvider: options.endpoint, | ||
}); | ||
} | ||
} | ||
|
||
export default BrowserTSNClient; | ||
export default BrowserTSNClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import {EnvironmentType} from "@kwilteam/kwil-js/dist/core/enums"; | ||
import {NodeKwil} from "@kwilteam/kwil-js"; | ||
import {BaseTSNClient, TSNClientOptions} from "./client"; | ||
import { EnvironmentType } from "@kwilteam/kwil-js/dist/core/enums"; | ||
import { NodeKwil } from "@kwilteam/kwil-js"; | ||
import { BaseTSNClient, TSNClientOptions } from "./client"; | ||
|
||
export class NodeTSNClient extends BaseTSNClient<EnvironmentType.NODE> { | ||
constructor(options: TSNClientOptions) { | ||
super(options); | ||
this.kwilClient = new NodeKwil({ | ||
...options, | ||
kwilProvider: options.endpoint, | ||
}); | ||
} | ||
constructor(options: TSNClientOptions) { | ||
super(options); | ||
this.kwilClient = new NodeKwil({ | ||
...options, | ||
kwilProvider: options.endpoint, | ||
}); | ||
} | ||
} | ||
|
||
export default NodeTSNClient; | ||
export default NodeTSNClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters