@stemy/ngx-utils 19.5.17 → 19.5.19

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.
@@ -2851,9 +2851,9 @@ class BaseHttpService {
2851
2851
  }, options), "POST", body);
2852
2852
  return this.toPromise(url, options, listener);
2853
2853
  }
2854
- listPromise(url, params) {
2854
+ listPromise(url, options) {
2855
2855
  return new Promise(resolve => {
2856
- this.getPromise(url, { params: params }).then(data => {
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
- return this.listPromise(url, params);
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 }); }