@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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -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
|
-
|
|
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({
|