Skip to content

Commit df1c3e5

Browse files
committed
Upgrade deps
Closes #7
1 parent 1ac31a3 commit df1c3e5

File tree

6 files changed

+22
-18
lines changed

6 files changed

+22
-18
lines changed

lib/markdown-to-react-loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function processCodeBlock (code, lang) {
3232
// users can easily type in any language they want,
3333
// we don't want the app to blow up in case of bad input.
3434
try {
35-
if (typeof lang === 'undefined') {
35+
if (!lang) {
3636
className = '';
3737
highlighter = '';
3838
} else {

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"author": "Jon Sakas <[email protected]>",
88
"license": "MIT",
99
"dependencies": {
10-
"front-matter": "^2.1.2",
11-
"marked": "^0.3.12",
12-
"prismjs": "^1.10.0"
10+
"front-matter": "^3.0.2",
11+
"marked": "^0.7.0",
12+
"prismjs": "^1.17.1"
1313
},
1414
"peerDependencies": {
1515
"react": "^16.2"

test/io/everything.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const Markdown = () => (
180180
and code blocks:
181181
</p>
182182
<blockquote>
183-
<h2 id="this-is-a-header-">This is a header.</h2>
183+
<h2 id="this-is-a-header">This is a header.</h2>
184184
<ol>
185185
<li>This is the first list item.</li>
186186
<li>This is the second list item.</li>

test/io/jsx.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import React, { Fragment } from "react";
22

33
const Markdown = () => (
44
<Fragment>
5-
<div style={{ width: '500px', display: 'flex' }}>JSX</div>
5+
<h1 id="jsx">JSX</h1>
6+
<div style={{ width: "500px", display: "flex" }}>JSX</div>
67
</Fragment>
78
);
89
export default Markdown;

test/io/simple.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Fragment } from "react";
22

33
const Markdown = () => (
44
<Fragment>
5-
<h1 id="hello-world-">Hello, World!</h1>
5+
<h1 id="hello-world">Hello, World!</h1>
66
<p>Its great to be here!</p>
77
</Fragment>
88
);

yarn.lock

+14-11
Original file line numberDiff line numberDiff line change
@@ -1167,11 +1167,12 @@ fragment-cache@^0.2.1:
11671167
dependencies:
11681168
map-cache "^0.2.2"
11691169

1170-
front-matter@^2.1.2:
1171-
version "2.3.0"
1172-
resolved "https://registry.yarnpkg.com/front-matter/-/front-matter-2.3.0.tgz#7203af896ce357ee04e2aa45169ea91ed7f67504"
1170+
front-matter@^3.0.2:
1171+
version "3.0.2"
1172+
resolved "https://registry.yarnpkg.com/front-matter/-/front-matter-3.0.2.tgz#2401cd05fcf22bd0de48a104ffb4efb1ff5c8465"
1173+
integrity sha512-iBGZaWyzqgsrPGsqrXZP6N4hp5FzSKDi18nfAoYpgz3qK5sAwFv/ojmn3VS60SOgLvq6CtojNqy0y6ZNz05IzQ==
11731174
dependencies:
1174-
js-yaml "^3.10.0"
1175+
js-yaml "^3.13.1"
11751176

11761177
fs-minipass@^1.2.5:
11771178
version "1.2.6"
@@ -2003,7 +2004,7 @@ jest@^24.8.0:
20032004
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
20042005
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
20052006

2006-
js-yaml@^3.10.0:
2007+
js-yaml@^3.13.1:
20072008
version "3.13.1"
20082009
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847"
20092010
integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==
@@ -2213,9 +2214,10 @@ map-visit@^1.0.0:
22132214
dependencies:
22142215
object-visit "^1.0.0"
22152216

2216-
marked@^0.3.12:
2217-
version "0.3.19"
2218-
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.19.tgz#5d47f709c4c9fc3c216b6d46127280f40b39d790"
2217+
marked@^0.7.0:
2218+
version "0.7.0"
2219+
resolved "https://registry.yarnpkg.com/marked/-/marked-0.7.0.tgz#b64201f051d271b1edc10a04d1ae9b74bb8e5c0e"
2220+
integrity sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==
22192221

22202222
mem@^4.0.0:
22212223
version "4.3.0"
@@ -2729,9 +2731,10 @@ pretty-format@^24.8.0:
27292731
ansi-styles "^3.2.0"
27302732
react-is "^16.8.4"
27312733

2732-
prismjs@^1.10.0:
2733-
version "1.15.0"
2734-
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.15.0.tgz#8801d332e472091ba8def94976c8877ad60398d9"
2734+
prismjs@^1.17.1:
2735+
version "1.17.1"
2736+
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.17.1.tgz#e669fcbd4cdd873c35102881c33b14d0d68519be"
2737+
integrity sha512-PrEDJAFdUGbOP6xK/UsfkC5ghJsPJviKgnQOoxaDbBjwc8op68Quupwt1DeAFoG8GImPhiKXAvvsH7wDSLsu1Q==
27352738
optionalDependencies:
27362739
clipboard "^2.0.0"
27372740

0 commit comments

Comments
 (0)