@dollarshaveclub/react-passage
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -618,3 +618,5 @@ import React, { createContext, Children, forwardRef } from 'react'; | ||
strict = _route$props.strict; | ||
a.href = toStringFromLocationObject(to); | ||
var url = toStringFromLocationObject(to); | ||
if (!url) return false; | ||
a.href = url; | ||
var toPath = a.pathname; | ||
@@ -621,0 +623,0 @@ return matchPath(toPath, { |
@@ -625,3 +625,5 @@ 'use strict'; | ||
strict = _route$props.strict; | ||
a.href = toStringFromLocationObject(to); | ||
var url = toStringFromLocationObject(to); | ||
if (!url) return false; | ||
a.href = url; | ||
var toPath = a.pathname; | ||
@@ -628,0 +630,0 @@ return reactRouter.matchPath(toPath, { |
{ | ||
"name": "@dollarshaveclub/react-passage", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Link and Redirect to routes safely in your react applications", | ||
@@ -5,0 +5,0 @@ "author": "Jacob Kelley <jacob.kelley@dollarshaveclub.com>", |
@@ -42,3 +42,5 @@ import React, { Children, createContext, forwardRef } from 'react' | ||
a.href = toStringFromLocationObject(to) | ||
const url = toStringFromLocationObject(to) | ||
if (!url) return false | ||
a.href = url | ||
const toPath = a.pathname | ||
@@ -45,0 +47,0 @@ |
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
160659
1575