node-streamelements
Advanced tools
Comparing version 0.1.1 to 0.1.2
10
index.js
@@ -7,6 +7,6 @@ const request = require('request'); | ||
constructor(options) { | ||
// Establish the base URL for the API. | ||
this.base = options.base || 'https://api.streamelements.com/kappa/v2'; | ||
// Store the user's access token in the instance. | ||
@@ -47,4 +47,4 @@ this.jwt = options.token; | ||
// If we receive a status code other than 200 OK, reject the Promise. | ||
if (response.statusCode !== 200) { | ||
// If we receive a status code other than 2XX range, reject the Promise. | ||
if (response.statusCode < 200 || response.statusCode > 299) { | ||
return reject(`Error encountered during request to StreamElements. Status Code: ${response.statusCode}`); | ||
@@ -494,2 +494,2 @@ } | ||
module.exports = StreamElements; | ||
module.exports = StreamElements; |
{ | ||
"name": "node-streamelements", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "An unofficial wrapper for the StreamElements API.", | ||
@@ -5,0 +5,0 @@ "main": "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
22816
451