Comparing version 0.0.1 to 0.0.2
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
constructor() | ||
constructor(userAgent) | ||
{ | ||
@@ -26,2 +26,4 @@ /** | ||
this.baseURL = require('./util/Constants').BASE_URL; | ||
this.userAgent = userAgent; | ||
} | ||
@@ -39,2 +41,3 @@ | ||
return this._snek.get(this.baseURL) | ||
.set('User-Agent', this.userAgent || `dadjoke.js (v${require('../../package.json').version} https://github.com/ohlookitsAugust/dadjoke.js)`) | ||
.set('Accept', 'application/json') | ||
@@ -41,0 +44,0 @@ .then((result) => res(result.body)) |
{ | ||
"name": "dadjoke.js", | ||
"description": "An API wrapper for a dad joke! I mean, who doesn't love them?!", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"dependencies": { | ||
@@ -15,3 +15,2 @@ "snekfetch": "3.6.4" | ||
"url": "https://github.com/ohlookitsAugust/dadjoke.js" | ||
} | ||
} | ||
}, "main": "./lib/index.js" } |
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
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
3361
51