what-router 0.6.2 → 0.6.5
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/index.d.ts +6 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// What Framework Router - TypeScript Definitions
|
|
2
2
|
|
|
3
|
-
import { VNode, VNodeChild, Component, Signal, Computed } from '
|
|
3
|
+
import { VNode, VNodeChild, Component, Signal, Computed } from 'what-core';
|
|
4
4
|
|
|
5
5
|
// --- Route State ---
|
|
6
6
|
|
|
@@ -23,6 +23,11 @@ export interface RouteState {
|
|
|
23
23
|
|
|
24
24
|
export const route: RouteState;
|
|
25
25
|
|
|
26
|
+
// --- URL Sanitization ---
|
|
27
|
+
|
|
28
|
+
/** Return false for javascript:, data:, vbscript:, and other unsafe navigation URLs. */
|
|
29
|
+
export function isSafeUrl(url: string): boolean;
|
|
30
|
+
|
|
26
31
|
// --- Navigation ---
|
|
27
32
|
|
|
28
33
|
export interface NavigateOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "what-router",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"description": "What Framework - File-based & programmatic router with View Transitions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"author": "ZVN DEV (https://zvndev.com)",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"what-core": "^0.6.
|
|
31
|
+
"what-core": "^0.6.5"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|