@theholocron/holocron-plugin-neon 5.0.0-alpha.270 → 5.0.0-alpha.272
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 +4 -2
- package/dist/index.mjs +3 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { AuthError, ConnectionStringOptions, ResolveTokenInput, Storage, StorageBranch, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
|
|
1
|
+
import { AuthError, ConnectionStringOptions, PluginToken, ResolveTokenInput, Storage, StorageBranch, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
|
|
2
2
|
import { NeonClient, NeonClient as NeonClient$1, NeonClientOptions, createNeonClient } from "@theholocron/neon-client";
|
|
3
|
-
export declare const resolveToken: (
|
|
3
|
+
export declare const resolveToken: import("@theholocron/cli").TokenResolver;
|
|
4
|
+
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
5
|
+
export declare const tokens: PluginToken[];
|
|
4
6
|
interface StorageOptions {
|
|
5
7
|
projectId: string;
|
|
6
8
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -8,6 +8,8 @@ const resolveToken = createResolveToken({
|
|
|
8
8
|
keyringService: "neon",
|
|
9
9
|
errorMessage: "no Neon API key found. Pass --token <KEY>, set HOLOCRON_NEON_API_KEY / NEON_API_KEY, or run: holocron auth set neon <KEY>"
|
|
10
10
|
});
|
|
11
|
+
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
12
|
+
const tokens = [resolveToken.token];
|
|
11
13
|
// src/capabilities/storage.ts
|
|
12
14
|
var NeonStorage = class {
|
|
13
15
|
client;
|
|
@@ -131,4 +133,4 @@ function createPlugin(options) {
|
|
|
131
133
|
* are minted.
|
|
132
134
|
*/
|
|
133
135
|
const AUTH_HINT = "generate a Neon API key at https://console.neon.tech/app/settings/api-keys, then run: holocron auth set neon <KEY>";
|
|
134
|
-
export { AUTH_HINT, AuthError, NeonStorage, createContext, createNeonClient, createPlugin, resolveToken, storage, verifyToken };
|
|
136
|
+
export { AUTH_HINT, AuthError, NeonStorage, createContext, createNeonClient, createPlugin, resolveToken, storage, tokens, verifyToken };
|
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.272",
|
|
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",
|
|
@@ -40,19 +40,19 @@
|
|
|
40
40
|
"tsx": "4.23.15",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
42
|
"vitest": "^5.0.5",
|
|
43
|
-
"@theholocron/cli": "5.0.0-alpha.270",
|
|
44
|
-
"@theholocron/http-client": "^1.58.0-alpha.2",
|
|
45
|
-
"@theholocron/eslint-config": "^8.9.0-alpha.3",
|
|
46
43
|
"@theholocron/neon-client": "^1.58.0-alpha.2",
|
|
47
|
-
"@theholocron/misc-utils": "^1.16.1-alpha.1",
|
|
48
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.3",
|
|
49
44
|
"@theholocron/tsdown-config": "^8.9.0-alpha.3",
|
|
50
|
-
"@theholocron/
|
|
45
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.3",
|
|
46
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.3",
|
|
47
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.3",
|
|
48
|
+
"@theholocron/cli": "5.0.0-alpha.272",
|
|
49
|
+
"@theholocron/misc-utils": "^1.16.1-alpha.1",
|
|
50
|
+
"@theholocron/http-client": "^1.58.0-alpha.2"
|
|
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.272"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@theholocron/neon-client": {}
|