@back23/promptly-sdk 2.14.1 → 2.14.2
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 +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +3 -10
- package/dist/index.mjs +3 -10
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -294,13 +294,6 @@ var HttpClient = class {
|
|
|
294
294
|
};
|
|
295
295
|
|
|
296
296
|
// src/resources/auth.ts
|
|
297
|
-
function transformAuthResponse(response) {
|
|
298
|
-
return {
|
|
299
|
-
...response,
|
|
300
|
-
// Add member alias for backward compatibility (same as user)
|
|
301
|
-
member: response.member ?? response.user
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
297
|
var AuthResource = class {
|
|
305
298
|
constructor(http) {
|
|
306
299
|
this.http = http;
|
|
@@ -313,7 +306,7 @@ var AuthResource = class {
|
|
|
313
306
|
if (response.token) {
|
|
314
307
|
this.http.setToken(response.token);
|
|
315
308
|
}
|
|
316
|
-
return
|
|
309
|
+
return response;
|
|
317
310
|
}
|
|
318
311
|
/**
|
|
319
312
|
* Register new member
|
|
@@ -323,7 +316,7 @@ var AuthResource = class {
|
|
|
323
316
|
if (response.token) {
|
|
324
317
|
this.http.setToken(response.token);
|
|
325
318
|
}
|
|
326
|
-
return
|
|
319
|
+
return response;
|
|
327
320
|
}
|
|
328
321
|
/**
|
|
329
322
|
* Logout current user
|
|
@@ -379,7 +372,7 @@ var AuthResource = class {
|
|
|
379
372
|
if (response.token) {
|
|
380
373
|
this.http.setToken(response.token);
|
|
381
374
|
}
|
|
382
|
-
return
|
|
375
|
+
return response;
|
|
383
376
|
}
|
|
384
377
|
/**
|
|
385
378
|
* Set token manually (e.g., from localStorage)
|
package/dist/index.mjs
CHANGED
|
@@ -266,13 +266,6 @@ var HttpClient = class {
|
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
// src/resources/auth.ts
|
|
269
|
-
function transformAuthResponse(response) {
|
|
270
|
-
return {
|
|
271
|
-
...response,
|
|
272
|
-
// Add member alias for backward compatibility (same as user)
|
|
273
|
-
member: response.member ?? response.user
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
269
|
var AuthResource = class {
|
|
277
270
|
constructor(http) {
|
|
278
271
|
this.http = http;
|
|
@@ -285,7 +278,7 @@ var AuthResource = class {
|
|
|
285
278
|
if (response.token) {
|
|
286
279
|
this.http.setToken(response.token);
|
|
287
280
|
}
|
|
288
|
-
return
|
|
281
|
+
return response;
|
|
289
282
|
}
|
|
290
283
|
/**
|
|
291
284
|
* Register new member
|
|
@@ -295,7 +288,7 @@ var AuthResource = class {
|
|
|
295
288
|
if (response.token) {
|
|
296
289
|
this.http.setToken(response.token);
|
|
297
290
|
}
|
|
298
|
-
return
|
|
291
|
+
return response;
|
|
299
292
|
}
|
|
300
293
|
/**
|
|
301
294
|
* Logout current user
|
|
@@ -351,7 +344,7 @@ var AuthResource = class {
|
|
|
351
344
|
if (response.token) {
|
|
352
345
|
this.http.setToken(response.token);
|
|
353
346
|
}
|
|
354
|
-
return
|
|
347
|
+
return response;
|
|
355
348
|
}
|
|
356
349
|
/**
|
|
357
350
|
* Set token manually (e.g., from localStorage)
|