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

react-router-breadcrumbs-hoc

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-breadcrumbs-hoc - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.travis.yml

2

coverage/coverage-final.json

@@ -1,2 +0,2 @@

{"/Users/justinschrader/Desktop/KOAN/opensource/react-router-breadcrumbs-hoc/src/index.jsx": {"path":"/Users/justinschrader/Desktop/KOAN/opensource/react-router-breadcrumbs-hoc/src/index.jsx","statementMap":{"0":{"start":{"line":4,"column":30},"end":{"line":4,"column":45}},"1":{"start":{"line":8,"column":17},"end":{"line":11,"column":1}},"2":{"start":{"line":9,"column":2},"end":{"line":9,"column":73}},"3":{"start":{"line":9,"column":42},"end":{"line":9,"column":71}},"4":{"start":{"line":10,"column":2},"end":{"line":10,"column":20}},"5":{"start":{"line":13,"column":30},"end":{"line":58,"column":1}},"6":{"start":{"line":14,"column":18},"end":{"line":14,"column":20}},"7":{"start":{"line":16,"column":2},"end":{"line":55,"column":7}},"8":{"start":{"line":26,"column":26},"end":{"line":26,"column":50}},"9":{"start":{"line":30,"column":6},"end":{"line":48,"column":9}},"10":{"start":{"line":31,"column":8},"end":{"line":33,"column":9}},"11":{"start":{"line":32,"column":10},"end":{"line":32,"column":109}},"12":{"start":{"line":34,"column":22},"end":{"line":34,"column":98}},"13":{"start":{"line":38,"column":8},"end":{"line":45,"column":9}},"14":{"start":{"line":39,"column":10},"end":{"line":43,"column":12}},"15":{"start":{"line":44,"column":10},"end":{"line":44,"column":22}},"16":{"start":{"line":47,"column":8},"end":{"line":47,"column":21}},"17":{"start":{"line":50,"column":6},"end":{"line":52,"column":7}},"18":{"start":{"line":51,"column":8},"end":{"line":51,"column":38}},"19":{"start":{"line":54,"column":6},"end":{"line":54,"column":25}},"20":{"start":{"line":57,"column":2},"end":{"line":57,"column":17}},"21":{"start":{"line":60,"column":31},"end":{"line":70,"column":2}},"22":{"start":{"line":60,"column":41},"end":{"line":70,"column":2}},"23":{"start":{"line":60,"column":54},"end":{"line":70,"column":2}},"24":{"start":{"line":61,"column":2},"end":{"line":69,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":17},"end":{"line":8,"column":18}},"loc":{"start":{"line":8,"column":44},"end":{"line":11,"column":1}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":56},"end":{"line":58,"column":1}},"line":13},"2":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":12},"end":{"line":22,"column":13}},"loc":{"start":{"line":22,"column":35},"end":{"line":55,"column":5}},"line":22},"3":{"name":"(anonymous_3)","decl":{"start":{"line":30,"column":18},"end":{"line":30,"column":19}},"loc":{"start":{"line":30,"column":58},"end":{"line":48,"column":7}},"line":30},"4":{"name":"(anonymous_4)","decl":{"start":{"line":60,"column":31},"end":{"line":60,"column":32}},"loc":{"start":{"line":60,"column":41},"end":{"line":70,"column":2}},"line":60},"5":{"name":"(anonymous_5)","decl":{"start":{"line":60,"column":41},"end":{"line":60,"column":42}},"loc":{"start":{"line":60,"column":54},"end":{"line":70,"column":2}},"line":60},"6":{"name":"(anonymous_6)","decl":{"start":{"line":60,"column":65},"end":{"line":60,"column":66}},"loc":{"start":{"line":61,"column":2},"end":{"line":69,"column":4}},"line":61}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":9,"column":73}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":9,"column":73}},{"start":{"line":9,"column":2},"end":{"line":9,"column":73}}],"line":9},"1":{"loc":{"start":{"line":31,"column":8},"end":{"line":33,"column":9}},"type":"if","locations":[{"start":{"line":31,"column":8},"end":{"line":33,"column":9}},{"start":{"line":31,"column":8},"end":{"line":33,"column":9}}],"line":31},"2":{"loc":{"start":{"line":31,"column":12},"end":{"line":31,"column":32}},"type":"binary-expr","locations":[{"start":{"line":31,"column":12},"end":{"line":31,"column":23}},{"start":{"line":31,"column":27},"end":{"line":31,"column":32}}],"line":31},"3":{"loc":{"start":{"line":34,"column":51},"end":{"line":34,"column":88}},"type":"binary-expr","locations":[{"start":{"line":34,"column":51},"end":{"line":34,"column":63}},{"start":{"line":34,"column":67},"end":{"line":34,"column":88}}],"line":34},"4":{"loc":{"start":{"line":38,"column":8},"end":{"line":45,"column":9}},"type":"if","locations":[{"start":{"line":38,"column":8},"end":{"line":45,"column":9}},{"start":{"line":38,"column":8},"end":{"line":45,"column":9}}],"line":38},"5":{"loc":{"start":{"line":50,"column":6},"end":{"line":52,"column":7}},"type":"if","locations":[{"start":{"line":50,"column":6},"end":{"line":52,"column":7}},{"start":{"line":50,"column":6},"end":{"line":52,"column":7}}],"line":50}},"s":{"0":1,"1":1,"2":4,"3":3,"4":1,"5":1,"6":2,"7":2,"8":5,"9":5,"10":12,"11":1,"12":11,"13":11,"14":4,"15":4,"16":7,"17":4,"18":4,"19":4,"20":1,"21":1,"22":1,"23":1,"24":1},"f":{"0":4,"1":2,"2":5,"3":12,"4":1,"5":1,"6":1},"b":{"0":[3,1],"1":[1,11],"2":[12,11],"3":[11,11],"4":[4,7],"5":[4,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"2151ea6fc18243bfa0be1fcd18e26870b88041a0"}
{"/Users/justinschrader/Desktop/KOAN/opensource/react-router-breadcrumbs-hoc/src/index.jsx": {"path":"/Users/justinschrader/Desktop/KOAN/opensource/react-router-breadcrumbs-hoc/src/index.jsx","statementMap":{"0":{"start":{"line":4,"column":30},"end":{"line":4,"column":45}},"1":{"start":{"line":8,"column":17},"end":{"line":11,"column":1}},"2":{"start":{"line":9,"column":2},"end":{"line":9,"column":73}},"3":{"start":{"line":9,"column":42},"end":{"line":9,"column":71}},"4":{"start":{"line":10,"column":2},"end":{"line":10,"column":20}},"5":{"start":{"line":13,"column":30},"end":{"line":59,"column":1}},"6":{"start":{"line":14,"column":18},"end":{"line":14,"column":20}},"7":{"start":{"line":16,"column":2},"end":{"line":56,"column":7}},"8":{"start":{"line":26,"column":26},"end":{"line":26,"column":50}},"9":{"start":{"line":30,"column":6},"end":{"line":48,"column":9}},"10":{"start":{"line":31,"column":8},"end":{"line":33,"column":9}},"11":{"start":{"line":32,"column":10},"end":{"line":32,"column":109}},"12":{"start":{"line":34,"column":22},"end":{"line":34,"column":98}},"13":{"start":{"line":38,"column":8},"end":{"line":45,"column":9}},"14":{"start":{"line":39,"column":10},"end":{"line":43,"column":12}},"15":{"start":{"line":44,"column":10},"end":{"line":44,"column":22}},"16":{"start":{"line":47,"column":8},"end":{"line":47,"column":21}},"17":{"start":{"line":51,"column":6},"end":{"line":53,"column":7}},"18":{"start":{"line":52,"column":8},"end":{"line":52,"column":38}},"19":{"start":{"line":55,"column":6},"end":{"line":55,"column":25}},"20":{"start":{"line":58,"column":2},"end":{"line":58,"column":17}},"21":{"start":{"line":61,"column":31},"end":{"line":71,"column":2}},"22":{"start":{"line":61,"column":41},"end":{"line":71,"column":2}},"23":{"start":{"line":61,"column":54},"end":{"line":71,"column":2}},"24":{"start":{"line":62,"column":2},"end":{"line":70,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":17},"end":{"line":8,"column":18}},"loc":{"start":{"line":8,"column":44},"end":{"line":11,"column":1}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":56},"end":{"line":59,"column":1}},"line":13},"2":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":12},"end":{"line":22,"column":13}},"loc":{"start":{"line":22,"column":35},"end":{"line":56,"column":5}},"line":22},"3":{"name":"(anonymous_3)","decl":{"start":{"line":30,"column":18},"end":{"line":30,"column":19}},"loc":{"start":{"line":30,"column":58},"end":{"line":48,"column":7}},"line":30},"4":{"name":"(anonymous_4)","decl":{"start":{"line":61,"column":31},"end":{"line":61,"column":32}},"loc":{"start":{"line":61,"column":41},"end":{"line":71,"column":2}},"line":61},"5":{"name":"(anonymous_5)","decl":{"start":{"line":61,"column":41},"end":{"line":61,"column":42}},"loc":{"start":{"line":61,"column":54},"end":{"line":71,"column":2}},"line":61},"6":{"name":"(anonymous_6)","decl":{"start":{"line":61,"column":65},"end":{"line":61,"column":66}},"loc":{"start":{"line":62,"column":2},"end":{"line":70,"column":4}},"line":62}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":9,"column":73}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":9,"column":73}},{"start":{"line":9,"column":2},"end":{"line":9,"column":73}}],"line":9},"1":{"loc":{"start":{"line":31,"column":8},"end":{"line":33,"column":9}},"type":"if","locations":[{"start":{"line":31,"column":8},"end":{"line":33,"column":9}},{"start":{"line":31,"column":8},"end":{"line":33,"column":9}}],"line":31},"2":{"loc":{"start":{"line":31,"column":12},"end":{"line":31,"column":32}},"type":"binary-expr","locations":[{"start":{"line":31,"column":12},"end":{"line":31,"column":23}},{"start":{"line":31,"column":27},"end":{"line":31,"column":32}}],"line":31},"3":{"loc":{"start":{"line":34,"column":51},"end":{"line":34,"column":88}},"type":"binary-expr","locations":[{"start":{"line":34,"column":51},"end":{"line":34,"column":63}},{"start":{"line":34,"column":67},"end":{"line":34,"column":88}}],"line":34},"4":{"loc":{"start":{"line":38,"column":8},"end":{"line":45,"column":9}},"type":"if","locations":[{"start":{"line":38,"column":8},"end":{"line":45,"column":9}},{"start":{"line":38,"column":8},"end":{"line":45,"column":9}}],"line":38},"5":{"loc":{"start":{"line":51,"column":6},"end":{"line":53,"column":7}},"type":"if","locations":[{"start":{"line":51,"column":6},"end":{"line":53,"column":7}}],"line":51}},"s":{"0":1,"1":1,"2":6,"3":3,"4":3,"5":1,"6":4,"7":4,"8":7,"9":7,"10":14,"11":1,"12":13,"13":13,"14":6,"15":6,"16":7,"17":6,"18":6,"19":6,"20":3,"21":1,"22":3,"23":3,"24":3},"f":{"0":6,"1":4,"2":7,"3":14,"4":3,"5":3,"6":3},"b":{"0":[3,3],"1":[1,13],"2":[14,13],"3":[13,11],"4":[6,7],"5":[6]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"bce639d601924fc86af26893679de6fb37bbe629"}
}

@@ -76,2 +76,3 @@ 'use strict';

/* istanbul ignore else */
if (breadcrumbMatch) {

@@ -78,0 +79,0 @@ matches.push(breadcrumbMatch);

@@ -12,3 +12,3 @@ module.exports = {

global: {
branches: 90,
branches: 100,
functions: 100,

@@ -15,0 +15,0 @@ lines: 100,

{
"name": "react-router-breadcrumbs-hoc",
"version": "1.0.1",
"version": "1.0.2",
"description": "Dynamic, flexible, component-based breadcrumbs for react-router 4",

@@ -28,2 +28,3 @@ "repository": "icd2k3/react-router-breadcrumbs-hoc",

"babel-preset-stage-1": "^6.24.1",
"coveralls": "^3.0.0",
"enzyme": "^3.1.0",

@@ -49,4 +50,5 @@ "enzyme-adapter-react-16": "^1.0.2",

"test:watch": "jest --watch",
"travis": "jest && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"lint": "eslint ./src/**"
}
}

@@ -6,3 +6,3 @@ <h3 align="center">

<p align="center">
A very small, but flexible HOC for rendering breadcrumbs
A very small, but flexible HOC for rendering breadcrumbs with react-router 4.x
</p>

@@ -14,2 +14,9 @@

<p align="center">
<a href="https://www.npmjs.com/package/react-router-breadcrumbs-hoc" target="_blank"><img src="https://img.shields.io/npm/v/npm.svg" /></a>
<a href="https://david-dm.org/icd2k3/react-router-breadcrumbs-hoc?type=dev" target="_blank"><img src="https://david-dm.org/icd2k3/react-router-breadcrumbs-hoc/dev-status.svg" /></a>
<a href="#" target="_blank"><img src="https://travis-ci.org/icd2k3/react-router-breadcrumbs-hoc.svg?branch=master" /></a>
<a href="https://coveralls.io/github/icd2k3/react-router-breadcrumbs-hoc?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/icd2k3/react-router-breadcrumbs-hoc/badge.svg?branch=master" /></a>
</p>
## Description

@@ -23,4 +30,8 @@

`yarn add react-router-breadcrumbs-hoc` or `npm install react-router-breadcrumbs-hoc`
`yarn add react-router-breadcrumbs-hoc`
or
`npm install react-router-breadcrumbs-hoc --save`
## Usage

@@ -31,4 +42,7 @@

import { NavLink } from 'react-router-dom';
import { withBreadcumbs } from 'react-router-breadcrumbs-hoc';
import { withBreadcrumbs } from 'react-router-breadcrumbs-hoc';
const UserBreadcrumb = ({ match }) =>
<span>{match.params.userId}</span>; // use match param userId to fetch/display user name
const routes = [

@@ -40,5 +54,2 @@ { path: 'users', breadcrumb: 'Users' },

const UserBreadcrumb = ({ match }) =>
<span>{match.params.userId}</span>; // use match param userId to fetch/display user name
const Breadcrumbs = ({ breadcrumbs }) => (

@@ -45,0 +56,0 @@ <div>

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

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