From 5b57b675427f8cd8904f0675cb00d258b10a5fb3 Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 29 Nov 2025 10:14:50 -0500 Subject: [PATCH] Updates --- .gitignore | 1 + .gitmodules | 5 ----- package.json | 18 +++++++++--------- src/path-events.ts | 1 - tests/path-events.spec.ts | 1 + tests/time.spec.ts | 2 +- 6 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index e513fe0..f323c7b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ node_modules uploads public/momentum*js junit.xml +/docs/ # Logs *.log diff --git a/.gitmodules b/.gitmodules index a4782c8..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,5 +0,0 @@ -[submodule "docs"] - path = docs - url = ../utils.wiki.git - branch = master - ignore = all diff --git a/package.json b/package.json index 8596c4e..9c9e489 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.27.11", + "version": "0.27.12", "description": "Utility library", "author": "Zak Timson", "license": "MIT", @@ -30,15 +30,15 @@ "var-persist": "^1.0.1" }, "devDependencies": { - "@types/jest": "^29.5.12", - "fake-indexeddb": "^6.0.1", - "jest": "^29.7.0", + "@types/jest": "^30.0.0", + "fake-indexeddb": "^6.2.5", + "jest": "^30.2.0", "jest-junit": "^16.0.0", - "ts-jest": "^29.1.2", - "typedoc": "^0.26.7", - "typescript": "^5.3.3", - "vite": "^5.0.12", - "vite-plugin-dts": "^4.5.3" + "ts-jest": "^29.4.5", + "typedoc": "^0.28.15", + "typescript": "^5.9.3", + "vite": "^7.2.4", + "vite-plugin-dts": "^4.5.4" }, "files": [ "dist" diff --git a/src/path-events.ts b/src/path-events.ts index e50c94f..8fdf483 100644 --- a/src/path-events.ts +++ b/src/path-events.ts @@ -40,7 +40,6 @@ export function PE(str: TemplateStringsArray, ...args: any[]) { * @param {TemplateStringsArray} str * @param {string} args * @return {string} - * @constructor */ export function PES(str: TemplateStringsArray, ...args: any[]) { let combined = []; diff --git a/tests/path-events.spec.ts b/tests/path-events.spec.ts index fe9e158..a587fb3 100644 --- a/tests/path-events.spec.ts +++ b/tests/path-events.spec.ts @@ -45,6 +45,7 @@ describe('Path Events', () => { expect(pe.all).toBe(true); expect(pe.fullPath).toBe('**'); expect(pe.methods.has('*')).toBe(true); + expect(pe.hasAll('module:c', 'some/path:ud')).toBeTruthy(); }); it('parses empty string as none', () => { diff --git a/tests/time.spec.ts b/tests/time.spec.ts index 1c2dd85..190fc16 100644 --- a/tests/time.spec.ts +++ b/tests/time.spec.ts @@ -35,7 +35,7 @@ describe('Time Utilities', () => { }); it('throws for unknown timezone', () => { - expect(() => formatDate('YYYY', new Date(), '???')).toThrowError(/Invalid timezone/); + expect(() => formatDate('YYYY', new Date(), '???')).toThrow(/Invalid timezone/); }); it('handles timezone by offset number', () => {