react-router-breadcrumbs-hoc
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "react-router-breadcrumbs-hoc", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Just a tiny, flexible, higher order component for rendering breadcrumbs with react-router 4.x", | ||
@@ -13,4 +13,4 @@ "repository": "icd2k3/react-router-breadcrumbs-hoc", | ||
], | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"main": "dist/umd/index.js", | ||
"module": "dist/es/index.js", | ||
"author": "Koan Inc.", | ||
@@ -48,3 +48,3 @@ "license": "MIT", | ||
"react-router-dom": "^4.2.2", | ||
"rollup": "^0.52.3", | ||
"rollup": "^0.53.0", | ||
"rollup-plugin-babel": "^3.0.3", | ||
@@ -51,0 +51,0 @@ "rollup-plugin-commonjs": "^8.2.6", |
@@ -14,3 +14,2 @@ <h3 align="center"> | ||
<p align="center"> | ||
<a href="https://badge.fury.io/js/react-router-breadcrumbs-hoc"><img src="https://badge.fury.io/js/react-router-breadcrumbs-hoc.svg" alt="npm version"></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> | ||
@@ -58,5 +57,5 @@ <a href="#" target="_blank"><img src="https://travis-ci.org/icd2k3/react-router-breadcrumbs-hoc.svg?branch=master" /></a> | ||
// map & render your breadcrumb components however you want | ||
const Breadcrumbs = ({ breadcrumbs }) => ( | ||
<div> | ||
// map & render your breadcrumb components however you want | ||
{breadcrumbs.map(({ breadcrumb, path, match }) => ( | ||
@@ -63,0 +62,0 @@ <span key={path}> |
@@ -9,8 +9,9 @@ import babel from 'rollup-plugin-babel'; | ||
const globals = { | ||
react: 'React', | ||
'react-router': 'ReactRouter', | ||
}; | ||
const config = { | ||
input: 'src/index.js', | ||
globals: { | ||
react: 'React', | ||
'react-router': 'ReactRouter', | ||
}, | ||
plugins: [ | ||
@@ -33,2 +34,3 @@ babel({ | ||
format: 'umd', | ||
globals, | ||
name: 'react-router-breadcrumbs-hoc', | ||
@@ -40,2 +42,3 @@ sourcemap: true, | ||
format: 'es', | ||
globals, | ||
sourcemap: true, | ||
@@ -42,0 +45,0 @@ }, |
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
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
465532
675
102