Socket
Socket
Sign inDemoInstall

recime-message-responder

Package Overview
Dependencies
251
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.1 to 1.4.2

2

dist/request.d.ts

@@ -11,3 +11,3 @@ import { Vars } from './vars';

export declare class Request {
send(__: any, id: String, options: RequestOptions): any;
send(__: any, options: RequestOptions): any;
}

@@ -5,3 +5,3 @@ "use strict";

class Request {
send(__, id, options) {
send(__, options) {
let next = false;

@@ -8,0 +8,0 @@ if (options.res && options.res.length) {

@@ -15,7 +15,6 @@ "use strict";

this.args = args;
this.id = this.args.id;
}
respond() {
const __ = recime_bot_extension_1.default.default;
return recime_keyvalue_store_1.default.get(this.id).then((vals) => {
return recime_keyvalue_store_1.default.get(`${process.env.UID}-${this.args.sender}-values`).then((vals) => {
const vars = new vars_1.Vars(vals || {});

@@ -68,3 +67,3 @@ const data = vars.get('user-input');

v.vals.args = this.args;
return req.send(__, this.id, {
return req.send(__, {
res: res,

@@ -101,3 +100,3 @@ vars: v,

delete v.vals['system_message_id'];
return recime_keyvalue_store_1.default.set(this.args.sender, v.vals || {}).then(() => JSON.parse(template(user)));
return recime_keyvalue_store_1.default.set(`${process.env.UID}-${this.args.sender}-values`, v.vals).then(() => JSON.parse(template(user)));
}).catch(error => {

@@ -104,0 +103,0 @@ return __.text(error.message);

{
"name": "recime-message-responder",
"version": "1.4.1",
"version": "1.4.2",
"description": "",

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

@@ -13,3 +13,3 @@ import { CodeBlock } from './code-block';

export class Request {
send(__:any, id: String, options: RequestOptions) {
send(__:any, options: RequestOptions) {
let next = false;

@@ -16,0 +16,0 @@ if (options.res && options.res.length) {

@@ -20,3 +20,2 @@ import HandleBars from 'handlebars';

this.args = args;
this.id = this.args.id;
}

@@ -26,4 +25,3 @@

const __ = Ext.default;
return db.get(this.id).then((vals) => {
return db.get(`${process.env.UID}-${this.args.sender}-values`).then((vals) => {
const vars = new Vars(vals || {});

@@ -89,3 +87,2 @@ const data = vars.get('user-input');

__
, this.id
, {

@@ -126,3 +123,3 @@ res: res

return db.set(this.args.sender, v.vals|| {}).then(() => JSON.parse(template(user)));
return db.set(`${process.env.UID}-${this.args.sender}-values`, v.vals).then(() => JSON.parse(template(user)));
}).catch(error => {

@@ -129,0 +126,0 @@ return __.text(error.message);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc