@goatlab/typesense 0.1.5 → 0.1.6

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.
@@ -2,9 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.multiSearch = multiSearch;
4
4
  async function multiSearch(ctx, request) {
5
+ // Apply FQCN transformation to collection names in each search entry
6
+ const transformedRequest = {
7
+ searches: request.searches.map(search => ({
8
+ ...search,
9
+ collection: ctx.fqcn(search.collection),
10
+ })),
11
+ };
5
12
  return await ctx.httpClient.request('/multi_search', {
6
13
  method: 'POST',
7
- body: request,
14
+ body: transformedRequest,
8
15
  });
9
16
  }
10
17
  //# sourceMappingURL=multiSearch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"multiSearch.js","sourceRoot":"","sources":["../../../src/actions/search/multiSearch.ts"],"names":[],"mappings":";;AAMA,kCAaC;AAbM,KAAK,UAAU,WAAW,CAG/B,GAAqB,EACrB,OAAoC;IAEpC,OAAO,MAAM,GAAG,CAAC,UAAU,CAAC,OAAO,CACjC,eAAe,EACf;QACE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,OAAO;KACd,CACF,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"multiSearch.js","sourceRoot":"","sources":["../../../src/actions/search/multiSearch.ts"],"names":[],"mappings":";;AAMA,kCAqBC;AArBM,KAAK,UAAU,WAAW,CAG/B,GAAqB,EACrB,OAAoC;IAEpC,qEAAqE;IACrE,MAAM,kBAAkB,GAAgC;QACtD,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACxC,GAAG,MAAM;YACT,UAAU,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;SACxC,CAAC,CAAC;KACJ,CAAA;IAED,OAAO,MAAM,GAAG,CAAC,UAAU,CAAC,OAAO,CACjC,eAAe,EACf;QACE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,kBAAkB;KACzB,CACF,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@goatlab/typesense",
5
5
  "description": "Modern TypeScript wrapper for Typesense search engine API",
6
6
  "author": "ignacio.cabrera@goatlab.io",
7
- "version": "0.1.5",
7
+ "version": "0.1.6",
8
8
  "private": false,
9
9
  "publishConfig": {
10
10
  "access": "public"