@devpad/cli 2.1.11 → 2.2.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/index.js +5 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -861,7 +861,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
861
861
|
this._exitCallback = (err2) => {
|
|
862
862
|
if (err2.code !== "commander.executeSubCommandAsync") {
|
|
863
863
|
throw err2;
|
|
864
|
-
}
|
|
864
|
+
}
|
|
865
865
|
};
|
|
866
866
|
}
|
|
867
867
|
return this;
|
|
@@ -10135,9 +10135,10 @@ var ApiClient2 = class {
|
|
|
10135
10135
|
session: () => wrap(() => this.clients.auth_root.get("/auth/session")),
|
|
10136
10136
|
keys: {
|
|
10137
10137
|
list: () => wrap(() => this.clients.auth.get("/keys")),
|
|
10138
|
-
create: (
|
|
10139
|
-
body
|
|
10140
|
-
|
|
10138
|
+
create: (input) => {
|
|
10139
|
+
const body = typeof input === "string" ? { name: input } : input ?? {};
|
|
10140
|
+
return wrap(() => this.clients.auth.post("/keys", { body }));
|
|
10141
|
+
},
|
|
10141
10142
|
revoke: (key_id) => wrap(() => this.clients.auth.delete(`/keys/${key_id}`)),
|
|
10142
10143
|
remove: (key_id) => wrap(() => this.clients.auth.delete(`/keys/${key_id}`))
|
|
10143
10144
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/cli",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Command line interface for devpad project management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@devpad/api": "^2.1
|
|
48
|
-
"@devpad/schema": "^2.1
|
|
47
|
+
"@devpad/api": "^2.2.1",
|
|
48
|
+
"@devpad/schema": "^2.2.1",
|
|
49
49
|
"@types/node": "^20.11.24",
|
|
50
50
|
"bun-types": "latest",
|
|
51
51
|
"chalk": "^5.3.0",
|