Skip to content

Commit

Permalink
Update remark-contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 4, 2021
1 parent 7ed5b8d commit 85d6f71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'
import gitContributors from 'contributors-from-git'
import injectContributors from 'remark-contributors'
import remarkContributors from 'remark-contributors'
import {read} from 'to-vfile'
import {findUpOne} from 'vfile-find-up'
import {loadPlugin} from 'load-plugin'
Expand Down Expand Up @@ -169,18 +169,12 @@ export default function remarkGitContributors(options) {
formatters.social = false
}

injectContributors({
remarkContributors({
contributors,
formatters,
appendIfMissing: options.appendIfMissing,
align: 'left'
})(root, file, (error) => {
if (error) {
reject(error)
} else {
resolve()
}
})
})(root, file).then(resolve, reject)
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"load-plugin": "^4.0.0",
"mdast-util-heading-range": "^3.0.0",
"parse-author": "^2.0.0",
"remark-contributors": "^5.0.0",
"remark-contributors": "^6.0.0",
"to-vfile": "^7.0.0",
"vfile-find-up": "^6.0.0"
},
Expand Down

0 comments on commit 85d6f71

Please sign in to comment.