@dream-api/sdk 0.1.37 → 0.1.38

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/index.d.mts CHANGED
@@ -288,7 +288,7 @@ declare class AuthHelpers {
288
288
  *
289
289
  * @example
290
290
  * ```typescript
291
- * const signupUrl = api.auth.getSignUpUrl({ redirect: '/dashboard' });
291
+ * const signupUrl = api.auth.getSignUpUrl({ redirect: '/choose-plan' });
292
292
  * // Returns: https://sign-up.../signup?pk=pk_xxx&redirect=...
293
293
  * window.location.href = signupUrl;
294
294
  * ```
package/dist/index.d.ts CHANGED
@@ -288,7 +288,7 @@ declare class AuthHelpers {
288
288
  *
289
289
  * @example
290
290
  * ```typescript
291
- * const signupUrl = api.auth.getSignUpUrl({ redirect: '/dashboard' });
291
+ * const signupUrl = api.auth.getSignUpUrl({ redirect: '/choose-plan' });
292
292
  * // Returns: https://sign-up.../signup?pk=pk_xxx&redirect=...
293
293
  * window.location.href = signupUrl;
294
294
  * ```
package/dist/index.js CHANGED
@@ -39,9 +39,9 @@ var DreamAPIException = class extends Error {
39
39
  // src/client.ts
40
40
  var DEFAULT_BASE_URL = "https://api-multi.k-c-sheffield012376.workers.dev";
41
41
  var SIGNUP_URL_TEST = "https://sign-up.k-c-sheffield012376.workers.dev";
42
- var SIGNUP_URL_LIVE = "https://signup.users.panacea-tech.net";
42
+ var SIGNUP_URL_LIVE = "https://signup.users.cerul.org";
43
43
  var CLERK_URL_TEST = "https://composed-blowfish-76.clerk.accounts.dev";
44
- var CLERK_URL_LIVE = "https://clerk.users.panacea-tech.net";
44
+ var CLERK_URL_LIVE = "https://clerk.users.cerul.org";
45
45
  var DreamClient = class {
46
46
  constructor(config) {
47
47
  this.userToken = null;
@@ -185,7 +185,7 @@ var DreamClient = class {
185
185
 
186
186
  // src/clerk.ts
187
187
  var CLERK_TEST_KEY = "pk_test_Y29tcG9zZWQtYmxvd2Zpc2gtNzYuY2xlcmsuYWNjb3VudHMuZGV2JA";
188
- var CLERK_LIVE_KEY = "pk_live_Y2xlcmsudXNlcnMucGFuYWNlYS10ZWNoLm5ldCQ";
188
+ var CLERK_LIVE_KEY = "pk_live_Y2xlcmsudXNlcnMuY2VydWwub3JnJA";
189
189
  function getClerkKey(mode) {
190
190
  return mode === "test" ? CLERK_TEST_KEY : CLERK_LIVE_KEY;
191
191
  }
@@ -467,7 +467,7 @@ var AuthHelpers = class {
467
467
  *
468
468
  * @example
469
469
  * ```typescript
470
- * const signupUrl = api.auth.getSignUpUrl({ redirect: '/dashboard' });
470
+ * const signupUrl = api.auth.getSignUpUrl({ redirect: '/choose-plan' });
471
471
  * // Returns: https://sign-up.../signup?pk=pk_xxx&redirect=...
472
472
  * window.location.href = signupUrl;
473
473
  * ```
package/dist/index.mjs CHANGED
@@ -11,9 +11,9 @@ var DreamAPIException = class extends Error {
11
11
  // src/client.ts
12
12
  var DEFAULT_BASE_URL = "https://api-multi.k-c-sheffield012376.workers.dev";
13
13
  var SIGNUP_URL_TEST = "https://sign-up.k-c-sheffield012376.workers.dev";
14
- var SIGNUP_URL_LIVE = "https://signup.users.panacea-tech.net";
14
+ var SIGNUP_URL_LIVE = "https://signup.users.cerul.org";
15
15
  var CLERK_URL_TEST = "https://composed-blowfish-76.clerk.accounts.dev";
16
- var CLERK_URL_LIVE = "https://clerk.users.panacea-tech.net";
16
+ var CLERK_URL_LIVE = "https://clerk.users.cerul.org";
17
17
  var DreamClient = class {
18
18
  constructor(config) {
19
19
  this.userToken = null;
@@ -157,7 +157,7 @@ var DreamClient = class {
157
157
 
158
158
  // src/clerk.ts
159
159
  var CLERK_TEST_KEY = "pk_test_Y29tcG9zZWQtYmxvd2Zpc2gtNzYuY2xlcmsuYWNjb3VudHMuZGV2JA";
160
- var CLERK_LIVE_KEY = "pk_live_Y2xlcmsudXNlcnMucGFuYWNlYS10ZWNoLm5ldCQ";
160
+ var CLERK_LIVE_KEY = "pk_live_Y2xlcmsudXNlcnMuY2VydWwub3JnJA";
161
161
  function getClerkKey(mode) {
162
162
  return mode === "test" ? CLERK_TEST_KEY : CLERK_LIVE_KEY;
163
163
  }
@@ -439,7 +439,7 @@ var AuthHelpers = class {
439
439
  *
440
440
  * @example
441
441
  * ```typescript
442
- * const signupUrl = api.auth.getSignUpUrl({ redirect: '/dashboard' });
442
+ * const signupUrl = api.auth.getSignUpUrl({ redirect: '/choose-plan' });
443
443
  * // Returns: https://sign-up.../signup?pk=pk_xxx&redirect=...
444
444
  * window.location.href = signupUrl;
445
445
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dream-api/sdk",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Official SDK for Dream API - Auth, billing, and usage tracking in one API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",