Comparing version 8.2.0 to 8.2.1
@@ -17,2 +17,11 @@ # Changelog | ||
## [8.2.1] - 2023-04-05 | ||
### Fixed | ||
- Fixed a bug in search parameter handling in the browser version | ||
Previously the browser version would incorrectly handle search parameters, | ||
which could result in invalid request URLs in many cases. | ||
## [8.2.0] - 2023-03-29 | ||
@@ -25,3 +34,3 @@ | ||
This change affects all index names using unicode characters. **The change | ||
has no effect when using non-unicode (ASCII) names.** | ||
has no effect when using non-unicode (ASCII) names.** | ||
@@ -1581,2 +1590,3 @@ Any names used when creating/ensuring indexes or passed to any methods that | ||
[8.2.1]: https://github.com/arangodb/arangojs/compare/v8.2.0...v8.2.1 | ||
[8.2.0]: https://github.com/arangodb/arangojs/compare/v8.1.0...v8.2.0 | ||
@@ -1583,0 +1593,0 @@ [8.1.0]: https://github.com/arangodb/arangojs/compare/v8.0.0...v8.1.0 |
@@ -37,7 +37,10 @@ "use strict"; | ||
const url = new URL(reqUrl.pathname, base); | ||
if (base.search || reqUrl.search) { | ||
url.search = reqUrl.search | ||
? `${base.search}&${reqUrl.search.slice(1)}` | ||
: base.search; | ||
if (reqUrl.search) { | ||
if (!base.search) | ||
url.search = reqUrl.search.slice(1); | ||
else | ||
url.search = `${base.search}&${reqUrl.search.slice(1)}`; | ||
} | ||
else | ||
url.search = base.search; | ||
if (!headers["authorization"]) { | ||
@@ -44,0 +47,0 @@ headers["authorization"] = `Basic ${auth}`; |
{ | ||
"name": "arangojs", | ||
"version": "8.2.0", | ||
"version": "8.2.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=14" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2167972
20138