@burdy-cms/web-utils
Advanced tools
Comparing version 1.2.1 to 1.3.0
import { Key } from 'path-to-regexp'; | ||
import { RewritesMap } from '../types'; | ||
export declare const rewrite: (string: string, params?: Record<Key['name'], string | undefined>) => string; | ||
export declare const matchAndRewriteMap: <T = any>(path: string, map?: RewritesMap<T>[], baseUrl?: string) => string | T; | ||
export declare const matchAndRewriteMap: <T = any>(path: string, map?: RewritesMap<T>[], baseUrl?: string) => T; |
@@ -18,5 +18,5 @@ export * from './model'; | ||
export declare type RewritesObject<T extends {} | string> = { | ||
rewrite: (path: string) => string | null | T; | ||
rewrite: (path: string) => T; | ||
getOrigin: () => string | undefined; | ||
getRewrite: () => RewritesMap<T>[]; | ||
}; |
{ | ||
"name": "@burdy-cms/web-utils", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Burdy web utilities", | ||
@@ -5,0 +5,0 @@ "author": "Team Burdy <team@burdy.io>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45309