backendless 7.4.2 → 7.4.3

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.
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ********************************************************************************************************************
3
- * Backendless SDK for JavaScript. Version: 7.4.2
3
+ * Backendless SDK for JavaScript. Version: 7.4.3
4
4
  *
5
5
  * Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
6
6
  *
@@ -12655,10 +12655,9 @@ function ensureEncoding(path) {
12655
12655
  }
12656
12656
  }
12657
12657
  function normalizeTrailingSlashInPath(originPath, _ref) {
12658
- var pathname = _ref.pathname,
12659
- search = _ref.search;
12660
- if (search) {
12661
- originPath = originPath.replace(search, '');
12658
+ var pathname = _ref.pathname;
12659
+ if (originPath.includes('?')) {
12660
+ originPath = originPath.split('?')[0];
12662
12661
  }
12663
12662
  var keepTrailingSlash = originPath.endsWith('/');
12664
12663
  return !keepTrailingSlash && pathname.endsWith('/') ? pathname.slice(0, -1) : pathname;