mem0ai 2.1.36 → 2.1.37

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/oss/index.js CHANGED
@@ -1410,12 +1410,12 @@ var RedisDB = class {
1410
1410
  console.log("Connected to Redis");
1411
1411
  const modulesResponse = await this.client.moduleList();
1412
1412
  const hasSearch = modulesResponse.some((module2) => {
1413
- var _a2;
1414
1413
  const moduleMap = /* @__PURE__ */ new Map();
1415
1414
  for (let i = 0; i < module2.length; i += 2) {
1416
1415
  moduleMap.set(module2[i], module2[i + 1]);
1417
1416
  }
1418
- return ((_a2 = moduleMap.get("name")) == null ? void 0 : _a2.toLowerCase()) === "search";
1417
+ const moduleName = moduleMap.get("name");
1418
+ return (moduleName == null ? void 0 : moduleName.toLowerCase()) === "search" || (moduleName == null ? void 0 : moduleName.toLowerCase()) === "searchlight";
1419
1419
  });
1420
1420
  if (!hasSearch) {
1421
1421
  throw new Error(