@aloma.io/integration-sdk 3.5.0 → 3.5.1

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.
@@ -500,12 +500,13 @@ ${text}
500
500
  if (!(this._oauth.noPeriodicTokenRefresh === false)) {
501
501
  this._refreshOAuthToken = setInterval(async () => {
502
502
  try {
503
+ console.log('refreshing oauth token');
503
504
  await theOAuth.periodicRefresh();
504
505
  }
505
506
  catch (e) {
506
507
  console.log("periodic refresh", e);
507
508
  }
508
- }, 4 * 60 * 60 * 15000);
509
+ }, this._oauth.tokenRefreshPeriod || (4 * 60 * 60 * 15000));
509
510
  }
510
511
  }
511
512
  const getBlob = (id) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -28,7 +28,7 @@
28
28
  "@paralleldrive/cuid2": "^2",
29
29
  "@ts-ast-parser/core": "^0.5",
30
30
  "@types/node": "^18",
31
- "commander": "^11",
31
+ "commander": "^12",
32
32
  "dotenv": "*",
33
33
  "express": "^4",
34
34
  "jose": "^5",
@@ -626,12 +626,13 @@ ${text}
626
626
  this._refreshOAuthToken = setInterval(
627
627
  async () => {
628
628
  try {
629
+ console.log('refreshing oauth token')
629
630
  await theOAuth.periodicRefresh();
630
631
  } catch (e) {
631
632
  console.log("periodic refresh", e);
632
633
  }
633
634
  },
634
- 4 * 60 * 60 * 15000,
635
+ this._oauth.tokenRefreshPeriod || (4 * 60 * 60 * 15000),
635
636
  );
636
637
  }
637
638
  }