@atscript/moost-mongo 0.0.26 → 0.0.27

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/index.cjs CHANGED
@@ -296,7 +296,7 @@ else pipeline.push({ $limit: 1e3 });
296
296
  const parsed = (0, urlql.parseUrlql)(query);
297
297
  const error = await this.validateUrlql(parsed, "pages");
298
298
  if (error) return error;
299
- const search = this.prepareSearch(parsed.controls.$search, parsed.controls.$index);
299
+ const search = await this.prepareSearch(parsed.controls.$search, parsed.controls.$index);
300
300
  if (typeof search === "string") return new __moostjs_event_http.HttpError(400, search);
301
301
  const controls = parsed.controls;
302
302
  const page = Math.max(Number(controls.$page || 1), 1);
package/dist/index.mjs CHANGED
@@ -272,7 +272,7 @@ else pipeline.push({ $limit: 1e3 });
272
272
  const parsed = parseUrlql(query);
273
273
  const error = await this.validateUrlql(parsed, "pages");
274
274
  if (error) return error;
275
- const search = this.prepareSearch(parsed.controls.$search, parsed.controls.$index);
275
+ const search = await this.prepareSearch(parsed.controls.$search, parsed.controls.$index);
276
276
  if (typeof search === "string") return new HttpError(400, search);
277
277
  const controls = parsed.controls;
278
278
  const page = Math.max(Number(controls.$page || 1), 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/moost-mongo",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "Atscript Mongo for Moost.",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -44,8 +44,8 @@
44
44
  "@moostjs/event-http": "^0.5.32",
45
45
  "mongodb": "^6.17.0",
46
46
  "moost": "^0.5.32",
47
- "@atscript/mongo": "^0.0.26",
48
- "@atscript/typescript": "^0.0.26"
47
+ "@atscript/mongo": "^0.0.27",
48
+ "@atscript/typescript": "^0.0.27"
49
49
  },
50
50
  "scripts": {
51
51
  "pub": "pnpm publish --access public",