openhome-cli 0.1.16 → 0.1.17
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/cli.js +6 -4
- package/package.json +1 -1
- package/src/api/client.ts +5 -4
package/dist/cli.js
CHANGED
|
@@ -122,10 +122,12 @@ var ApiClient = class {
|
|
|
122
122
|
if (metadata.personality_id) {
|
|
123
123
|
form.append("personality_id", metadata.personality_id);
|
|
124
124
|
}
|
|
125
|
-
return this.request(
|
|
126
|
-
|
|
127
|
-
body: form
|
|
128
|
-
|
|
125
|
+
return this.request(
|
|
126
|
+
ENDPOINTS.uploadCapability,
|
|
127
|
+
{ method: "POST", body: form },
|
|
128
|
+
true
|
|
129
|
+
// uses JWT
|
|
130
|
+
);
|
|
129
131
|
}
|
|
130
132
|
async listAbilities() {
|
|
131
133
|
const data = await this.request(
|
package/package.json
CHANGED
package/src/api/client.ts
CHANGED
|
@@ -159,10 +159,11 @@ export class ApiClient implements IApiClient {
|
|
|
159
159
|
form.append("personality_id", metadata.personality_id);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
return this.request<UploadAbilityResponse>(
|
|
163
|
-
|
|
164
|
-
body: form,
|
|
165
|
-
|
|
162
|
+
return this.request<UploadAbilityResponse>(
|
|
163
|
+
ENDPOINTS.uploadCapability,
|
|
164
|
+
{ method: "POST", body: form },
|
|
165
|
+
true, // uses JWT
|
|
166
|
+
);
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
async listAbilities(): Promise<ListAbilitiesResponse> {
|