@road-labs/map-sdk 0.0.19-rc.0 → 0.0.19
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1129,7 +1129,16 @@ const In = qr({
|
|
|
1129
1129
|
const Z = je(
|
|
1130
1130
|
() => Vo(n.options.language || "en"),
|
|
1131
1131
|
[n.options.language]
|
|
1132
|
-
), $ = je(() => (R, g) => Yo[Z][R].replace(/\{\{(\w+)\}\}/g, (x, V) => g[V]), [Z]), X =
|
|
1132
|
+
), $ = je(() => (R, g) => Yo[Z][R].replace(/\{\{(\w+)\}\}/g, (x, V) => g[V]), [Z]), X = (() => {
|
|
1133
|
+
if (n.options.apiRoot && n.options.apiRoot.includes(".dev"))
|
|
1134
|
+
return n.options.apiRoot;
|
|
1135
|
+
switch (n.options.version) {
|
|
1136
|
+
case "v2":
|
|
1137
|
+
return "https://roaming.road.io/v2/map-search";
|
|
1138
|
+
default:
|
|
1139
|
+
return "https://api.road.io";
|
|
1140
|
+
}
|
|
1141
|
+
})();
|
|
1133
1142
|
let F = n.options.version, K = n.options.authorization;
|
|
1134
1143
|
const ee = window.location.search.split("map_key=")[1];
|
|
1135
1144
|
ee && (K = ee, F = "v2");
|