Skip to content

Commit

Permalink
feat($vuepress-plugin-vssue): add gitee api v5
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed May 23, 2019
1 parent ec4a365 commit 98982cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vssue/vuepress-plugin-vssue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ module.exports = ({
'github': '@vssue/api-github-v3',
'gitlab': '@vssue/api-gitlab-v4',
'bitbucket': '@vssue/api-bitbucket-v2',
'gitee': '@vssue/api-gitee-v5',
}

const apiPkg = platformAPI[platform]

if (!apiPkg) {
throw new Error(`[@vssue/vuepress-plugin-vssue] Platform '${platform}' is not supported. Available platforms: github, gitlab, bitbucket.`)
throw new Error(`[@vssue/vuepress-plugin-vssue] Platform '${platform}' is not supported. Available platforms: github, gitlab, bitbucket, gitee.`)
}

try {
Expand Down

0 comments on commit 98982cf

Please sign in to comment.