@alfresco/adf-content-services 8.4.0-17794388212 → 8.4.0-17797805682

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.
@@ -24,7 +24,6 @@ import * as i4 from '@angular/material/button';
24
24
  import { MatButtonModule } from '@angular/material/button';
25
25
  import * as i5 from '@angular/material/progress-bar';
26
26
  import { MatProgressBarModule } from '@angular/material/progress-bar';
27
- import { Buffer } from 'buffer';
28
27
  import { Router, ActivatedRoute } from '@angular/router';
29
28
  import * as i1$5 from '@angular/cdk/a11y';
30
29
  import { A11yModule } from '@angular/cdk/a11y';
@@ -4541,7 +4540,13 @@ class BaseQueryBuilderService {
4541
4540
  * Encodes filter configuration stored in filterRawParams object.
4542
4541
  */
4543
4542
  encodeQuery() {
4544
- this.encodedQuery = Buffer.from(JSON.stringify(this.filterRawParams)).toString('base64');
4543
+ try {
4544
+ this.encodedQuery = btoa(JSON.stringify(this.filterRawParams));
4545
+ }
4546
+ catch (error) {
4547
+ console.error('Failed to encode query parameters:', error);
4548
+ this.encodedQuery = '';
4549
+ }
4545
4550
  }
4546
4551
  /**
4547
4552
  * Encodes existing filters configuration and updates search query param value.