@ztimson/utils 0.26.21 → 0.26.23

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/misc.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  import { PathEvent } from './path-events.ts';
2
+ /**
3
+ * Compare version numbers
4
+ * @param {string} target
5
+ * @param {string} vs
6
+ * @return {number} -1 = target is lower, 0 = equal, 1 = higher
7
+ */
8
+ export declare function compareVersions(target: string, vs: string): -1 | 0 | 1;
2
9
  /**
3
10
  * Escape any regex special characters to avoid misinterpretation during search
4
- *
5
11
  * @param {string} value String which should be escaped
6
12
  * @return {string} New escaped sequence
7
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.26.21",
3
+ "version": "0.26.23",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",