@stemy/ngx-utils 19.5.16 → 19.5.18
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/fesm2022/stemy-ngx-utils.mjs +6 -4
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/helper-types.d.ts +4 -0
- package/ngx-utils/ngx-utils.imports.d.ts +2 -2
- package/ngx-utils/services/api.service.d.ts +1 -1
- package/ngx-utils/services/base-http.service.d.ts +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -2851,9 +2851,9 @@ class BaseHttpService {
|
|
|
2851
2851
|
}, options), "POST", body);
|
|
2852
2852
|
return this.toPromise(url, options, listener);
|
|
2853
2853
|
}
|
|
2854
|
-
listPromise(url,
|
|
2854
|
+
listPromise(url, options) {
|
|
2855
2855
|
return new Promise(resolve => {
|
|
2856
|
-
this.getPromise(url,
|
|
2856
|
+
this.getPromise(url, options).then(data => {
|
|
2857
2857
|
if (ObjectUtils.isArray(data)) {
|
|
2858
2858
|
resolve({
|
|
2859
2859
|
total: data.length,
|
|
@@ -3250,8 +3250,10 @@ class ApiService extends BaseHttpService {
|
|
|
3250
3250
|
upload(url, body, listener, options) {
|
|
3251
3251
|
return this.uploadPromise(url, body, listener, options);
|
|
3252
3252
|
}
|
|
3253
|
-
list(url, params) {
|
|
3254
|
-
|
|
3253
|
+
list(url, params, options) {
|
|
3254
|
+
options = options || {};
|
|
3255
|
+
options.params = Object.assign(options.params || {}, params || {});
|
|
3256
|
+
return this.listPromise(url, options);
|
|
3255
3257
|
}
|
|
3256
3258
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3257
3259
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ApiService }); }
|