recime-message-responder
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -49,2 +49,5 @@ "use strict"; | ||
if (config) { | ||
if (config.variable) { | ||
config.variable = config.variable.replace(/[\{\}\s]+/ig, ""); | ||
} | ||
const str = JSON.stringify(config); | ||
@@ -51,0 +54,0 @@ const template = HandleBars.compile(str); |
@@ -25,7 +25,7 @@ import request from "request"; | ||
if (config.variable){ | ||
const variable = config.variable.replace(/[\{\}\s]+/ig, ""); | ||
context.vars.set(variable, body); | ||
context.vars.set(config.variable, body); | ||
} | ||
done(); | ||
}); | ||
} |
{ | ||
"name": "recime-message-responder", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -59,2 +59,5 @@ import fs = require("fs"); | ||
if (config){ | ||
if (config.variable){ | ||
config.variable = config.variable.replace(/[\{\}\s]+/ig, ""); | ||
} | ||
const str = JSON.stringify(config); | ||
@@ -61,0 +64,0 @@ const template = HandleBars.compile(str); |
21127
556