@7365admin1/module-hygiene 4.19.0 → 4.20.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @7365admin1/module-hygiene
2
2
 
3
+ ## 4.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Update module hygiene
8
+
3
9
  ## 4.19.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -4823,7 +4823,7 @@ function useSupplyRepository() {
4823
4823
  throw new import_node_server_utils22.BadRequestError("Invalid site ID format.");
4824
4824
  }
4825
4825
  if (search) {
4826
- query.$text = { $search: search };
4826
+ query.name = { $regex: search, $options: "i" };
4827
4827
  cacheOptions.search = search;
4828
4828
  }
4829
4829
  const cacheKey = (0, import_node_server_utils22.makeCacheKey)(namespace_collection, cacheOptions);
@@ -5551,7 +5551,7 @@ function useCheckOutItemRepository() {
5551
5551
  throw new import_node_server_utils29.BadRequestError("Invalid site ID format.");
5552
5552
  }
5553
5553
  if (search) {
5554
- query.$text = { $search: search };
5554
+ query.supplyName = { $regex: search, $options: "i" };
5555
5555
  cacheOptions.search = search;
5556
5556
  }
5557
5557
  const cacheKey = (0, import_node_server_utils29.makeCacheKey)(namespace_collection, cacheOptions);