@linkedrecords/browser 0.1.0 → 0.1.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/server.js CHANGED
@@ -1894,7 +1894,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
1894
1894
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1895
1895
  /* eslint-disable import/no-cycle */
1896
1896
  /* eslint-disable class-methods-use-this */
1897
- const file_type_1 = __importDefault(__webpack_require__(/*! file-type */ "file-type"));
1897
+ const file_type_1 = __webpack_require__(/*! file-type */ "file-type");
1898
1898
  const assert_1 = __importDefault(__webpack_require__(/*! assert */ "assert"));
1899
1899
  const stream_1 = __webpack_require__(/*! stream */ "stream");
1900
1900
  const stream_to_blob_1 = __importDefault(__webpack_require__(/*! stream-to-blob */ "stream-to-blob"));
@@ -1978,7 +1978,7 @@ class BlobAttribute extends abstract_attribute_server_1.default {
1978
1978
  if (blob.type) {
1979
1979
  return blob;
1980
1980
  }
1981
- const typeFromBinary = await file_type_1.default.fromBuffer(await blob.arrayBuffer());
1981
+ const typeFromBinary = await (0, file_type_1.fileTypeFromBuffer)(await blob.arrayBuffer());
1982
1982
  if (!typeFromBinary || !typeFromBinary.mime) {
1983
1983
  return blob;
1984
1984
  }
@@ -1998,7 +1998,7 @@ class BlobAttribute extends abstract_attribute_server_1.default {
1998
1998
  }
1999
1999
  if (!mimetype || mimetype === 'application/octet-stream') {
2000
2000
  try {
2001
- const typeFromBinary = await file_type_1.default.fromBuffer(data);
2001
+ const typeFromBinary = await (0, file_type_1.fileTypeFromBuffer)(data);
2002
2002
  if (typeFromBinary && typeFromBinary.mime) {
2003
2003
  mimetype = typeFromBinary.mime;
2004
2004
  }