@enterprise_search/indexing
Advanced tools
Comparing version
@@ -21,2 +21,3 @@ import { NameAnd } from "@laoban/utils"; | ||
textResponse?: boolean; | ||
return404AsUndefined?: boolean; | ||
}; | ||
@@ -23,0 +24,0 @@ export declare function callFetch(fetchFn: FetchFn, url: string, options?: FetchFnOptions, config?: CallFetchOptions): Promise<any>; |
@@ -35,2 +35,4 @@ "use strict"; | ||
const resp = await fetchFn(url, options); | ||
if (resp.status === 404 && config?.return404AsUndefined) | ||
return undefined; | ||
if (resp.ok) | ||
@@ -37,0 +39,0 @@ return textResponse ? resp.text() : resp.json(); |
{ | ||
"name": "@enterprise_search/indexing", | ||
"description": "general code to help with indexing", | ||
"version": "0.8.66", | ||
"version": "0.8.67", | ||
"main": "dist/index", | ||
@@ -26,5 +26,5 @@ "types": "dist/index", | ||
"@itsmworkbench/utils": "0.3.12", | ||
"@enterprise_search/fetchfn": "0.8.66", | ||
"@enterprise_search/indexconfig": "0.8.66", | ||
"@enterprise_search/kleislis": "0.8.66", | ||
"@enterprise_search/fetchfn": "0.8.67", | ||
"@enterprise_search/indexconfig": "0.8.67", | ||
"@enterprise_search/kleislis": "0.8.67", | ||
"debug": "^4.3.4" | ||
@@ -31,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
140442
0.14%1781
0.17%4
33.33%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed