Comparing version 1.0.5 to 1.1.0
{ | ||
"name": "unb-api", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"description": "API wrapper for UnbelievaBoat Discord Bot API", | ||
"main": "src/index.js", | ||
"types": "typings/index.d.ts", | ||
"scripts": { | ||
"test": "tslint 'typings/*.ts'" | ||
}, | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -24,3 +21,3 @@ "type": "git", | ||
"@types/node": "^10.0.7", | ||
"tslint": "^5.8.0", | ||
"eslint": "^6.7.2", | ||
"typescript": "^2.6.2" | ||
@@ -27,0 +24,0 @@ }, |
@@ -13,3 +13,3 @@ # UnbelievaBoat API | ||
## Documentation | ||
Full API documentation is located at [https://unb.pizza/api/docs](https://unb.pizza/api/docs) | ||
Full API documentation is located at [https://unbelievaboat.com/api/docs](https://unbelievaboat.com/api/docs) | ||
@@ -19,3 +19,3 @@ ### Example | ||
const { Client } = require('unb-api'); | ||
const client = new Client('TOKEN'); // Get your API token from https://unb.pizza/api/docs | ||
const client = new Client('TOKEN'); // Get your API token from https://unbelievaboat.com/api/docs | ||
@@ -66,2 +66,2 @@ const guildID = '305129477627969547'; | ||
## Support | ||
[**Discord Server**](https://discord.gg/YMJ2dGp) | ||
[**Discord Server**](https://discord.gg/YMJ2dGp) |
module.exports = { | ||
version: require('../package').version, | ||
Client: require('./lib/client'), | ||
Client: require('./lib/Client'), | ||
User: require('./lib/structures/User') | ||
}; |
@@ -37,6 +37,15 @@ /** | ||
Object.defineProperty(this, 'rawData', {value: data}); | ||
/** | ||
* Raw data response | ||
* @type {object} | ||
*/ | ||
Object.defineProperty(this, 'rawData', { value: data }); | ||
} | ||
get id() { | ||
return this.user_id; | ||
} | ||
} | ||
module.exports = User; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11898
12
234
65
1