Fixed path event dir property
Build / Publish Docs (push) Successful in 1m3s
Build / Build NPM Project (push) Successful in 36s
Build / Tag Version (push) Successful in 9s

This commit is contained in:
2026-06-15 09:55:38 -04:00
parent 28716c7b5a
commit 6b379270a9
4 changed files with 6930 additions and 2 deletions
+1
View File
@@ -10,6 +10,7 @@ uploads
public/momentum*js
junit.xml
/docs/
main.mjs
# Logs
*.log
+6927
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.29.4",
"version": "0.29.5",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",
+1 -1
View File
@@ -135,7 +135,7 @@ export class PathEvent {
let temp = p.split('/').filter(p => !!p);
this.module = temp.splice(0, 1)[0] || '';
this.path = temp.join('/');
this.dir = temp.length > 2 ? temp.slice(0, -1).join('/') : '';
this.dir = temp.length > 1 ? temp.slice(0, -1).join('/') : '';
this.fullPath = `${this.module}${this.module && this.path ? '/' : ''}${this.path}`;
this.name = temp.pop() || '';
this.hasGlob = this.fullPath.includes('*');