@trap_stevo/filetide 0.0.56 → 0.0.57
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.
|
@@ -41,10 +41,13 @@ class FileUtilityManager {
|
|
|
41
41
|
const results = [];
|
|
42
42
|
for (const item of items) {
|
|
43
43
|
const itemPath = path.join(currentDirPath, item.name);
|
|
44
|
+
if (item.name.startsWith(".")) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
44
47
|
const filtered = filterContent.some(filterEntry => {
|
|
45
48
|
const resolvedFilterEntry = path.resolve(currentDirPath, filterEntry);
|
|
46
|
-
const
|
|
47
|
-
return itemPath === resolvedFilterEntry || item.name === filterEntry ||
|
|
49
|
+
const extensionFilter = filterEntry.startsWith(".");
|
|
50
|
+
return itemPath === resolvedFilterEntry || item.name === filterEntry || extensionFilter && path.extname(item.name) === filterEntry;
|
|
48
51
|
});
|
|
49
52
|
if (!filtered) {
|
|
50
53
|
const stats = await fs.promises.stat(itemPath);
|
|
@@ -59,7 +62,7 @@ class FileUtilityManager {
|
|
|
59
62
|
}
|
|
60
63
|
return results;
|
|
61
64
|
} catch (error) {
|
|
62
|
-
console.
|
|
65
|
+
console.log(`Did not filter contents from ${dirPath} ~ `, error);
|
|
63
66
|
throw error;
|
|
64
67
|
}
|
|
65
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"description": "Revolutionizing real-time file transfer with seamless, instant communication across any device. Deliver files instantly, regardless of platform, and experience unparalleled speed and control in managing transfers. Elevate your file-sharing capabilities with a tool designed for precision, efficiency, and effortless connectivity.",
|
|
5
5
|
"main": "dist/cjs/FileTide.js",
|
|
6
6
|
"scripts": {
|