@candlerip/shared 0.0.124 → 0.0.127

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.
@@ -148,6 +148,11 @@ export const CacheWorker = (environmentMode, url, password, options) => {
148
148
  customError: composeCustomError('Error get data by object keys from Redis', { err }),
149
149
  };
150
150
  }
151
+ if (data.some((item) => item === null)) {
152
+ return {
153
+ customError: composeCustomError('Error get data by object keys from Redis', { data }),
154
+ };
155
+ }
151
156
  return {
152
157
  data: data.reduce((acc, curr, index) => ({
153
158
  ...acc,
@@ -162,7 +167,8 @@ export const CacheWorker = (environmentMode, url, password, options) => {
162
167
  return { customError };
163
168
  }
164
169
  try {
165
- await client.hSet(key, data);
170
+ await client.del(key);
171
+ await _client.json.set(key, '$', data);
166
172
  }
167
173
  catch (err) {
168
174
  return {
@@ -15,5 +15,6 @@ export const filterPageTranslationCodes = (variant, options) => PAGE_TRANSLATION
15
15
  if (isPageMenu(variant) && code === `pageMenu.${variant}`) {
16
16
  return false;
17
17
  }
18
+ return true;
18
19
  }
19
20
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared",
3
- "version": "0.0.124",
3
+ "version": "0.0.127",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "=22.19.0"