@kedaruma/revlm-client 1.0.56 → 1.0.57

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.
@@ -8,7 +8,7 @@ var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@kedaruma/revlm-client",
11
- version: "1.0.56",
11
+ version: "1.0.57",
12
12
  private: false,
13
13
  description: "TypeScript client SDK for talking to the Revlm server replacement for MongoDB Realm.",
14
14
  keywords: [
@@ -478,11 +478,12 @@ var Revlm = class {
478
478
  if (refreshRes.reason === "not_expired") {
479
479
  return this.requestWithRetry(path, method, body, { allowAuthRetry: false, retrying: true });
480
480
  }
481
- this.logDebug("### refresh failed:", {
481
+ const refreshFailed = {
482
482
  reason: refreshRes.reason,
483
483
  status: refreshRes.status,
484
484
  error: refreshRes.error
485
- });
485
+ };
486
+ this.logDebug("### refresh failed:", refreshFailed, JSON.stringify(refreshFailed));
486
487
  if (refreshRes.reason === "no_refresh_secret") {
487
488
  const missingError = new Error("Refresh cookie missing. Provide a cookie-aware fetch implementation for Node/RN.");
488
489
  missingError.revlmReason = "no_refresh_secret";
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ var require_package = __commonJS({
35
35
  "package.json"(exports2, module2) {
36
36
  module2.exports = {
37
37
  name: "@kedaruma/revlm-client",
38
- version: "1.0.56",
38
+ version: "1.0.57",
39
39
  private: false,
40
40
  description: "TypeScript client SDK for talking to the Revlm server replacement for MongoDB Realm.",
41
41
  keywords: [
@@ -521,11 +521,12 @@ var Revlm = class {
521
521
  if (refreshRes.reason === "not_expired") {
522
522
  return this.requestWithRetry(path, method, body, { allowAuthRetry: false, retrying: true });
523
523
  }
524
- this.logDebug("### refresh failed:", {
524
+ const refreshFailed = {
525
525
  reason: refreshRes.reason,
526
526
  status: refreshRes.status,
527
527
  error: refreshRes.error
528
- });
528
+ };
529
+ this.logDebug("### refresh failed:", refreshFailed, JSON.stringify(refreshFailed));
529
530
  if (refreshRes.reason === "no_refresh_secret") {
530
531
  const missingError = new Error("Refresh cookie missing. Provide a cookie-aware fetch implementation for Node/RN.");
531
532
  missingError.revlmReason = "no_refresh_secret";
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  Revlm,
10
10
  RevlmDBDatabase,
11
11
  RevlmUser
12
- } from "./chunk-USEUCPFK.mjs";
12
+ } from "./chunk-OJ3XVULU.mjs";
13
13
  import "./chunk-EBO3CZXG.mjs";
14
14
  export {
15
15
  App,
@@ -35,7 +35,7 @@ var require_package = __commonJS({
35
35
  "package.json"(exports2, module2) {
36
36
  module2.exports = {
37
37
  name: "@kedaruma/revlm-client",
38
- version: "1.0.56",
38
+ version: "1.0.57",
39
39
  private: false,
40
40
  description: "TypeScript client SDK for talking to the Revlm server replacement for MongoDB Realm.",
41
41
  keywords: [
@@ -519,11 +519,12 @@ var Revlm = class {
519
519
  if (refreshRes.reason === "not_expired") {
520
520
  return this.requestWithRetry(path, method, body, { allowAuthRetry: false, retrying: true });
521
521
  }
522
- this.logDebug("### refresh failed:", {
522
+ const refreshFailed = {
523
523
  reason: refreshRes.reason,
524
524
  status: refreshRes.status,
525
525
  error: refreshRes.error
526
- });
526
+ };
527
+ this.logDebug("### refresh failed:", refreshFailed, JSON.stringify(refreshFailed));
527
528
  if (refreshRes.reason === "no_refresh_secret") {
528
529
  const missingError = new Error("Refresh cookie missing. Provide a cookie-aware fetch implementation for Node/RN.");
529
530
  missingError.revlmReason = "no_refresh_secret";
@@ -7,7 +7,7 @@ import {
7
7
  ObjectId,
8
8
  Revlm,
9
9
  RevlmUser
10
- } from "./chunk-USEUCPFK.mjs";
10
+ } from "./chunk-OJ3XVULU.mjs";
11
11
  import "./chunk-EBO3CZXG.mjs";
12
12
  export {
13
13
  App,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kedaruma/revlm-client",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": false,
5
5
  "description": "TypeScript client SDK for talking to the Revlm server replacement for MongoDB Realm.",
6
6
  "keywords": [