@yoamigo.com/cli 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -301,7 +301,7 @@ var deployCommand = new Command4("deploy").description("Upload template to YoAmi
301
301
  "Content-Type": "application/json",
302
302
  "X-API-Key": credentials.apiKey
303
303
  },
304
- body: JSON.stringify(templateBody)
304
+ body: JSON.stringify({ json: templateBody })
305
305
  });
306
306
  } catch (fetchError) {
307
307
  if (verbose) {
@@ -355,9 +355,11 @@ Response body: ${errorText}`));
355
355
  "X-API-Key": credentials.apiKey
356
356
  },
357
357
  body: JSON.stringify({
358
- templateId,
359
- path: relativePath,
360
- content
358
+ json: {
359
+ templateId,
360
+ path: relativePath,
361
+ content
362
+ }
361
363
  })
362
364
  });
363
365
  if (!uploadResponse.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoamigo.com/cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "CLI for creating and managing YoAmigo templates",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",