@js-dot/api
Advanced tools
Comparing version 22.165.4 to 22.165.5
@@ -336,3 +336,3 @@ var HttpClientBase = /** @class */ (function () { | ||
while (++current < end) { | ||
response = responseTransformers[current](response, parameters); | ||
response = responseTransformers[current]({ response: response, parameters: parameters, body: body }); | ||
} | ||
@@ -339,0 +339,0 @@ return Promise.resolve(response); |
@@ -342,3 +342,3 @@ (function (global, factory) { | ||
while (++current < end) { | ||
response = responseTransformers[current](response, parameters); | ||
response = responseTransformers[current]({ response: response, parameters: parameters, body: body }); | ||
} | ||
@@ -345,0 +345,0 @@ return Promise.resolve(response); |
@@ -17,4 +17,4 @@ import { HttpClient } from '../interfaces/http-client'; | ||
constructor(client: HttpClient, method?: HttpMethod, path?: string); | ||
constructor(method: HttpMethod, path?: string, option?: Partial<HttpOption>); | ||
constructor(path: string, option?: Partial<HttpOption>); | ||
constructor(method: HttpMethod, path?: string, option?: Partial<HttpOption>); | ||
protected _getChildApi(method: HttpMethod, path: string, option?: Partial<HttpOption>): HttpOperator<null, HttpRequestBody, any>; | ||
@@ -21,0 +21,0 @@ /** |
@@ -158,13 +158,13 @@ import { toFilterString } from '@js-dot/core'; | ||
return function (http) { | ||
http.pipe($parameters(function (parameters) { | ||
var _a = parameters, $filter = _a.$filter, $baseFilter = _a.$baseFilter; | ||
return http.pipe($parameters(function (_a) { | ||
var parameters = _a.parameters; | ||
var _b = parameters, $filter = _b.$filter, $filterBase = _b.$filterBase; | ||
if (typeof $filter === 'string') { | ||
parameters['$filter'] = toFilterString($filter); | ||
} | ||
if (typeof $baseFilter === 'string') { | ||
parameters['$baseFilter'] = toFilterString($baseFilter); | ||
if (typeof $filterBase === 'string') { | ||
parameters['$baseFilter'] = toFilterString($filterBase); | ||
} | ||
return parameters; | ||
})); | ||
return http; | ||
}; | ||
@@ -190,3 +190,4 @@ } | ||
var IS_ARRAY = Array.isArray; | ||
function fixArrayToList(response) { | ||
function fixArrayToList(_a) { | ||
var response = _a.response; | ||
if (IS_ARRAY(response)) { | ||
@@ -193,0 +194,0 @@ response = { |
@@ -162,13 +162,13 @@ (function (global, factory) { | ||
return function (http) { | ||
http.pipe($parameters(function (parameters) { | ||
var _a = parameters, $filter = _a.$filter, $baseFilter = _a.$baseFilter; | ||
return http.pipe($parameters(function (_a) { | ||
var parameters = _a.parameters; | ||
var _b = parameters, $filter = _b.$filter, $filterBase = _b.$filterBase; | ||
if (typeof $filter === 'string') { | ||
parameters['$filter'] = core.toFilterString($filter); | ||
} | ||
if (typeof $baseFilter === 'string') { | ||
parameters['$baseFilter'] = core.toFilterString($baseFilter); | ||
if (typeof $filterBase === 'string') { | ||
parameters['$baseFilter'] = core.toFilterString($filterBase); | ||
} | ||
return parameters; | ||
})); | ||
return http; | ||
}; | ||
@@ -194,3 +194,4 @@ } | ||
var IS_ARRAY = Array.isArray; | ||
function fixArrayToList(response) { | ||
function fixArrayToList(_a) { | ||
var response = _a.response; | ||
if (IS_ARRAY(response)) { | ||
@@ -197,0 +198,0 @@ response = { |
{ | ||
"name": "@js-dot/api", | ||
"description": "HTTP, WebSocket, SSE, Worker Interface Design Pattern", | ||
"version": "22.165.4", | ||
"version": "22.165.5", | ||
"author": "protyliss@gmail.com", | ||
@@ -6,0 +6,0 @@ "license": "ISC", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
133346
2133