@conduction/nextcloud-vue 0.1.0-beta.5 → 0.1.0-beta.6

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.
@@ -4070,7 +4070,7 @@ __vue_render__$G._withStripped = true;
4070
4070
  /* style */
4071
4071
  const __vue_inject_styles__$G = undefined;
4072
4072
  /* scoped */
4073
- const __vue_scope_id__$G = "data-v-703aea9f";
4073
+ const __vue_scope_id__$G = "data-v-0d7a5d20";
4074
4074
  /* module identifier */
4075
4075
  const __vue_module_identifier__$G = undefined;
4076
4076
  /* functional template */
@@ -45654,8 +45654,8 @@ function buildHeaders(contentType = 'application/json') {
45654
45654
  /**
45655
45655
  * Build a query string from a params object.
45656
45656
  *
45657
- * Handles _order serialization (JSON.stringify for objects) and skips
45658
- * null/undefined/empty values.
45657
+ * Handles array values by appending each item separately, plain object values
45658
+ * by JSON-serializing them, and skips null/undefined/empty values.
45659
45659
  *
45660
45660
  * @param {object} params Key-value pairs for query parameters
45661
45661
  * @return {string} Query string including leading '?' or empty string
@@ -45665,13 +45665,15 @@ function buildQueryString(params = {}) {
45665
45665
 
45666
45666
  for (const [key, value] of Object.entries(params)) {
45667
45667
  if (value === undefined || value === null || value === '') continue
45668
+ if (Array.isArray(value) && value.length === 0) continue
45669
+ if (typeof value === 'object' && !Array.isArray(value) && Object.keys(value).length === 0) continue
45668
45670
  if (Array.isArray(value)) {
45669
45671
  for (const item of value) {
45670
45672
  if (item !== undefined && item !== null && item !== '') {
45671
45673
  queryParams.append(key, String(item));
45672
45674
  }
45673
45675
  }
45674
- } else if (key === '_order' && typeof value === 'object') {
45676
+ } else if (typeof value === 'object') {
45675
45677
  queryParams.set(key, JSON.stringify(value));
45676
45678
  } else {
45677
45679
  queryParams.set(key, String(value));