@punks/backend-entity-manager 0.0.476 → 0.0.478
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/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/actions.d.ts +3 -2
- package/dist/cjs/types/actions/search.d.ts +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/actions.d.ts +3 -2
- package/dist/esm/types/actions/search.d.ts +1 -1
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -668,7 +668,8 @@ class EntitiesSearchAction {
|
|
|
668
668
|
const results = await searchQuery.execute(request, options);
|
|
669
669
|
const converter = this.services.resolveConverter();
|
|
670
670
|
return {
|
|
671
|
-
items: await backendCore.mapAsync(results.items, async (x) => ((await converter?.
|
|
671
|
+
items: await backendCore.mapAsync(results.items, async (x) => ((await (options?.converter?.(x) ?? converter?.toListItemDto(x))) ??
|
|
672
|
+
x)),
|
|
672
673
|
paging: results.paging,
|
|
673
674
|
childrenMap: results.childrenMap,
|
|
674
675
|
facets: results.facets,
|