@mtgame/core 0.0.65 → 0.0.67

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.
@@ -574,6 +574,16 @@
574
574
  var File = /** @class */ (function () {
575
575
  function File() {
576
576
  }
577
+ Object.defineProperty(File.prototype, "originalName", {
578
+ get: function () {
579
+ return this._originalName || this.name;
580
+ },
581
+ set: function (name) {
582
+ this._originalName = name;
583
+ },
584
+ enumerable: true,
585
+ configurable: true
586
+ });
577
587
  File.toFront = function (data) {
578
588
  return null;
579
589
  };
@@ -591,6 +601,7 @@
591
601
  mappingFields: {
592
602
  id: 'id',
593
603
  name: 'name',
604
+ original_name: 'originalName',
594
605
  path: 'path',
595
606
  mime_type: 'mimeType',
596
607
  size: 'size',
@@ -8013,7 +8024,9 @@
8013
8024
  if (!this.isBrowser) {
8014
8025
  return next.handle(req);
8015
8026
  }
8016
- req = req.clone({ withCredentials: true });
8027
+ if (req.withCredentials !== false) {
8028
+ req = req.clone({ withCredentials: true });
8029
+ }
8017
8030
  var csrf = getCookie('csrftoken');
8018
8031
  if (csrf) {
8019
8032
  req = req.clone({