Comparing version 4.3.6 to 4.4.1
@@ -140,2 +140,6 @@ "use strict"; | ||
const moduleUri = common_1.moduleToUri(module); | ||
if (options === null || options === void 0 ? void 0 : options.withFormData) { | ||
const response = yield request(Consts_1.PUT, `${domainUri}/${moduleUri}/search/context`, Object.assign(Object.assign({}, options), { filters }), options === null || options === void 0 ? void 0 : options.headers); | ||
return response ? response.map(({ entity }) => entity) : []; | ||
} | ||
const response = yield request(Consts_1.PUT, `${domainUri}/${moduleUri}/search`, Object.assign(Object.assign({}, options), { filters }), options === null || options === void 0 ? void 0 : options.headers); | ||
@@ -142,0 +146,0 @@ return response ? response : []; |
@@ -7,2 +7,3 @@ import { Domain, DomainModule, SearchFilter, SearchOptions as BfSearchOptions } from 'bf-types'; | ||
headers?: H; | ||
withFormData?: boolean; | ||
}; | ||
@@ -9,0 +10,0 @@ export interface Api { |
{ | ||
"name": "bf-lib", | ||
"version": "4.3.6", | ||
"version": "4.4.1", | ||
"private": false, | ||
@@ -89,3 +89,3 @@ "description": "the standard client library for block-5 software", | ||
"@types/luxon": "^1.26.4", | ||
"@types/node": "^14.14.41", | ||
"@types/node": "^14.17.32", | ||
"@types/voca": "^1.4.0", | ||
@@ -95,3 +95,3 @@ "@typescript-eslint/eslint-plugin": "^4.22.0", | ||
"@typescript-eslint/parser": "^4.22.0", | ||
"bf-types": "^5.29.22", | ||
"bf-types": "^5.33.0", | ||
"commitizen": "^4.2.2", | ||
@@ -98,0 +98,0 @@ "eslint": "^7.24.0", |
142976
3328