learn-secrets-sdk 1.11.13 → 1.11.15
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/browser-global.global.js +1 -1
- package/dist/cli/index.mjs +5 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -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://
|
|
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;
|
package/dist/cli/index.mjs
CHANGED
|
@@ -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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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
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://
|
|
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://
|
|
461
|
+
this.baseUrl = options.baseUrl || "https://cloudprototype.org";
|
|
462
462
|
this.timeout = options.timeout || 3e4;
|
|
463
463
|
}
|
|
464
464
|
/**
|