bruce-models 4.6.0 → 4.6.1
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/bruce-models.es5.js +16 -9
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +16 -9
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/bruce-api.js +15 -8
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -1066,10 +1066,11 @@
|
|
|
1066
1066
|
if (!tmp.pathname.endsWith("/")) {
|
|
1067
1067
|
tmp.pathname += "/";
|
|
1068
1068
|
}
|
|
1069
|
+
let split;
|
|
1069
1070
|
if (params === null || params === void 0 ? void 0 : params.url) {
|
|
1070
1071
|
// Ensure we're only adding the path.
|
|
1071
1072
|
// The baseUrl could have included query params so have this extra logic.
|
|
1072
|
-
|
|
1073
|
+
split = params.url.split("?");
|
|
1073
1074
|
// Ensure the url does not start with a slash.
|
|
1074
1075
|
// This is because the base url already has a slash at the end.
|
|
1075
1076
|
let path = split[0];
|
|
@@ -1077,16 +1078,22 @@
|
|
|
1077
1078
|
path = path.substring(1);
|
|
1078
1079
|
}
|
|
1079
1080
|
tmp.pathname += path;
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1081
|
+
}
|
|
1082
|
+
let full = tmp.toString();
|
|
1083
|
+
// Append the query string if any exist.
|
|
1084
|
+
if (split && split.length > 1) {
|
|
1085
|
+
const query = split[1].split("&");
|
|
1086
|
+
for (let q of query) {
|
|
1087
|
+
if (full.includes("?")) {
|
|
1088
|
+
full += "&";
|
|
1086
1089
|
}
|
|
1090
|
+
else {
|
|
1091
|
+
full += "?";
|
|
1092
|
+
}
|
|
1093
|
+
full += q;
|
|
1087
1094
|
}
|
|
1088
1095
|
}
|
|
1089
|
-
return
|
|
1096
|
+
return full;
|
|
1090
1097
|
}
|
|
1091
1098
|
/**
|
|
1092
1099
|
* Returns a url routed through the API's CDN.
|
|
@@ -13490,7 +13497,7 @@
|
|
|
13490
13497
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
13491
13498
|
|
|
13492
13499
|
// This is updated with the package.json version on build.
|
|
13493
|
-
const VERSION = "4.6.
|
|
13500
|
+
const VERSION = "4.6.1";
|
|
13494
13501
|
|
|
13495
13502
|
exports.VERSION = VERSION;
|
|
13496
13503
|
exports.AbstractApi = AbstractApi;
|