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

wingbot-daktela

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wingbot-daktela - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "wingbot-daktela",
"version": "0.0.2",
"version": "0.0.3",
"description": "Daktela connector for wingbot.ai",

@@ -5,0 +5,0 @@ "main": "src/main.js",

@@ -92,3 +92,4 @@ /*

if (button) {
const [action, data = {}] = JSON.parse(button.name);
const buf = Buffer.from(button.name);
const [action, data = {}] = JSON.parse(buf.toString('utf8'));
req = Request.postBack(

@@ -103,3 +104,4 @@ senderId,

} else if (quickreply) {
const [action, data = {}] = JSON.parse(quickreply.name);
const buf = Buffer.from(quickreply.name);
const [action, data = {}] = JSON.parse(buf.toString('utf8'));

@@ -106,0 +108,0 @@ if (text) {

@@ -48,3 +48,5 @@ /*

return JSON.stringify([action, data]);
const buf = Buffer.from(JSON.stringify([action, data]));
return buf.toString('base64');
}

@@ -152,3 +154,3 @@

async _send (payload) {
const transformed = this._transformPayload(payload);
let transformed = this._transformPayload(payload);

@@ -159,3 +161,5 @@ if (!transformed) {

Object.assign(transformed, {
transformed = Object.assign({
quickreply: []
}, transformed, {
conversation: {

@@ -162,0 +166,0 @@ name: this._conversation.name

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