learn-secrets-sdk 1.11.12 → 1.11.14

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.
@@ -47,7 +47,7 @@
47
47
  this.rateLimitInfo = null;
48
48
  this.appId = options.appId || null;
49
49
  this.token = options.token || options.sessionToken || null;
50
- this.baseUrl = options.baseUrl || "https://ctklearn.carsontkempf.workers.dev";
50
+ this.baseUrl = options.baseUrl || "https://cloudprototype.org";
51
51
  this.timeout = options.timeout || 3e4;
52
52
  this.retryOn429 = options.retryOn429 !== void 0 ? options.retryOn429 : true;
53
53
  this.zeroConfigMode = !this.appId && !this.token;
@@ -178,7 +178,7 @@ async function getWindowsId() {
178
178
  var SecretsManagement = class {
179
179
  constructor(options) {
180
180
  this.appId = options.appId;
181
- this.baseUrl = options.baseUrl || "https://ctklearn.carsontkempf.workers.dev";
181
+ this.baseUrl = options.baseUrl || "https://cloudprototype.org";
182
182
  this.timeout = options.timeout || 3e4;
183
183
  }
184
184
  /**
@@ -444,7 +444,7 @@ Log in on ${this.baseUrl}`);
444
444
  // src/cli/commands/login.ts
445
445
  async function loginCommand(options = {}) {
446
446
  console.log("Authenticating with Learn Secrets...\n");
447
- const baseUrl = options.baseUrl || "https://ctklearn.carsontkempf.workers.dev";
447
+ const baseUrl = options.baseUrl || "https://cloudprototype.org";
448
448
  const mgmt = new SecretsManagement({
449
449
  appId: "temp",
450
450
  // Will be set after login
@@ -471,7 +471,7 @@ Logged in as: ${result.user}`);
471
471
  const { projects } = await projectsResponse.json();
472
472
  if (projects.length === 0) {
473
473
  console.log("\nNo projects found.");
474
- console.log("Create a project at: https://ctklearn.carsontkempf.workers.dev/dashboard");
474
+ console.log("Create a project at: https://cloudprototype.org/dashboard");
475
475
  console.log("\nAfter creating a project, run: learn-secrets login");
476
476
  return;
477
477
  }
@@ -764,7 +764,7 @@ Onboarding site for project: ${projectId}`);
764
764
  console.log(` - ${failure.name}: ${failure.error}`);
765
765
  }
766
766
  }
767
- const dashboardUrl = options.baseUrl || "https://ctklearn.carsontkempf.workers.dev";
767
+ const dashboardUrl = options.baseUrl || "https://cloudprototype.org";
768
768
  console.log("\nYour site is ready!");
769
769
  console.log("\nAdd to your static site code:");
770
770
  console.log(" const sdk = new SecretsSDK();");
@@ -930,7 +930,7 @@ Deploying secrets to project: ${config.project}`);
930
930
  console.log(` - ${failure.name}: ${failure.error}`);
931
931
  }
932
932
  }
933
- const dashboardUrl = options.baseUrl || "https://ctklearn.carsontkempf.workers.dev";
933
+ const dashboardUrl = options.baseUrl || "https://cloudprototype.org";
934
934
  console.log("\nSecrets deployed successfully!");
935
935
  console.log(`
936
936
  View your secrets in the dashboard:`);
package/dist/index.d.mts CHANGED
@@ -12,7 +12,7 @@ interface SecretsSDKOptions {
12
12
  sessionToken?: string;
13
13
  /**
14
14
  * Base URL of the proxy server
15
- * Default: https://ctklearn.carsontkempf.workers.dev
15
+ * Default: https://cloudprototype.org
16
16
  */
17
17
  baseUrl?: string;
18
18
  timeout?: number;
package/dist/index.mjs CHANGED
@@ -52,7 +52,7 @@ var SecretsSDK = class {
52
52
  this.rateLimitInfo = null;
53
53
  this.appId = options.appId || null;
54
54
  this.token = options.token || options.sessionToken || null;
55
- this.baseUrl = options.baseUrl || "https://ctklearn.carsontkempf.workers.dev";
55
+ this.baseUrl = options.baseUrl || "https://cloudprototype.org";
56
56
  this.timeout = options.timeout || 3e4;
57
57
  this.retryOn429 = options.retryOn429 !== void 0 ? options.retryOn429 : true;
58
58
  this.zeroConfigMode = !this.appId && !this.token;
@@ -458,7 +458,7 @@ async function getWindowsId() {
458
458
  var SecretsManagement = class {
459
459
  constructor(options) {
460
460
  this.appId = options.appId;
461
- this.baseUrl = options.baseUrl || "https://ctklearn.carsontkempf.workers.dev";
461
+ this.baseUrl = options.baseUrl || "https://cloudprototype.org";
462
462
  this.timeout = options.timeout || 3e4;
463
463
  }
464
464
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "learn-secrets-sdk",
3
- "version": "1.11.12",
3
+ "version": "1.11.14",
4
4
  "description": "Secrets management SDK for static sites with Learn platform",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",