@byline/client 4.11.2 → 4.12.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/dist/search.js +2 -2
- package/package.json +5 -5
package/dist/search.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) Infonomic Company Limited
|
|
7
7
|
*/
|
|
8
|
-
import { assertActorCanPerform, createReadContext, ERR_VALIDATION, getCollectionAdminConfig, MAX_SEARCH_QUERY_LENGTH,
|
|
8
|
+
import { assertActorCanPerform, createReadContext, ERR_VALIDATION, getCollectionAdminConfig, MAX_SEARCH_QUERY_LENGTH, resolveSearchZones, } from '@byline/core';
|
|
9
9
|
import { resolveReadRequestContext, resolveReadSecurityFilters } from './read-context.js';
|
|
10
10
|
/**
|
|
11
11
|
* Authorise (and optionally hydrate) provider hits, per collection:
|
|
@@ -55,7 +55,7 @@ export async function finalizeSearchHits(params) {
|
|
|
55
55
|
if (hydrate) {
|
|
56
56
|
// itemView columns are the projection when the admin config is
|
|
57
57
|
// registered in this runtime; otherwise read the full field set.
|
|
58
|
-
const itemView =
|
|
58
|
+
const itemView = getCollectionAdminConfig(collectionPath)?.itemView;
|
|
59
59
|
const select = itemView != null && itemView.length > 0
|
|
60
60
|
? Array.from(new Set([...itemView.map((c) => String(c.fieldName)), definition.useAsTitle].filter((f) => typeof f === 'string' && f.length > 0)))
|
|
61
61
|
: undefined;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@byline/client",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.12.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.9.0"
|
|
8
8
|
},
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"uuid": "^14.0.1",
|
|
47
|
-
"@byline/auth": "4.
|
|
48
|
-
"@byline/core": "4.
|
|
47
|
+
"@byline/auth": "4.12.0",
|
|
48
|
+
"@byline/core": "4.12.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@biomejs/biome": "2.5.6",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"tsx": "^4.23.1",
|
|
59
59
|
"typescript": "^7.0.2",
|
|
60
60
|
"vitest": "^4.1.10",
|
|
61
|
-
"@byline/
|
|
62
|
-
"@byline/
|
|
61
|
+
"@byline/search-postgres": "4.12.0",
|
|
62
|
+
"@byline/db-postgres": "4.12.0"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public",
|