akeyless-client-commons 1.1.17-test.4 → 1.1.17-test.5

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.
@@ -980,10 +980,13 @@ var useSocketSubscription = function(configs, label, settings) {
980
980
  }).join(", ")));
981
981
  }
982
982
  } else {
983
- socketServiceInstance.getSocketInstance();
984
- if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
985
- console.log("==> ".concat(label || "Cache snapshots", " started... "));
986
- }
983
+ auth.currentUser.getIdToken().then(function(token) {
984
+ socketServiceInstance.setAuthToken(token);
985
+ socketServiceInstance.getSocketInstance();
986
+ if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
987
+ console.log("==> ".concat(label || "Cache snapshots", " started... "));
988
+ }
989
+ });
987
990
  }
988
991
  var uiOnConnect = function() {
989
992
  setSocketConnected(true);
@@ -886,10 +886,13 @@ var useSocketSubscription = function(configs, label, settings) {
886
886
  }).join(", ")));
887
887
  }
888
888
  } else {
889
- socketServiceInstance.getSocketInstance();
890
- if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
891
- console.log("==> ".concat(label || "Cache snapshots", " started... "));
892
- }
889
+ auth.currentUser.getIdToken().then(function(token) {
890
+ socketServiceInstance.setAuthToken(token);
891
+ socketServiceInstance.getSocketInstance();
892
+ if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
893
+ console.log("==> ".concat(label || "Cache snapshots", " started... "));
894
+ }
895
+ });
893
896
  }
894
897
  var uiOnConnect = function() {
895
898
  setSocketConnected(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.1.17-test.4",
3
+ "version": "1.1.17-test.5",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",