bruce-models 4.0.8 → 4.1.0
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 +8 -8
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +8 -8
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/abstract-api.js +7 -7
- package/dist/lib/api/abstract-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/api/abstract-api.d.ts +0 -3
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -259,9 +259,6 @@
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
// TODO: Currently checks for CSV vs json specifically,
|
|
263
|
-
// Need to see if our api is generally good at setting content-type headers.
|
|
264
|
-
// Make it less specific to CSV.
|
|
265
262
|
function parseResult(data) {
|
|
266
263
|
var _a, _b;
|
|
267
264
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -278,6 +275,12 @@
|
|
|
278
275
|
else if (encoding === "iso-8859-1") {
|
|
279
276
|
encoding = "utf-8";
|
|
280
277
|
}
|
|
278
|
+
if (type == "application/octet-stream" || type == "model/gltf-binary") {
|
|
279
|
+
if (encoding !== "utf-8") {
|
|
280
|
+
console.warn("Binary data is being returned with an unexpected encoding:", encoding);
|
|
281
|
+
}
|
|
282
|
+
return data.blob();
|
|
283
|
+
}
|
|
281
284
|
let text = yield (encoding && encoding !== "utf-8"
|
|
282
285
|
? new TextDecoder(encoding).decode(yield data.arrayBuffer())
|
|
283
286
|
: data.text());
|
|
@@ -287,10 +290,7 @@
|
|
|
287
290
|
if (!type) {
|
|
288
291
|
type = "";
|
|
289
292
|
}
|
|
290
|
-
if (type.includes("
|
|
291
|
-
return new Blob([text]);
|
|
292
|
-
}
|
|
293
|
-
else if (type.includes("text/csv")) {
|
|
293
|
+
if (type.includes("text/csv")) {
|
|
294
294
|
return text;
|
|
295
295
|
}
|
|
296
296
|
if (text && typeof text == "string") {
|
|
@@ -11662,7 +11662,7 @@
|
|
|
11662
11662
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
11663
11663
|
|
|
11664
11664
|
// This is updated with the package.json version on build.
|
|
11665
|
-
const VERSION = "4.0
|
|
11665
|
+
const VERSION = "4.1.0";
|
|
11666
11666
|
|
|
11667
11667
|
exports.VERSION = VERSION;
|
|
11668
11668
|
exports.AbstractApi = AbstractApi;
|