@grantjs/cli 1.5.3 → 1.6.1
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/api/client.d.ts +2 -10
- package/dist/config/index.d.ts +1 -2
- package/dist/config/storage.d.ts +0 -11
- package/dist/index.mjs +17 -12
- package/dist/index.mjs.map +1 -1
- package/dist/types/config.d.ts +4 -3
- package/package.json +5 -5
package/dist/types/config.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface GrantScope {
|
|
|
10
10
|
* Session: only tokens are stored (no credentials like email/password).
|
|
11
11
|
* Session auth does not auto-refresh; when the access token expires, run "grant start" again.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
interface SessionCredentials {
|
|
14
14
|
token: string;
|
|
15
15
|
refreshToken?: string;
|
|
16
16
|
expiresAt?: string;
|
|
@@ -19,7 +19,7 @@ export interface SessionCredentials {
|
|
|
19
19
|
* API key credentials (clientId + clientSecret, scope).
|
|
20
20
|
* Token is obtained by exchanging at runtime; we store key material.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
interface ApiKeyCredentials {
|
|
23
23
|
clientId: string;
|
|
24
24
|
clientSecret: string;
|
|
25
25
|
scope: GrantScope;
|
|
@@ -41,7 +41,7 @@ export interface GrantConfig {
|
|
|
41
41
|
generateTypesOutputPath?: string;
|
|
42
42
|
}
|
|
43
43
|
/** Name of a profile (key in profiles). */
|
|
44
|
-
|
|
44
|
+
type ProfileName = string;
|
|
45
45
|
/**
|
|
46
46
|
* Config file: multiple profiles and a default.
|
|
47
47
|
* First profile configured becomes default unless set otherwise.
|
|
@@ -52,3 +52,4 @@ export interface GrantConfigFile {
|
|
|
52
52
|
/** Named profiles (e.g. "default", "staging", "client-x"). */
|
|
53
53
|
profiles: Record<ProfileName, GrantConfig>;
|
|
54
54
|
}
|
|
55
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grantjs/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Grant CLI - Setup, authentication, and typings generation for @grantjs/server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/inquirer": "^9.0.10",
|
|
52
|
-
"@types/node": "^26.
|
|
53
|
-
"eslint": "^10.
|
|
52
|
+
"@types/node": "^26.2.0",
|
|
53
|
+
"eslint": "^10.8.1",
|
|
54
54
|
"typescript": "^6.0.3",
|
|
55
|
-
"vite": "^8.2.
|
|
55
|
+
"vite": "^8.2.1",
|
|
56
56
|
"vite-plugin-dts": "^5.0.3",
|
|
57
|
-
"vitest": "^4.1.
|
|
57
|
+
"vitest": "^4.1.11"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=18.0.0"
|