@devpad/cli 2.2.0 → 2.2.3
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
|
@@ -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
|
}
|
|
@@ -10605,7 +10606,7 @@ var ApiClient2 = class {
|
|
|
10605
10606
|
tags: new ApiClient({ ...clientOptions, category: "tags" }),
|
|
10606
10607
|
blog: new ApiClient({ ...clientOptions, category: "blog" }),
|
|
10607
10608
|
media: new ApiClient({ ...clientOptions, category: "media" }),
|
|
10608
|
-
pulse: new ApiClient({ ...clientOptions, category: "pulse" })
|
|
10609
|
+
pulse: new ApiClient({ ...clientOptions, base_url: `${base_url}/pulse`, category: "pulse" })
|
|
10609
10610
|
};
|
|
10610
10611
|
}
|
|
10611
10612
|
history() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
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.2.
|
|
48
|
-
"@devpad/schema": "^2.2.
|
|
47
|
+
"@devpad/api": "^2.2.3",
|
|
48
|
+
"@devpad/schema": "^2.2.3",
|
|
49
49
|
"@types/node": "^20.11.24",
|
|
50
50
|
"bun-types": "latest",
|
|
51
51
|
"chalk": "^5.3.0",
|