@ztimson/utils 0.27.13 → 0.27.15
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 +40 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +40 -64
- package/dist/index.mjs.map +1 -1
- package/dist/path-events.d.ts +11 -11
- package/package.json +1 -1
package/dist/path-events.d.ts
CHANGED
|
@@ -81,20 +81,25 @@ export declare class PathEvent {
|
|
|
81
81
|
get delete(): boolean;
|
|
82
82
|
set delete(v: boolean);
|
|
83
83
|
constructor(e: string | PathEvent);
|
|
84
|
-
/** Clear the cache of all PathEvents */
|
|
85
|
-
static clearCache(): void;
|
|
86
|
-
/** Clear the permission cache */
|
|
87
|
-
static clearPermissionCache(): void;
|
|
88
84
|
/**
|
|
89
|
-
*
|
|
85
|
+
* Check if a filter pattern matches a target path
|
|
90
86
|
* @private
|
|
91
87
|
*/
|
|
92
|
-
private static
|
|
88
|
+
private static matches;
|
|
93
89
|
/**
|
|
94
90
|
* Check if a path matches a glob pattern
|
|
95
91
|
* @private
|
|
96
92
|
*/
|
|
97
93
|
private static pathMatchesGlob;
|
|
94
|
+
/**
|
|
95
|
+
* Score a path for specificity ranking (lower = more specific = higher priority)
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
private static scoreSpecificity;
|
|
99
|
+
/** Clear the cache of all PathEvents */
|
|
100
|
+
static clearCache(): void;
|
|
101
|
+
/** Clear the permission cache */
|
|
102
|
+
static clearPermissionCache(): void;
|
|
98
103
|
/**
|
|
99
104
|
* Combine multiple events into one parsed object. Longest path takes precedent, but all subsequent methods are
|
|
100
105
|
* combined until a "none" is reached
|
|
@@ -111,11 +116,6 @@ export declare class PathEvent {
|
|
|
111
116
|
* @return {PathEvent[]} Filtered results
|
|
112
117
|
*/
|
|
113
118
|
static filter(target: string | PathEvent | (string | PathEvent)[], ...filter: (string | PathEvent)[]): PathEvent[];
|
|
114
|
-
/**
|
|
115
|
-
* Check if a filter pattern matches a target path
|
|
116
|
-
* @private
|
|
117
|
-
*/
|
|
118
|
-
private static matches;
|
|
119
119
|
/**
|
|
120
120
|
* Squash 2 sets of paths & return true if any overlap is found
|
|
121
121
|
*
|