@mtgame/core 0.0.74 → 0.0.76

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.
@@ -371,6 +371,16 @@ var File = /** @class */ (function () {
371
371
  enumerable: true,
372
372
  configurable: true
373
373
  });
374
+ Object.defineProperty(File.prototype, "path", {
375
+ get: function () {
376
+ return this.resizedPath || this._path;
377
+ },
378
+ set: function (filePath) {
379
+ this._path = filePath;
380
+ },
381
+ enumerable: true,
382
+ configurable: true
383
+ });
374
384
  File.toFront = function (data) {
375
385
  return null;
376
386
  };
@@ -390,6 +400,7 @@ var File = /** @class */ (function () {
390
400
  name: 'name',
391
401
  original_name: 'originalName',
392
402
  path: 'path',
403
+ resized_path: 'resizedPath',
393
404
  mime_type: 'mimeType',
394
405
  size: 'size',
395
406
  engine: 'engine',
@@ -2596,7 +2607,7 @@ var FileApi = /** @class */ (function () {
2596
2607
  return __generator(this, function (_a) {
2597
2608
  params = new HttpParams();
2598
2609
  if (width && height) {
2599
- params.set('width', width.toString()).set('height', height.toString());
2610
+ params = params.set('width', width.toString()).set('height', height.toString());
2600
2611
  }
2601
2612
  formData = new FormData();
2602
2613
  formData.append('file', fileData, filename);