tthr 0.0.7 → 0.0.8

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 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60,7 +60,7 @@ import ora from "ora";
60
60
  import fs2 from "fs-extra";
61
61
  import path2 from "path";
62
62
  var isDev = process.env.NODE_ENV === "development" || process.env.TETHER_DEV === "true";
63
- var API_URL = isDev ? "http://localhost:3001/api/v1" : "https://tthr.io/api/v1";
63
+ var API_URL = isDev ? "http://localhost:3001/api/v1" : "https://tether-api.strands.gg/api/v1";
64
64
  async function deployCommand(options) {
65
65
  const credentials = await requireAuth();
66
66
  const configPath = path2.resolve(process.cwd(), "tether.config.ts");
@@ -116,7 +116,7 @@ async function deploySchemaToServer(projectId, token, dryRun) {
116
116
  }
117
117
  const sql = generateSchemaSQL(tables);
118
118
  spinner.text = "Deploying schema...";
119
- const response = await fetch(`${API_URL}/${projectId}/deploy/schema`, {
119
+ const response = await fetch(`${API_URL}/projects/${projectId}/deploy/schema`, {
120
120
  method: "POST",
121
121
  headers: {
122
122
  "Content-Type": "application/json",
@@ -173,7 +173,7 @@ async function deployFunctionsToServer(projectId, token, dryRun) {
173
173
  return;
174
174
  }
175
175
  spinner.text = "Deploying functions...";
176
- const response = await fetch(`${API_URL}/${projectId}/deploy/functions`, {
176
+ const response = await fetch(`${API_URL}/projects/${projectId}/deploy/functions`, {
177
177
  method: "POST",
178
178
  headers: {
179
179
  "Content-Type": "application/json",
@@ -355,7 +355,7 @@ function parseFunctions(moduleName, source) {
355
355
 
356
356
  // src/commands/init.ts
357
357
  var isDev2 = process.env.NODE_ENV === "development" || process.env.TETHER_DEV === "true";
358
- var API_URL2 = isDev2 ? "http://localhost:3001/api/v1" : "https://tthr.io/api/v1";
358
+ var API_URL2 = isDev2 ? "http://localhost:3001/api/v1" : "https://tether-api.strands.gg/api/v1";
359
359
  async function getLatestVersion(packageName) {
360
360
  try {
361
361
  const response = await fetch(`https://registry.npmjs.org/${packageName}/latest`);
@@ -820,7 +820,7 @@ export const remove = mutation({
820
820
  );
821
821
  const envContent = `# Tether Configuration
822
822
  TETHER_PROJECT_ID=${projectId}
823
- TETHER_URL=${isDev2 ? "http://localhost:3001" : "https://tthr.io"}
823
+ TETHER_URL=${isDev2 ? "http://localhost:3001" : "https://tether-api.strands.gg"}
824
824
  TETHER_API_KEY=${apiKey}
825
825
  `;
826
826
  const envPath = path3.join(projectPath, ".env");
@@ -1696,7 +1696,7 @@ import ora6 from "ora";
1696
1696
  import os from "os";
1697
1697
  var isDev3 = process.env.NODE_ENV === "development" || process.env.TETHER_DEV === "true";
1698
1698
  var API_URL3 = isDev3 ? "http://localhost:3001/api/v1" : "https://tether-api.strands.gg/api/v1";
1699
- var AUTH_URL = isDev3 ? "http://localhost:3000/cli" : "https://tether.strands.gg/cli";
1699
+ var AUTH_URL = isDev3 ? "http://localhost:3000/cli" : "https://tthr.io/cli";
1700
1700
  async function loginCommand() {
1701
1701
  console.log(chalk7.bold("\u26A1 Login to Tether\n"));
1702
1702
  const existing = await getCredentials();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tthr",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Tether CLI - project scaffolding, migrations, and deployment",
5
5
  "type": "module",
6
6
  "bin": {