From b292d5ed17a4424cb50de932efd8c01207f8a3f1 Mon Sep 17 00:00:00 2001 From: ztimson Date: Wed, 23 Oct 2024 21:39:42 -0400 Subject: [PATCH] PathEvents has none fix --- index.html | 2 +- package.json | 2 +- src/path-events.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index f60a8dc..0626553 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ diff --git a/package.json b/package.json index 7efe6ec..a883372 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.21.4", + "version": "0.21.5", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/path-events.ts b/src/path-events.ts index 3ff28b9..5311726 100644 --- a/src/path-events.ts +++ b/src/path-events.ts @@ -162,7 +162,7 @@ export class PathEvent { const filtered = parsedTarget.filter(p => r.fullPath.startsWith(p.fullPath)); if(!filtered.length) return false; const combined = PathEvent.combine(...filtered); - return !combined.none && (combined.all || new ASet(combined.methods).intersection(new ASet(r.methods)).length); + return (!combined.none && (combined.all || r.all)) || combined.methods.intersection(r.methods).length; }); }