New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

router-dom

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

router-dom - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

1

dist/router.js

@@ -125,3 +125,2 @@ import { listen } from "quicklink";

e.preventDefault();
const anchor = e.target;
const hasData = anchor.getAttribute("data");

@@ -128,0 +127,0 @@ const hydroProp = replaceBars(hasData);

2

package.json
{
"name": "router-dom",
"version": "1.1.1",
"version": "1.1.2",
"description": "A lightweight router for everyone",

@@ -5,0 +5,0 @@ "type": "module",

@@ -29,6 +29,6 @@ # router-dom

```html
<!-- With base -->
<base href="/.../" />
<a href="./about" data="about">About</a>
<!-- href="about" without base -->
<div data-outlet></div>

@@ -59,3 +59,3 @@ ```

element: html`<h2>Drop a message on [...]</h2>`,
beforeEnter: ({ from, to, state, params }) => ...
beforeEnter: ({ from, to, state, params }) => ...,
afterEnter: ({ from, to, state, params }) => ...

@@ -76,15 +76,15 @@ }

- Add a route object to the routes array.
- Adds a route object to the routes array.
### modifyRoute
- Replace a route with a new one.
- Replaces a route with a new one.
### changeOptions
- Replace the router options.
- Replaces the router options.
### getParams
- Return the params as key-value pair.
- Returns the params as key-value pair.

@@ -94,2 +94,2 @@ ## To Do

- Add tests
- Nested routes
- Add nested routes

@@ -161,3 +161,2 @@ import { listen } from "quicklink";

e.preventDefault();
const anchor = e.target as HTMLAnchorElement;
const hasData = anchor.getAttribute("data");

@@ -164,0 +163,0 @@ const hydroProp = replaceBars(hasData);

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