bruce-models 4.6.1 → 4.6.2
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 +26 -13
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +26 -13
- 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/lib/entity/entity.js +10 -4
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -1123,10 +1123,11 @@
|
|
|
1123
1123
|
if (!tmp.pathname.endsWith("/")) {
|
|
1124
1124
|
tmp.pathname += "/";
|
|
1125
1125
|
}
|
|
1126
|
+
let split;
|
|
1126
1127
|
if (url) {
|
|
1127
1128
|
// Ensure we're only adding the path.
|
|
1128
1129
|
// The baseUrl could have included query params so have this extra logic.
|
|
1129
|
-
|
|
1130
|
+
split = url.split("?");
|
|
1130
1131
|
// Ensure the url does not start with a slash.
|
|
1131
1132
|
// This is because the base url already has a slash at the end.
|
|
1132
1133
|
let path = split[0];
|
|
@@ -1134,16 +1135,22 @@
|
|
|
1134
1135
|
path = url.substring(1);
|
|
1135
1136
|
}
|
|
1136
1137
|
tmp.pathname += path;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1138
|
+
}
|
|
1139
|
+
let full = tmp.toString();
|
|
1140
|
+
// Append the query string if any exist.
|
|
1141
|
+
if (split && split.length > 1) {
|
|
1142
|
+
const query = split[1].split("&");
|
|
1143
|
+
for (let q of query) {
|
|
1144
|
+
if (full.includes("?")) {
|
|
1145
|
+
full += "&";
|
|
1143
1146
|
}
|
|
1147
|
+
else {
|
|
1148
|
+
full += "?";
|
|
1149
|
+
}
|
|
1150
|
+
full += q;
|
|
1144
1151
|
}
|
|
1145
1152
|
}
|
|
1146
|
-
return
|
|
1153
|
+
return full;
|
|
1147
1154
|
}
|
|
1148
1155
|
/**
|
|
1149
1156
|
* Warning: This will cancel the init process.
|
|
@@ -3784,10 +3791,13 @@
|
|
|
3784
3791
|
urlParams.set("schema", schemaId);
|
|
3785
3792
|
}
|
|
3786
3793
|
urlParams.set("hasMigrated", String(Boolean(migrated)));
|
|
3794
|
+
let url = analysis ? "entities/summary" : "entities";
|
|
3795
|
+
// Adding url params here because this will avoid making them encoded.
|
|
3796
|
+
// Our API isn't decoding them properly so $expand is not being recognized.
|
|
3797
|
+
url += "?" + urlParams.toString();
|
|
3787
3798
|
const urlStr = api.ConstructUrl({
|
|
3788
3799
|
cdn: !analysis && viaCdn,
|
|
3789
|
-
url:
|
|
3790
|
-
urlParams: urlParams
|
|
3800
|
+
url: url
|
|
3791
3801
|
});
|
|
3792
3802
|
const data = yield api.get(urlStr, exports.Api.PrepReqParams(reqParams));
|
|
3793
3803
|
if (!analysis) {
|
|
@@ -3807,10 +3817,13 @@
|
|
|
3807
3817
|
urlParams.set("schema", schemaId);
|
|
3808
3818
|
}
|
|
3809
3819
|
urlParams.set("hasMigrated", String(Boolean(migrated)));
|
|
3820
|
+
let url = analysis ? "entities/summary" : "entities";
|
|
3821
|
+
// Adding url params here because this will avoid making them encoded.
|
|
3822
|
+
// Our API isn't decoding them properly so $expand is not being recognized.
|
|
3823
|
+
url += "?" + urlParams.toString();
|
|
3810
3824
|
const urlStr = api.ConstructUrl({
|
|
3811
3825
|
cdn: false,
|
|
3812
|
-
url:
|
|
3813
|
-
urlParams: urlParams
|
|
3826
|
+
url: url
|
|
3814
3827
|
});
|
|
3815
3828
|
const data = yield api.post(urlStr, body, exports.Api.PrepReqParams(reqParams));
|
|
3816
3829
|
if (!analysis) {
|
|
@@ -13497,7 +13510,7 @@
|
|
|
13497
13510
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
13498
13511
|
|
|
13499
13512
|
// This is updated with the package.json version on build.
|
|
13500
|
-
const VERSION = "4.6.
|
|
13513
|
+
const VERSION = "4.6.2";
|
|
13501
13514
|
|
|
13502
13515
|
exports.VERSION = VERSION;
|
|
13503
13516
|
exports.AbstractApi = AbstractApi;
|