@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.
@@ -361,6 +361,16 @@ var FileEngine;
361
361
  var File = /** @class */ (function () {
362
362
  function File() {
363
363
  }
364
+ Object.defineProperty(File.prototype, "originalName", {
365
+ get: function () {
366
+ return this._originalName || this.name;
367
+ },
368
+ set: function (name) {
369
+ this._originalName = name;
370
+ },
371
+ enumerable: true,
372
+ configurable: true
373
+ });
364
374
  File.toFront = function (data) {
365
375
  return null;
366
376
  };
@@ -378,6 +388,7 @@ var File = /** @class */ (function () {
378
388
  mappingFields: {
379
389
  id: 'id',
380
390
  name: 'name',
391
+ original_name: 'originalName',
381
392
  path: 'path',
382
393
  mime_type: 'mimeType',
383
394
  size: 'size',
@@ -7800,7 +7811,9 @@ var HttpCookieInterceptor = /** @class */ (function () {
7800
7811
  if (!this.isBrowser) {
7801
7812
  return next.handle(req);
7802
7813
  }
7803
- req = req.clone({ withCredentials: true });
7814
+ if (req.withCredentials !== false) {
7815
+ req = req.clone({ withCredentials: true });
7816
+ }
7804
7817
  var csrf = getCookie('csrftoken');
7805
7818
  if (csrf) {
7806
7819
  req = req.clone({