Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-guard-history-router

Package Overview
Dependencies
Maintainers
1
Versions
276
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-guard-history-router - npm Package Compare versions

Comparing version 1.1.12 to 1.1.13

6

package.json
{
"name": "svelte-guard-history-router",
"version": "1.1.12",
"version": "1.1.13",
"module": "src/index.mjs",

@@ -20,3 +20,3 @@ "svelte": "src/index.svelte",

"dependencies": {
"multi-path-matcher": "^2.0.6"
"multi-path-matcher": "^2.0.8"
},

@@ -30,3 +30,3 @@ "devDependencies": {

"semantic-release": "^17.0.4",
"svelte": "^3.18.2",
"svelte": "^3.19.1",
"testcafe": "^1.8.2"

@@ -33,0 +33,0 @@ },

@@ -28,2 +28,8 @@ [![Svelte v3](https://img.shields.io/badge/svelte-v3-orange.svg)](https://svelte.dev)

import { Router, route, Guard } from 'svelte-guard-history-router';
import Categories from "./Categories.svelte";
import Category from "./Category.svelte";
import Article from "./Article.svelte";
import Articles from "./Articles.svelte";
import About from "./About.svelte";
import Login from "./Login.svelte";

@@ -54,28 +60,30 @@ let session = undefined;

<script>
import {
Outlet,
link,
active
} from "svelte-guard-history-router";
import { router } from "./main.mjs";
</script>
```html
<script>
import {
Outlet,
link,
active
} from "svelte-guard-history-router";
import { router } from "./main.mjs";
</script>
<nav>
<a href="/" use:link={router} use:active={router}>Router Example</a>
<ul class="left">
<li>
<a href="/about" use:link={router} use:active={router}>About</a>
</li>
<li>
<a href="/article" use:link={router} use:active={router}>Articles</a>
</li>
<li>
<a href="/category" use:link={router} use:active={router}>Categories</a>
</li>
</ul>
</nav>
<main>
<Outlet {router}/>
</main>
<nav>
<a href="/" use:link={router} use:active={router}>Router Example</a>
<ul class="left">
<li>
<a href="/about" use:link={router} use:active={router}>About</a>
</li>
<li>
<a href="/article" use:link={router} use:active={router}>Articles</a>
</li>
<li>
<a href="/category" use:link={router} use:active={router}>Categories</a>
</li>
</ul>
</nav>
<main>
<Outlet {router}/>
</main>
```

@@ -82,0 +90,0 @@ ## Sample code

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc