@ztimson/utils 0.25.16 → 0.25.17
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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1792,7 +1792,7 @@ ${opts.message || this.desc}`;
|
|
|
1792
1792
|
const parsedTarget = makeArray(target).map((pe) => new PathEvent(pe));
|
|
1793
1793
|
const parsedRequired = makeArray(has).map((pe) => new PathEvent(pe));
|
|
1794
1794
|
return !!parsedRequired.find((r) => !!parsedTarget.find(
|
|
1795
|
-
(t) => (r.fullPath == "*" || t.fullPath == "*" || r.fullPath.startsWith(t.fullPath)
|
|
1795
|
+
(t) => (r.fullPath == "*" || t.fullPath == "*" || r.fullPath.startsWith(t.fullPath)) && (r.all || t.all || r.methods.intersection(t.methods).length)
|
|
1796
1796
|
));
|
|
1797
1797
|
}
|
|
1798
1798
|
/**
|