@theholocron/neon-client 1.3.3 → 1.3.5
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.
- package/dist/index.mjs +10 -10
- package/package.json +4 -3
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.3.
|
|
3
|
+
"version": "1.3.5",
|
|
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,11 +30,11 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@theholocron/http-client": "^1.3.
|
|
33
|
+
"@theholocron/http-client": "^1.3.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^26.1.1",
|
|
37
|
-
"@theholocron/eslint-config": "^7.
|
|
37
|
+
"@theholocron/eslint-config": "^7.6.0",
|
|
38
38
|
"@theholocron/tsconfig": "^7.4.1",
|
|
39
39
|
"@theholocron/tsdown-config": "^7.4.1",
|
|
40
40
|
"@theholocron/vitest-config": "^7.4.1",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@vitest/eslint-plugin": "^1.6.23",
|
|
43
43
|
"eslint": "^10.7.0",
|
|
44
44
|
"eslint-plugin-n": "^18.2.2",
|
|
45
|
+
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
45
46
|
"globals": "^17.7.0",
|
|
46
47
|
"tsdown": "^0.22.13",
|
|
47
48
|
"typescript": "^5.9.3",
|