@dream-api/sdk 0.1.19 → 0.1.20

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.js CHANGED
@@ -226,6 +226,15 @@ var ClerkManager = class {
226
226
  const ticket = urlParams.get("__clerk_ticket");
227
227
  console.log("[DreamAPI] URL:", window.location.href);
228
228
  console.log("[DreamAPI] Ticket present:", ticket ? "YES" : "NO");
229
+ const sdkDebug = {
230
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
231
+ url: window.location.href,
232
+ hasTicket: !!ticket,
233
+ ticketLength: ticket ? ticket.length : 0,
234
+ signupDebug: localStorage.getItem("dream_signup_debug"),
235
+ signupRedirect: localStorage.getItem("dream_signup_redirect")
236
+ };
237
+ localStorage.setItem("dream_sdk_debug", JSON.stringify(sdkDebug));
229
238
  if (ticket) {
230
239
  for (let i = 0; i < 30; i++) {
231
240
  if (clerk.signIn && clerk.setActive) break;
package/dist/index.mjs CHANGED
@@ -198,6 +198,15 @@ var ClerkManager = class {
198
198
  const ticket = urlParams.get("__clerk_ticket");
199
199
  console.log("[DreamAPI] URL:", window.location.href);
200
200
  console.log("[DreamAPI] Ticket present:", ticket ? "YES" : "NO");
201
+ const sdkDebug = {
202
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
203
+ url: window.location.href,
204
+ hasTicket: !!ticket,
205
+ ticketLength: ticket ? ticket.length : 0,
206
+ signupDebug: localStorage.getItem("dream_signup_debug"),
207
+ signupRedirect: localStorage.getItem("dream_signup_redirect")
208
+ };
209
+ localStorage.setItem("dream_sdk_debug", JSON.stringify(sdkDebug));
201
210
  if (ticket) {
202
211
  for (let i = 0; i < 30; i++) {
203
212
  if (clerk.signIn && clerk.setActive) break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dream-api/sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
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",