akeyless-client-commons 1.1.17-test.4 → 1.1.17-test.6
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/hooks/index.js +8 -4
- package/dist/hooks/index.mjs +8 -4
- package/package.json +1 -1
package/dist/hooks/index.js
CHANGED
|
@@ -980,10 +980,14 @@ var useSocketSubscription = function(configs, label, settings) {
|
|
|
980
980
|
}).join(", ")));
|
|
981
981
|
}
|
|
982
982
|
} else {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
983
|
+
var _auth_currentUser;
|
|
984
|
+
auth === null || auth === void 0 ? void 0 : (_auth_currentUser = auth.currentUser) === null || _auth_currentUser === void 0 ? void 0 : _auth_currentUser.getIdToken().then(function(token) {
|
|
985
|
+
socketServiceInstance.setAuthToken(token);
|
|
986
|
+
socketServiceInstance.getSocketInstance();
|
|
987
|
+
if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
|
|
988
|
+
console.log("==> ".concat(label || "Cache snapshots", " started... "));
|
|
989
|
+
}
|
|
990
|
+
});
|
|
987
991
|
}
|
|
988
992
|
var uiOnConnect = function() {
|
|
989
993
|
setSocketConnected(true);
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -886,10 +886,14 @@ var useSocketSubscription = function(configs, label, settings) {
|
|
|
886
886
|
}).join(", ")));
|
|
887
887
|
}
|
|
888
888
|
} else {
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
889
|
+
var _auth_currentUser;
|
|
890
|
+
auth === null || auth === void 0 ? void 0 : (_auth_currentUser = auth.currentUser) === null || _auth_currentUser === void 0 ? void 0 : _auth_currentUser.getIdToken().then(function(token) {
|
|
891
|
+
socketServiceInstance.setAuthToken(token);
|
|
892
|
+
socketServiceInstance.getSocketInstance();
|
|
893
|
+
if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
|
|
894
|
+
console.log("==> ".concat(label || "Cache snapshots", " started... "));
|
|
895
|
+
}
|
|
896
|
+
});
|
|
893
897
|
}
|
|
894
898
|
var uiOnConnect = function() {
|
|
895
899
|
setSocketConnected(true);
|