svelte-guard-history-router
Advanced tools
Comparing version 1.1.20 to 1.2.0
{ | ||
"name": "svelte-guard-history-router", | ||
"version": "1.1.20", | ||
"version": "1.2.0", | ||
"publishConfig": { | ||
@@ -9,3 +9,3 @@ "access": "public" | ||
"svelte": "./src/index.svelte", | ||
"description": "svelte router for spa with history only", | ||
"description": "svelte router for SPA (history mode only)", | ||
"keywords": [ | ||
@@ -27,6 +27,6 @@ "svelte", | ||
"start": "rollup -c example/rollup.config.mjs -w", | ||
"test": "testcafe $BROWSER:headless tests/*-test.js -s test-results --app-init-delay 500 --app \"rollup -c example/rollup.config.mjs -w\"", | ||
"test": "testcafe $BROWSER:headless tests/*-test.js -s test-results --app-init-delay 5000 --app \"rollup -c example/rollup.config.mjs -w\"", | ||
"docs": "documentation readme src/index.mjs --section=API", | ||
"lint": "documentation lint src/index.mjs", | ||
"gh-page": "rollup -c example/rollup.config.js" | ||
"gh-page": "rollup -c example/rollup.config.mjs" | ||
}, | ||
@@ -39,8 +39,8 @@ "dependencies": { | ||
"documentation": "^13.0.0", | ||
"rollup": "^2.10.9", | ||
"rollup": "^2.12.0", | ||
"rollup-plugin-dev": "^1.1.2", | ||
"rollup-plugin-svelte": "^5.2.2", | ||
"semantic-release": "^17.0.8", | ||
"svelte": "^3.22.3", | ||
"testcafe": "^1.8.5" | ||
"svelte": "^3.23.0", | ||
"testcafe": "^1.8.6" | ||
}, | ||
@@ -47,0 +47,0 @@ "engines": { |
@@ -217,2 +217,3 @@ [![Svelte v3](https://img.shields.io/badge/svelte-v3-orange.svg)](https://svelte.dev) | ||
- `linkNodes` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[Node](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)>** nodes having their active state updated | ||
- `routes` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Route](#route)>** | ||
@@ -246,5 +247,7 @@ - `keys` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** all possible keys of all routes | ||
Update the active state of a node | ||
#### Parameters | ||
- `node` | ||
- `node` **[Node](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)** | ||
@@ -268,3 +271,3 @@ ## Transition | ||
start the transition | ||
Start the transition | ||
@@ -279,3 +282,4 @@ - find matching target route | ||
cleanup transition | ||
Cleanup transition | ||
Update Nodes active state | ||
@@ -289,3 +293,3 @@ ### redirect | ||
- `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** new route to enter temprorarly | ||
- `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** new route to enter temporarly | ||
@@ -324,3 +328,2 @@ ### continue | ||
Enter the route from a former one. | ||
Calls guard enter on all guards present in our gurad but absent in the former one | ||
@@ -334,3 +337,2 @@ #### Parameters | ||
Leave the route to a new one. | ||
Calls guard leave on all our guards which are not in the new route | ||
@@ -387,3 +389,3 @@ #### Parameters | ||
- `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** | ||
- `args` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** last one must be a SvelteComponent | ||
- `args` **([Guard](#guard) \| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<SvelteComponent>)** last one must be a SvelteComponent | ||
@@ -393,3 +395,3 @@ ## Guard | ||
Enforces conditions of routes | ||
Like presents of values in the context | ||
Like the presents of values in the context | ||
@@ -422,3 +424,3 @@ ### attach | ||
execute guards in a sequence | ||
Execute guards in a sequence | ||
@@ -431,3 +433,3 @@ ### Parameters | ||
execute guards in a parallel | ||
Execute guards in a parallel | ||
@@ -434,0 +436,0 @@ ### Parameters |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
460
30588
14
492