akeyless-client-commons 1.1.8 → 1.1.9

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.
@@ -47,6 +47,12 @@ type UseSmartSubscriptionSettings = {
47
47
  disableLogs?: boolean;
48
48
  };
49
49
  };
50
- declare const useSmartSnapshot: (configs: OnSnapshotConfig[], options?: UseSmartSubscriptionSettings) => void;
50
+ declare const useSmartSnapshot: (configs: OnSnapshotConfig[], options?: UseSmartSubscriptionSettings) => {
51
+ groupedConfig: {
52
+ configForDb: any[];
53
+ configForCache: any[];
54
+ };
55
+ socketConnected: boolean;
56
+ };
51
57
 
52
58
  export { useDeepCompareEffect, useDeepCompareMemo, useDocumentTitle, useSafeEffect, useSetUserCountry, useSmartSnapshot, useSnapshotBulk, useSocketSubscription };
@@ -47,6 +47,12 @@ type UseSmartSubscriptionSettings = {
47
47
  disableLogs?: boolean;
48
48
  };
49
49
  };
50
- declare const useSmartSnapshot: (configs: OnSnapshotConfig[], options?: UseSmartSubscriptionSettings) => void;
50
+ declare const useSmartSnapshot: (configs: OnSnapshotConfig[], options?: UseSmartSubscriptionSettings) => {
51
+ groupedConfig: {
52
+ configForDb: any[];
53
+ configForCache: any[];
54
+ };
55
+ socketConnected: boolean;
56
+ };
51
57
 
52
58
  export { useDeepCompareEffect, useDeepCompareMemo, useDocumentTitle, useSafeEffect, useSetUserCountry, useSmartSnapshot, useSnapshotBulk, useSocketSubscription };
@@ -1092,6 +1092,10 @@ var useSmartSnapshot = function(configs, options) {
1092
1092
  ]);
1093
1093
  useSnapshotBulk(groupedConfig.configForDb, options === null || options === void 0 ? void 0 : options.label, options === null || options === void 0 ? void 0 : options.settings);
1094
1094
  useSocketSubscription(groupedConfig.configForCache);
1095
+ return {
1096
+ groupedConfig: groupedConfig,
1097
+ socketConnected: socketServiceInstance.isConnected()
1098
+ };
1095
1099
  };
1096
1100
  // Annotate the CommonJS export names for ESM import in node:
1097
1101
  0 && (module.exports = {
@@ -998,6 +998,10 @@ var useSmartSnapshot = function(configs, options) {
998
998
  ]);
999
999
  useSnapshotBulk(groupedConfig.configForDb, options === null || options === void 0 ? void 0 : options.label, options === null || options === void 0 ? void 0 : options.settings);
1000
1000
  useSocketSubscription(groupedConfig.configForCache);
1001
+ return {
1002
+ groupedConfig: groupedConfig,
1003
+ socketConnected: socketServiceInstance.isConnected()
1004
+ };
1001
1005
  };
1002
1006
  export { useDeepCompareEffect, useDeepCompareMemo, useDocumentTitle, useSafeEffect, useSetUserCountry, useSmartSnapshot, useSnapshotBulk, useSocketSubscription };
1003
1007
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",