@bscotch/pathy
Advanced tools
Comparing version 2.7.3 to 2.7.4
@@ -307,3 +307,5 @@ import { __decorate, __metadata } from "tslib"; | ||
else { | ||
child = (await this.listChildren()).find((c) => c.basename === basename); | ||
child = (await this.listChildren()).find((c) => typeof basename === 'string' | ||
? c.basename === basename | ||
: basename.test(c.basename)); | ||
} | ||
@@ -310,0 +312,0 @@ assert(!options?.assert || child, `${this.absolute} does not have a child named ${basename}`); |
{ | ||
"name": "@bscotch/pathy", | ||
"version": "2.7.3", | ||
"version": "2.7.4", | ||
"description": "A toolkit for simplifying working with paths and files.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110502
1770