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 +2 -2
- package/dist/oss/index.js.map +1 -1
- package/dist/oss/index.mjs +2 -2
- package/dist/oss/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/oss/index.mjs
CHANGED
|
@@ -1350,12 +1350,12 @@ var RedisDB = class {
|
|
|
1350
1350
|
console.log("Connected to Redis");
|
|
1351
1351
|
const modulesResponse = await this.client.moduleList();
|
|
1352
1352
|
const hasSearch = modulesResponse.some((module) => {
|
|
1353
|
-
var _a2;
|
|
1354
1353
|
const moduleMap = /* @__PURE__ */ new Map();
|
|
1355
1354
|
for (let i = 0; i < module.length; i += 2) {
|
|
1356
1355
|
moduleMap.set(module[i], module[i + 1]);
|
|
1357
1356
|
}
|
|
1358
|
-
|
|
1357
|
+
const moduleName = moduleMap.get("name");
|
|
1358
|
+
return (moduleName == null ? void 0 : moduleName.toLowerCase()) === "search" || (moduleName == null ? void 0 : moduleName.toLowerCase()) === "searchlight";
|
|
1359
1359
|
});
|
|
1360
1360
|
if (!hasSearch) {
|
|
1361
1361
|
throw new Error(
|