Skip to content

Commit

Permalink
Support getting all available tags for getSkins / Improve parse skins…
Browse files Browse the repository at this point in the history
… hash
  • Loading branch information
egorprnn committed Mar 28, 2021
1 parent 75847d4 commit af09deb
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 136 deletions.
4 changes: 4 additions & 0 deletions docs/EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ Get skins from a specific tab of the site
nameMc.getSkins({ tab: "new", page: 2 })
.then((skins) => console.log(skins))
.catch((error) => console.log(error));

nameMc.getSkins({ tab: "tag" })
.then((skins) => console.log(skins))
.catch((error) => console.log(error));
```

<a name="getSkin"></a>
Expand Down
4 changes: 4 additions & 0 deletions docs/RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ nameMc.skinHistory({ nickname: "MrZillaGold", page: 2 })
nameMc.getSkins({ tab: "new", page: 2 })
.then((skins) => console.log(skins))
.catch((error) => console.log(error));

nameMc.getSkins({ tab: "tag" })
.then((skins) => console.log(skins))
.catch((error) => console.log(error));
```

<a name="getSkin"></a>
Expand Down
128 changes: 11 additions & 117 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "namemcwrapper",
"version": "1.7.2",
"version": "1.8.0",
"description": "ES6 Promise based wrapper for NameMC.com",
"main": "./dist/NameMC.js",
"exports": {
Expand Down
Loading

0 comments on commit af09deb

Please sign in to comment.