From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/swup/src/helpers/matchPath.ts | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 node_modules/swup/src/helpers/matchPath.ts (limited to 'node_modules/swup/src/helpers/matchPath.ts') diff --git a/node_modules/swup/src/helpers/matchPath.ts b/node_modules/swup/src/helpers/matchPath.ts deleted file mode 100644 index e1332911..00000000 --- a/node_modules/swup/src/helpers/matchPath.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { match } from 'path-to-regexp'; - -import type { - Path, - ParseOptions, - TokensToRegexpOptions, - RegexpToFunctionOptions, - MatchFunction -} from 'path-to-regexp'; - -export { type Path }; - -/** Create a match function from a path pattern that checks if a URLs matches it. */ -export const matchPath =

( - path: Path, - options?: ParseOptions & TokensToRegexpOptions & RegexpToFunctionOptions -): MatchFunction

=> { - try { - return match

(path, options); - } catch (error) { - throw new Error(`[swup] Error parsing path "${String(path)}":\n${String(error)}`); - } -}; -- cgit v1.2.3