Skip to content

Commit 6b7cbda

Browse files
author
Sergey Khomushin
committed
build version 3.8.0
1 parent 6b827f6 commit 6b7cbda

File tree

9 files changed

+107
-73
lines changed

9 files changed

+107
-73
lines changed

cjs/methods/send/send.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const send = (serviceID, templateID, templatePrams, publicKey) => {
1616
const uID = publicKey || store_1.store._userID;
1717
(0, validateParams_1.validateParams)(uID, serviceID, templateID);
1818
const params = {
19-
lib_version: '3.7.0',
19+
lib_version: '3.8.0',
2020
user_id: uID,
2121
service_id: serviceID,
2222
template_id: templateID,

cjs/methods/sendForm/sendForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const sendForm = (serviceID, templateID, form, publicKey) => {
3030
const currentForm = findHTMLForm(form);
3131
(0, validateParams_1.validateParams)(uID, serviceID, templateID);
3232
const formData = new FormData(currentForm);
33-
formData.append('lib_version', '3.7.0');
33+
formData.append('lib_version', '3.8.0');
3434
formData.append('service_id', serviceID);
3535
formData.append('template_id', templateID);
3636
formData.append('user_id', uID);

cjs/models/EmailJSResponseStatus.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
33
exports.EmailJSResponseStatus = void 0;
44
class EmailJSResponseStatus {
55
constructor(httpResponse) {
6-
this.status = httpResponse.status;
7-
this.text = httpResponse.responseText;
6+
this.status = httpResponse?.status || 0;
7+
this.text = httpResponse?.responseText || 'Network Error';
88
}
99
}
1010
exports.EmailJSResponseStatus = EmailJSResponseStatus;

0 commit comments

Comments
 (0)