Skip to content

Commit 798f713

Browse files
authored
Add configurability for external, internal use (#47)
1 parent 7006cad commit 798f713

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,14 @@ const staging = new Glide({
149149
/* ... */
150150
});
151151
```
152+
153+
Or with the package:
154+
155+
```ts
156+
import * as glide from "@glideapps/tables";
157+
158+
const staging = glide.withConfig({
159+
endpoint: "https://staging.heyglide.com/api/container",
160+
/* ... */
161+
});
162+
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@glideapps/tables",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"description": "Client for Glide API",
55
"main": "dist/cjs/index.js",
66
"module": "dist/es6/index.js",

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ export const app = defaultClient.app.bind(defaultClient);
66
export const table = defaultClient.table.bind(defaultClient);
77
export const getApps = defaultClient.getApps.bind(defaultClient);
88
export const getAppNamed = defaultClient.getAppNamed.bind(defaultClient);
9+
export const withConfig = defaultClient.with.bind(defaultClient);
910

1011
export { RowOf, AppManifest } from "./types";

0 commit comments

Comments
 (0)