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.3 to 1.1.4

4

dist/router.js

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

const reactivityRegex = /\{\{([^]*?)\}\}/;
const flagsRegex = /:\w+/g;
const base = $("base")?.getAttribute("href") || "";

@@ -16,4 +17,5 @@ addEventListener("popstate", async () => {

const [_, ...values] = to.match(route.path);
const params = Array.from(route.originalPath.matchAll(/(?<=:)\w+/g))
const params = Array.from(route.originalPath.matchAll(flagsRegex))
.flat()
.map((i) => i.replace(":", ""))
.reduce((state, key, idx) => {

@@ -20,0 +22,0 @@ state[key] = values[idx];

{
"name": "router-dom",
"version": "1.1.3",
"version": "1.1.4",
"description": "A lightweight router for everyone",

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

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

const reactivityRegex = /\{\{([^]*?)\}\}/;
const flagsRegex = /:\w+/g;
const base = $("base")?.getAttribute("href") || "";

@@ -21,4 +22,5 @@

const [_, ...values] = to.match(route.path);
const params = Array.from(route.originalPath.matchAll(/(?<=:)\w+/g))
const params = Array.from(route.originalPath.matchAll(flagsRegex))
.flat()
.map((i) => i.replace(":", ""))
.reduce((state: LooseObject, key, idx) => {

@@ -25,0 +27,0 @@ state[key] = values[idx];

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