scancscode 1.0.2 → 1.0.4

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.
@@ -102,11 +102,13 @@ class LiteralCollector {
102
102
  this.scanTablesInFolder(gameConfigFolder, literals, verbose);
103
103
  }
104
104
  this.filterLiterals(literals);
105
+ if (verbose) {
106
+ console.log("扫描合并结果:", literals);
107
+ }
108
+ await CSVUtils_1.CSVUtils.updateToFile(outCsvFile, literals, langs);
105
109
  for (const unexpect of unexpects) {
106
110
  console.error(unexpect);
107
111
  }
108
- console.log(literals);
109
- await CSVUtils_1.CSVUtils.updateToFile(outCsvFile, literals, langs);
110
112
  }
111
113
  }
112
114
  exports.LiteralCollector = LiteralCollector;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scancscode",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -79,7 +79,9 @@ export class LiteralCollector {
79
79
  }
80
80
  this.filterLiterals(literals);
81
81
 
82
- console.log(literals);
82
+ if (verbose) {
83
+ console.log("扫描合并结果:", literals);
84
+ }
83
85
  await CSVUtils.updateToFile(outCsvFile, literals, langs);
84
86
  for (const unexpect of unexpects) {
85
87
  console.error(unexpect);