@maptiler/client 3.2.0-rc.1 → 3.2.0-rc.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.
package/dist/maptiler-client.cjs
CHANGED
|
@@ -1334,6 +1334,8 @@ function addProfileOptions(search, req) {
|
|
|
1334
1334
|
search.set("truck.height", String(opts.height));
|
|
1335
1335
|
if (opts.weight !== void 0)
|
|
1336
1336
|
search.set("truck.weight", String(opts.weight));
|
|
1337
|
+
if (opts.length !== void 0)
|
|
1338
|
+
search.set("truck.length", String(opts.length));
|
|
1337
1339
|
if (opts.axleLoad !== void 0)
|
|
1338
1340
|
search.set("truck.axleLoad", String(opts.axleLoad));
|
|
1339
1341
|
if (opts.hazmat !== void 0)
|
|
@@ -1383,7 +1385,7 @@ function decodeRoute(route) {
|
|
|
1383
1385
|
async function getErrorMessage(res) {
|
|
1384
1386
|
let payload = null;
|
|
1385
1387
|
try {
|
|
1386
|
-
payload = await res.json();
|
|
1388
|
+
payload = await res.clone().json();
|
|
1387
1389
|
} catch {
|
|
1388
1390
|
return "";
|
|
1389
1391
|
}
|