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.
- package/dist/hooks/index.d.mts +7 -1
- package/dist/hooks/index.d.ts +7 -1
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.mjs +4 -0
- package/package.json +1 -1
package/dist/hooks/index.d.mts
CHANGED
|
@@ -47,6 +47,12 @@ type UseSmartSubscriptionSettings = {
|
|
|
47
47
|
disableLogs?: boolean;
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
declare const useSmartSnapshot: (configs: OnSnapshotConfig[], options?: UseSmartSubscriptionSettings) =>
|
|
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 };
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -47,6 +47,12 @@ type UseSmartSubscriptionSettings = {
|
|
|
47
47
|
disableLogs?: boolean;
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
declare const useSmartSnapshot: (configs: OnSnapshotConfig[], options?: UseSmartSubscriptionSettings) =>
|
|
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 };
|
package/dist/hooks/index.js
CHANGED
|
@@ -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 = {
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -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
|