spice-js 2.6.46 → 2.6.47
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/build/storage/Storage.js
CHANGED
|
@@ -44,8 +44,13 @@ class Storage {
|
|
|
44
44
|
} //console.log(this.Driver);
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
files
|
|
48
|
-
|
|
47
|
+
if (files == null ? void 0 : files.file_data) {
|
|
48
|
+
var _files$file_data, _files$file_data2;
|
|
49
|
+
|
|
50
|
+
files.file_data.path = files == null ? void 0 : (_files$file_data = files.file_data) == null ? void 0 : _files$file_data.filepath;
|
|
51
|
+
files.file_data.name = files == null ? void 0 : (_files$file_data2 = files.file_data) == null ? void 0 : _files$file_data2.originalFilename;
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
var driver = new _this.Driver(_this.driver_options);
|
|
50
55
|
return yield driver.save({
|
|
51
56
|
files,
|
package/package.json
CHANGED
package/src/storage/Storage.js
CHANGED
|
@@ -19,8 +19,10 @@ export default class Storage {
|
|
|
19
19
|
this.driver_options = _.merge(this.driver_options, options);
|
|
20
20
|
}
|
|
21
21
|
//console.log(this.Driver);
|
|
22
|
-
files
|
|
23
|
-
|
|
22
|
+
if (files?.file_data) {
|
|
23
|
+
files.file_data.path = files?.file_data?.filepath;
|
|
24
|
+
files.file_data.name = files?.file_data?.originalFilename;
|
|
25
|
+
}
|
|
24
26
|
let driver = new this.Driver(this.driver_options);
|
|
25
27
|
return await driver.save({
|
|
26
28
|
files,
|