@steroidsjs/core 2.2.58 → 2.2.59

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/hooks/useFile.js CHANGED
@@ -66,12 +66,9 @@ function useFile(props) {
66
66
  uploader.queue.add(normalizedInitialFiles_1
67
67
  .map(function (item) {
68
68
  var path = item.title || item.label || item.uid || item.id;
69
- var resultHttpMessage = {
70
- id: item.id || item.uid,
71
- images: item.thumbnailUrl
69
+ var resultHttpMessage = __assign(__assign({}, item), { id: item.id || item.uid, images: item.thumbnailUrl
72
70
  ? [{ url: item.thumbnailUrl }]
73
- : null
74
- };
71
+ : null });
75
72
  var file = uploader.queue.getByUid(item.uid);
76
73
  if (file) {
77
74
  file.setPath(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.58",
3
+ "version": "2.2.59",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -63,7 +63,8 @@ function FileField(props) {
63
63
  onRemove: function () { return onRemove(file); },
64
64
  error: null,
65
65
  image: null,
66
- progress: null
66
+ progress: null,
67
+ item: data
67
68
  };
68
69
  // Add error
69
70
  if (file.getResult() === File_1["default"].RESULT_ERROR) {