noblox.js
Advanced tools
Comparing version 4.6.0 to 4.6.1
@@ -10,2 +10,10 @@ // Includes | ||
function getRankInGroup (groupId, userId) { | ||
if (typeof groupId === 'string') { | ||
if (!isNaN(groupId)) { | ||
// It's a number in a string | ||
groupId = parseInt(groupId, 10) | ||
} else { | ||
throw new Error('Group id should be a number') | ||
} | ||
} | ||
return http({ url: `//api.roblox.com/users/${userId}/groups` }).then((body) => { | ||
@@ -12,0 +20,0 @@ const bodyObject = JSON.parse(body) |
@@ -10,2 +10,10 @@ // Includes | ||
function getRankNameInGroup (groupId, userId) { | ||
if (typeof groupId === 'string') { | ||
if (!isNaN(groupId)) { | ||
// It's a number in a string | ||
groupId = parseInt(groupId, 10) | ||
} else { | ||
throw new Error('Group id should be a number') | ||
} | ||
} | ||
return http({ url: `//api.roblox.com/users/${userId}/groups` }).then((body) => { | ||
@@ -12,0 +20,0 @@ const bodyObject = JSON.parse(body) |
{ | ||
"name": "noblox.js", | ||
"version": "4.6.0", | ||
"version": "4.6.1", | ||
"description": "A Node.js wrapper for ROBLOX. (original from sentanos)", | ||
@@ -22,4 +22,6 @@ "main": "lib/index.js", | ||
"bluebird": "^3.5.4", | ||
"chalk": "^4.0.0", | ||
"cheerio": "^1.0.0-rc.3", | ||
"entities": "^2.0.0", | ||
"figlet": "^1.4.0", | ||
"request": "^2.81.0", | ||
@@ -40,3 +42,2 @@ "request-promise": "^4.2.4", | ||
"JSONStream": "^1.3.1", | ||
"chalk": "^4.0.0", | ||
"eslint": "^6.8.0", | ||
@@ -48,3 +49,2 @@ "eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"figlet": "^1.3.0", | ||
"progress": "^2.0.0", | ||
@@ -51,0 +51,0 @@ "standard": "^14.3.1" |
@@ -49,3 +49,3 @@ <h1 align="center"> | ||
You can find the current noblox.js wiki with all API documentation [here](https://github.com/suufi/noblox.js/wiki). Keep in mind that all methods may not be documented. A majority of the new features that can be found in noblox.js are not in roblox-js. There will be new documentation coming in with v5.0.0. | ||
You can find the current noblox.js wiki with all API documentation [here](https://noblox.js.org/). Keep in mind that all methods may not be documented. A majority of the new features that can be found in noblox.js are not in roblox-js. There will be new documentation coming in with v5.0.0. | ||
@@ -52,0 +52,0 @@ ## Making use of new login workaround |
9
255019
8
160
6578
+ Addedchalk@^4.0.0
+ Addedfiglet@^1.4.0
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedfiglet@1.7.0(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)