@lingk/sync 1.1.29 → 1.1.31
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/credentialSections.js +5 -3
- package/build/credentialSections.js.map +1 -1
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/loadData.js.map +1 -1
- package/build/main.js +18 -9
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js.map +1 -1
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/build/saveData.js.map +1 -1
- package/package.json +1 -1
|
@@ -3708,6 +3708,7 @@ module.exports =
|
|
|
3708
3708
|
header: true,
|
|
3709
3709
|
dynamicTyping: true,
|
|
3710
3710
|
complete: function complete(result) {
|
|
3711
|
+
console.log(file);
|
|
3711
3712
|
resolve({
|
|
3712
3713
|
name: file.name,
|
|
3713
3714
|
type: file.name.substr(0, file.name.lastIndexOf('.')).split(' ').join(''),
|
|
@@ -3763,7 +3764,8 @@ module.exports =
|
|
|
3763
3764
|
csv = _xlsx2.default.utils.sheet_to_csv(workbook.Sheets[sn]);
|
|
3764
3765
|
_this.parseCSV(file, csv).then(function (xlsMeta) {
|
|
3765
3766
|
meta = meta.concat(Object.assign({}, xlsMeta, {
|
|
3766
|
-
sheetName: sn
|
|
3767
|
+
sheetName: sn,
|
|
3768
|
+
fileType: extension
|
|
3767
3769
|
}));
|
|
3768
3770
|
sheetCounter += 1;
|
|
3769
3771
|
counter += 1;
|
|
@@ -3776,7 +3778,7 @@ module.exports =
|
|
|
3776
3778
|
})();
|
|
3777
3779
|
} else if (extension === 'csv') {
|
|
3778
3780
|
_this.parseCSV(file, csv).then(function (csvMeta) {
|
|
3779
|
-
meta = meta.concat(csvMeta);
|
|
3781
|
+
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
3780
3782
|
counter += 1;
|
|
3781
3783
|
if (counter === fs.length) {
|
|
3782
3784
|
_this.setState({ meta: meta });
|
|
@@ -3790,7 +3792,7 @@ module.exports =
|
|
|
3790
3792
|
}
|
|
3791
3793
|
var fileMeta = _this.parseJsonFile(d, file);
|
|
3792
3794
|
if (fileMeta) {
|
|
3793
|
-
meta = meta.concat(fileMeta);
|
|
3795
|
+
meta = meta.concat(Object.assign({}, fileMeta, { fileType: extension }));
|
|
3794
3796
|
counter += 1;
|
|
3795
3797
|
if (counter === fs.length) {
|
|
3796
3798
|
_this.setState({ meta: meta });
|