@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.
- package/bundles/mtgame-core.umd.js +14 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/http-cookie.interceptor.js +4 -2
- package/esm2015/models/file.js +8 -1
- package/esm5/http-cookie.interceptor.js +4 -2
- package/esm5/models/file.js +12 -1
- package/fesm2015/mtgame-core.js +10 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +14 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/file.d.ts +3 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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({
|