Skip to content

Commit

Permalink
Merge pull request #131 from florianeckerstorfer/fix-unist-util-visit
Browse files Browse the repository at this point in the history
Fix unist util visit
  • Loading branch information
florianeckerstorfer committed Nov 15, 2023
2 parents 131cd58 + 5431bae commit e0e57af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/gatsby.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import plugin from '../src/gatsby';
import Remark from 'remark';
import { visit } from 'unist-util-visit';
import visit from 'unist-util-visit';

describe('remark-a11y-emoji/gatsby', () => {
let remark;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fec/remark-a11y-emoji",
"version": "4.0.0",
"version": "4.0.1",
"description": "Remark plugin to add a label to emoji and make them accessible.",
"main": "dist/remark-a11y-emoji.cjs.js",
"module": "dist/remark-a11y-emoji.esm.js",
Expand Down Expand Up @@ -57,7 +57,7 @@
"emoji-regex": "^10.0.0",
"gemoji": "^6.1.0",
"mdast-util-find-and-replace": "^1.1.1",
"unist-util-visit": "^3.1.0"
"unist-util-visit": "^2.0.3"
},
"engines": {
"node": ">=16.0"
Expand Down
2 changes: 1 addition & 1 deletion src/gatsby.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import emojiRegex from 'emoji-regex';
import { visit } from 'unist-util-visit';
import visit from 'unist-util-visit';
import { getEmojiDescription } from './helper';

function a11yEmoji({ markdownAST }) {
Expand Down

0 comments on commit e0e57af

Please sign in to comment.