Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

botrest

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botrest - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc