@theholocron/neon-client 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +10 -10
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,14 +1,4 @@
1
1
  import { createRestClient } from "@theholocron/http-client";
2
- //#region src/utils.ts
3
- function createNeonRestClient(opts) {
4
- return createRestClient({
5
- baseUrl: opts.baseUrl ?? "https://console.neon.tech/api/v2",
6
- token: opts.token,
7
- vendor: "Neon",
8
- fetch: opts.fetch
9
- });
10
- }
11
- //#endregion
12
2
  //#region src/branches/branches.ts
13
3
  function branches(rest) {
14
4
  return {
@@ -60,6 +50,16 @@ function users(rest) {
60
50
  return { me: () => rest.request("/users/me") };
61
51
  }
62
52
  //#endregion
53
+ //#region src/utils.ts
54
+ function createNeonRestClient(opts) {
55
+ return createRestClient({
56
+ baseUrl: opts.baseUrl ?? "https://console.neon.tech/api/v2",
57
+ token: opts.token,
58
+ vendor: "Neon",
59
+ fetch: opts.fetch
60
+ });
61
+ }
62
+ //#endregion
63
63
  //#region src/index.ts
64
64
  function createNeonClient(opts) {
65
65
  const rest = createNeonRestClient(opts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/neon-client",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "A TypeScript client for the Neon API",
5
5
  "homepage": "https://github.com/theholocron/clients/tree/main/packages/neon-client#readme",
6
6
  "bugs": "https://github.com/theholocron/clients/issues",
@@ -30,7 +30,7 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@theholocron/http-client": "^1.5.0"
33
+ "@theholocron/http-client": "^1.5.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.1.2",