@theholocron/holocron-plugin-neon 5.0.0-alpha.231 → 5.0.0-alpha.233
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.d.mts +3 -0
- package/dist/index.mjs +11 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -60,6 +60,9 @@ declare function createContext(options: NeonPluginOptions): PluginContext;
|
|
|
60
60
|
declare function storage(ctx: PluginContext): Storage;
|
|
61
61
|
declare function createPlugin(options: NeonPluginOptions): {
|
|
62
62
|
name: string;
|
|
63
|
+
probes: {
|
|
64
|
+
connection: import("@theholocron/cli").Probe;
|
|
65
|
+
};
|
|
63
66
|
capabilities: {
|
|
64
67
|
storage: () => Storage;
|
|
65
68
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthError, ProviderApiError, createResolveToken } from "@theholocron/cli";
|
|
1
|
+
import { AuthError, ProviderApiError, connectionProbe, createResolveToken } from "@theholocron/cli";
|
|
2
2
|
import { createNeonClient } from "@theholocron/neon-client";
|
|
3
3
|
import { errorMessage } from "@theholocron/misc-utils";
|
|
4
4
|
//#region src/auth.ts
|
|
@@ -114,6 +114,16 @@ function createPlugin(options) {
|
|
|
114
114
|
const ctx = createContext(options);
|
|
115
115
|
return {
|
|
116
116
|
name: "@theholocron/holocron-plugin-neon",
|
|
117
|
+
probes: { connection: connectionProbe({
|
|
118
|
+
provider: "Neon",
|
|
119
|
+
url: options.baseUrl ?? "https://console.neon.tech",
|
|
120
|
+
fetch: options.fetch,
|
|
121
|
+
token: () => resolveToken(options),
|
|
122
|
+
verify: (token) => verifyToken(token, {
|
|
123
|
+
baseUrl: options.baseUrl,
|
|
124
|
+
fetch: options.fetch
|
|
125
|
+
})
|
|
126
|
+
}) },
|
|
117
127
|
capabilities: { storage: () => storage(ctx) }
|
|
118
128
|
};
|
|
119
129
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-neon",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.233",
|
|
4
4
|
"description": "Holocron plugin for Neon. Implements the storage capability against Neon's REST API — branch ops, connection strings, extensions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"holocron",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"tsx": "4.23.15",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"vitest": "^4.1.11",
|
|
50
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
50
|
+
"@theholocron/cli": "5.0.0-alpha.233"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@theholocron/misc-utils": "^1.16.0",
|
|
54
54
|
"@theholocron/neon-client": "^1.43.1",
|
|
55
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
55
|
+
"@theholocron/cli": "5.0.0-alpha.233"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@theholocron/neon-client": {}
|