Skip to content

Commit 36e0329

Browse files
chore: update dependencies (#183)
1 parent 47fb24f commit 36e0329

File tree

19 files changed

+25
-15
lines changed

19 files changed

+25
-15
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@
4747
"validate": "kcd-scripts validate"
4848
},
4949
"dependencies": {
50-
"@babel/runtime": "^7.13.10",
51-
"fetch-retry": "^4.1.1",
50+
"@babel/runtime": "^7.17.2",
51+
"fetch-retry": "^5.0.1",
5252
"hast-util-from-parse5": "^6.0.1",
53-
"node-fetch": "^2.6.1",
53+
"node-fetch": "^2.6.7",
5454
"parse5": "^6.0.1",
5555
"unist-util-visit": "^2.0.3"
5656
},
5757
"devDependencies": {
5858
"jest-in-case": "^1.0.2",
59-
"kcd-scripts": "^9.0.0",
60-
"pretty-quick": "^3.1.0",
59+
"kcd-scripts": "^12.0.0",
60+
"pretty-quick": "^3.1.3",
6161
"remark": "^13.0.0",
62-
"remark-html": "13.0.1"
62+
"remark-html": "^13.0.2"
6363
},
6464
"peerDependencies": {
6565
"gatsby": "^3.0.0"

src/__tests__/CustomTransformer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ test('Plugin can transform CustomTransformer links', async () => {
2828
expect(mdastToHtml(processedAST)).toMatchInlineSnapshot(`
2929
<p>https://some-other-site.com/id/abc</p>
3030
<iframe src="https://some-site.com/id/abc"></iframe>
31+
3132
`);
3233
});

src/__tests__/helpers/markdown.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { readFileSync } from 'fs';
22
import remark from 'remark';
3-
import html from 'remark-html';
3+
import remarkHtml from 'remark-html';
44

55
const getFixturesPath = (isCustomTransformer) =>
66
`${__dirname}/../${isCustomTransformer ? '' : 'transformers/'}__fixtures__`;
@@ -14,4 +14,5 @@ const readMarkdownFile = (fileName, isCustomTransformer) =>
1414
export const getMarkdownASTForFile = (fileName, isCustomTransformer = false) =>
1515
remark.parse(readMarkdownFile(fileName, isCustomTransformer));
1616

17-
export const mdastToHtml = (ast) => remark().use(html).stringify(ast);
17+
export const mdastToHtml = (ast) =>
18+
remark().use(remarkHtml, { sanitize: false }).stringify(ast);

src/__tests__/plugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ describe('gatsby-remark-embedder', () => {
6363
<iframe src="https://player.twitch.tv?video=546761743&#x26;parent=embed.example.com" height="300" width="100%" frameborder="0" scrolling="no" allowfullscreen></iframe>
6464
<blockquote class="twitter-tweet-from-cache"><p lang="en" dir="ltr">example</p>— Kent C. Dodds (@kentcdodds) <a href="https://twitter.com/kentcdodds/status/1078755736455278592">December 28, 2018</a></blockquote>
6565
<iframe width="100%" height="315" src="https://www.youtube-nocookie.com/embed/dQw4w9WgXcQ?rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
66+
6667
`);
6768
});
6869

src/__tests__/transformers/CodePen.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,6 @@ test('Plugin can transform CodePen links', async () => {
108108
<iframe src="https://www.codepen.io/team/codepen/embed/preview/PNaGbb" style="width:100%; height:300px;"></iframe>
109109
<iframe src="https://codepen.io/chriscoyier/embed/preview/owBwKM" style="width:100%; height:300px;"></iframe>
110110
<iframe src="https://www.codepen.io/chriscoyier/embed/preview/owBwKM" style="width:100%; height:300px;"></iframe>
111+
111112
`);
112113
});

src/__tests__/transformers/CodeSandbox.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ test('Plugin can transform CodeSandbox links', async () => {
6363
<iframe src="https://codesandbox.io/embed/ynn88nx9x" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking" sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"></iframe>
6464
<iframe src="https://codesandbox.io/embed/ynn88nx9x?view=split" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking" sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"></iframe>
6565
<iframe src="https://www.codesandbox.io/embed/ynn88nx9x" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking" sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"></iframe>
66+
6667
`);
6768
});

src/__tests__/transformers/GIPHY.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,6 @@ test('Plugin can transform GIPHY links', async () => {
154154
<div style="width:100%;height:0;padding-bottom:63%;position:relative;"><iframe src="https://giphy.com/embed/XatG8bioEwwVO" width="100%" height="100%" style="position:absolute" frameborder="0" class="giphy-embed" allowfullscreen></iframe></div>
155155
<div style="width:100%;height:0;padding-bottom:63%;position:relative;"><iframe src="https://giphy.com/embed/XatG8bioEwwVO" width="100%" height="100%" style="position:absolute" frameborder="0" class="giphy-embed" allowfullscreen></iframe></div>
156156
<div style="width:100%;height:0;padding-bottom:63%;position:relative;"><iframe src="https://giphy.com/embed/XatG8bioEwwVO" width="100%" height="100%" style="position:absolute" frameborder="0" class="giphy-embed" allowfullscreen></iframe></div>
157+
157158
`);
158159
});

src/__tests__/transformers/Instagram.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,6 @@ test('Plugin can transform Instagram links', async () => {
149149
<blockquote class="instagram-media-mocked-fetch-plugin"><div><a href="https://instagram.com/p/B60jPE6J8U-"><p>example</p></a><p>A post shared by <a href="https://instagram.com/michaeldeboey">Michaël De Boey</a> (@michaeldeboey) on<time datetime="2020-01-02T14:45:30+00:00">Jan 2, 2020 at 6:45am PST</time></p></div></blockquote>
150150
<blockquote class="instagram-media-mocked-fetch-plugin"><div><a href="https://instagram.com/p/B60jPE6J8U-"><p>example</p></a><p>A post shared by <a href="https://instagram.com/michaeldeboey">Michaël De Boey</a> (@michaeldeboey) on<time datetime="2020-01-02T14:45:30+00:00">Jan 2, 2020 at 6:45am PST</time></p></div></blockquote>
151151
<blockquote class="instagram-media-mocked-fetch-plugin"><div><a href="https://instagram.com/p/B60jPE6J8U-"><p>example</p></a><p>A post shared by <a href="https://instagram.com/michaeldeboey">Michaël De Boey</a> (@michaeldeboey) on<time datetime="2020-01-02T14:45:30+00:00">Jan 2, 2020 at 6:45am PST</time></p></div></blockquote>
152+
152153
`);
153154
});

src/__tests__/transformers/Lichess.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,6 @@ test('Plugin can transform Lichess links', async () => {
113113
<iframe src="https://www.lichess.org/embed/MPJcy1JW?theme=auto&#x26;bg=auto" width="600" height="397" frameborder="0"></iframe>
114114
<iframe src="https://lichess.org/embed/tv123abc56de" width="600" height="397" frameborder="0"></iframe>
115115
<iframe src="https://www.lichess.org/embed/tv123abc56de" width="600" height="397" frameborder="0"></iframe>
116+
116117
`);
117118
});

src/__tests__/transformers/Pinterest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,6 @@ test('Plugin can transform Pinterest links', async () => {
8989
<a data-pin-do="embedPin" href="https://www.pinterest.com/pin/99360735500167749"></a>
9090
<a data-pin-do="embedUser" data-pin-board-width="400" data-pin-scale-height="240" data-pin-scale-width="80" href="https://pinterest.com/pinterest"></a>
9191
<a data-pin-do="embedUser" data-pin-board-width="400" data-pin-scale-height="240" data-pin-scale-width="80" href="https://www.pinterest.com/pinterest"></a>
92+
9293
`);
9394
});

0 commit comments

Comments
 (0)