@yoamigo.com/cli 0.1.3 → 0.1.4

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -71,7 +71,7 @@ var loginCommand = new Command("login").description("Authenticate with your API
71
71
  }
72
72
  const spinner = ora("Authenticating...").start();
73
73
  try {
74
- const response = await fetch(`${API_BASE_URL}/trpc/developer.validateApiKey?input=${encodeURIComponent(JSON.stringify({ apiKey }))}`, {
74
+ const response = await fetch(`${API_BASE_URL}/api/trpc/developer.validateApiKey?input=${encodeURIComponent(JSON.stringify({ apiKey }))}`, {
75
75
  method: "GET",
76
76
  headers: {
77
77
  "Content-Type": "application/json"
@@ -265,7 +265,7 @@ var deployCommand = new Command4("deploy").description("Upload template to YoAmi
265
265
  throw new Error("No files found to upload");
266
266
  }
267
267
  spinner.text = `Uploading ${files.length} files...`;
268
- const templateResponse = await fetch(`${API_BASE_URL2}/trpc/developer.createOrUpdateTemplate`, {
268
+ const templateResponse = await fetch(`${API_BASE_URL2}/api/trpc/developer.createOrUpdateTemplate`, {
269
269
  method: "POST",
270
270
  headers: {
271
271
  "Content-Type": "application/json",
@@ -290,7 +290,7 @@ var deployCommand = new Command4("deploy").description("Upload template to YoAmi
290
290
  for (const file of files) {
291
291
  const relativePath = path4.relative(process.cwd(), file);
292
292
  const content = await fs4.readFile(file, "utf-8");
293
- const uploadResponse = await fetch(`${API_BASE_URL2}/trpc/developer.uploadTemplateFile`, {
293
+ const uploadResponse = await fetch(`${API_BASE_URL2}/api/trpc/developer.uploadTemplateFile`, {
294
294
  method: "POST",
295
295
  headers: {
296
296
  "Content-Type": "application/json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoamigo.com/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for creating and managing YoAmigo templates",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",