Comparing version 1.0.2 to 1.0.3
12
index.js
@@ -49,3 +49,4 @@ const axios = require("axios").default; | ||
var qr = qs.stringify(query); | ||
api.get(`${endpoint}?${qr}`, apiCookie).then(rest => { | ||
var uri = (qr == null ? `${endpoint}` : `${endpoint}?${qr}`) | ||
api.get(uri, apiCookie).then(rest => { | ||
return resolve(rest.data) | ||
@@ -71,3 +72,4 @@ }).catch(e => { | ||
var qr = qs.stringify(query); | ||
api.get(`${endpoint}?${qr}`, conf).then(rest => { | ||
var uri = (qr == null ? `${endpoint}` : `${endpoint}?${qr}`) | ||
api.get(uri, conf).then(rest => { | ||
return resolve(rest.data) | ||
@@ -86,3 +88,4 @@ }).catch(e => { | ||
//var bd = body; | ||
api.post(`${endpoint}?${qr}`, body, apiCookie).then(rest => { | ||
var uri = (qr == null ? `${endpoint}` : `${endpoint}?${qr}`) | ||
api.post(uri, body, apiCookie).then(rest => { | ||
return resolve(rest.data) | ||
@@ -109,3 +112,4 @@ }).catch(e => { | ||
//var bd = body; | ||
api.post(`${endpoint}?${qr}`, body, conf).then(rest => { | ||
var uri = (qr == null ? `${endpoint}` : `${endpoint}?${qr}`) | ||
api.post(uri, body, conf).then(rest => { | ||
return resolve(rest.data) | ||
@@ -112,0 +116,0 @@ }).catch(e => { |
{ | ||
"name": "botrest", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "rest api for development bots", | ||
@@ -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
21140
232