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

fraight-bot-client

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fraight-bot-client - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

13

index.js

@@ -25,3 +25,4 @@ const express = require('express');

headers: this.headers,
delay: this.params.delay
delay: this.params.delay,
app: this.app,
});

@@ -50,2 +51,8 @@ next();

get promiseForReply() {
new Promise((resolve, reject) => {
this.on('reply', resolve);
})
}
on(name, cb) {

@@ -103,3 +110,3 @@ this.app.on(name, cb);

class BotThread {
constructor({ botThread, message, headers, host, delay }) {
constructor({ botThread, message, headers, host, delay, app }) {
this.seen_at = Date.now();

@@ -111,2 +118,3 @@ this.delay = delay;

this.host = host;
this.app = app;
}

@@ -188,2 +196,3 @@

axios(this.requestOptions)
.then(() => this.app.emit('reply'))
.then(resolve)

@@ -190,0 +199,0 @@ .catch(reject),

2

package.json
{
"name": "fraight-bot-client",
"version": "0.2.3",
"version": "0.2.4",
"description": "",

@@ -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