Skip to content

Commit 1dba707

Browse files
author
Sergey Khomushin
committed
build version 3.3.0
1 parent 8c6b7b5 commit 1dba707

File tree

6 files changed

+858
-298
lines changed

6 files changed

+858
-298
lines changed

cjs/methods/send/send.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ const sendPost_1 = require("../../api/sendPost");
1414
*/
1515
const send = (serviceID, templateID, templatePrams, userID) => {
1616
const uID = userID || store_1.store._userID;
17-
validateParams_1.validateParams(uID, serviceID, templateID);
17+
(0, validateParams_1.validateParams)(uID, serviceID, templateID);
1818
const params = {
19-
lib_version: '3.2.0',
19+
lib_version: '3.3.0',
2020
user_id: uID,
2121
service_id: serviceID,
2222
template_id: templateID,
2323
template_params: templatePrams,
2424
};
25-
return sendPost_1.sendPost('/api/v1.0/email/send', JSON.stringify(params), {
25+
return (0, sendPost_1.sendPost)('/api/v1.0/email/send', JSON.stringify(params), {
2626
'Content-type': 'application/json',
2727
});
2828
};

cjs/methods/sendForm/sendForm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ const findHTMLForm = (form) => {
2828
const sendForm = (serviceID, templateID, form, userID) => {
2929
const uID = userID || store_1.store._userID;
3030
const currentForm = findHTMLForm(form);
31-
validateParams_1.validateParams(uID, serviceID, templateID);
31+
(0, validateParams_1.validateParams)(uID, serviceID, templateID);
3232
const formData = new FormData(currentForm);
33-
formData.append('lib_version', '3.2.0');
33+
formData.append('lib_version', '3.3.0');
3434
formData.append('service_id', serviceID);
3535
formData.append('template_id', templateID);
3636
formData.append('user_id', uID);
37-
return sendPost_1.sendPost('/api/v1.0/email/send-form', formData);
37+
return (0, sendPost_1.sendPost)('/api/v1.0/email/send-form', formData);
3838
};
3939
exports.sendForm = sendForm;

0 commit comments

Comments
 (0)