@enterprise_search/clients
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -5,3 +5,3 @@ import { JSONObject } from "@itsmworkbench/utils"; | ||
export type SearchResultMaker = (line: any) => SearchResult | undefined; | ||
export declare const composeSearchResultMakers: (makers: SearchResultMaker[]) => SearchResultMaker; | ||
export declare const composeSearchResultMakers: (makers: (SearchResultMaker | undefined)[]) => SearchResultMaker; | ||
export type CommonSearchResult = { | ||
@@ -12,3 +12,3 @@ id: string; | ||
index: string; | ||
status: string; | ||
status?: string; | ||
content: string; | ||
@@ -15,0 +15,0 @@ summary: string; |
@@ -6,3 +6,3 @@ "use strict"; | ||
for (const maker of makers) { | ||
const item = maker(source); | ||
const item = maker?.(source); | ||
if (item) | ||
@@ -9,0 +9,0 @@ return item; |
{ | ||
"name": "@enterprise_search/clients", | ||
"description": "interfaces for the clients", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "dist/index", | ||
@@ -26,4 +26,4 @@ "types": "dist/index", | ||
"@itsmworkbench/utils": "0.3.6", | ||
"@enterprise_search/indexing": "0.0.3", | ||
"@enterprise_search/indexconfig": "0.0.3", | ||
"@enterprise_search/indexing": "0.0.4", | ||
"@enterprise_search/indexconfig": "0.0.4", | ||
"debug": "^4.3.4" | ||
@@ -30,0 +30,0 @@ }, |
4556
+ Added@enterprise_search/indexconfig@0.0.4(transitive)
+ Added@enterprise_search/indexing@0.0.4(transitive)
+ Added@enterprise_search/kleislis@0.0.4(transitive)
- Removed@enterprise_search/indexconfig@0.0.3(transitive)
- Removed@enterprise_search/indexing@0.0.3(transitive)
- Removed@enterprise_search/kleislis@0.0.3(transitive)