diff --git a/package-lock.json b/package-lock.json index 579ce36..1efcd48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "@runnerty/notifier-mail", - "version": "3.0.3", + "version": "3.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { "@babel/code-frame": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz", - "integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==", + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", "dev": true, "requires": { - "@babel/highlight": "^7.12.13" + "@babel/highlight": "^7.10.4" } }, "@babel/helper-validator-identifier": { @@ -308,12 +308,12 @@ "dev": true }, "eslint": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.19.0.tgz", - "integrity": "sha512-CGlMgJY56JZ9ZSYhJuhow61lMPPjUzWmChFya71Z/jilVos7mR/jPgaEfVGgMBY5DshbKdG8Ezb8FDCHcoMEMg==", + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.20.0.tgz", + "integrity": "sha512-qGi0CTcOGP2OtCQBgWZlQjcTuP0XkIpYFj25XtRTQSHC+umNnp7UMshr2G8SLsRFYDdAPFeHOsiteadmMH02Yw==", "dev": true, "requires": { - "@babel/code-frame": "^7.0.0", + "@babel/code-frame": "7.12.11", "@eslint/eslintrc": "^0.3.0", "ajv": "^6.10.0", "chalk": "^4.0.0", @@ -325,7 +325,7 @@ "eslint-utils": "^2.1.0", "eslint-visitor-keys": "^2.0.0", "espree": "^7.3.1", - "esquery": "^1.2.0", + "esquery": "^1.4.0", "esutils": "^2.0.2", "file-entry-cache": "^6.0.0", "functional-red-black-tree": "^1.0.1", diff --git a/package.json b/package.json index 6bac587..fe63252 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@runnerty/notifier-mail", - "version": "3.0.3", + "version": "3.0.4", "description": "Runnerty module: Mail notifier", "author": "Runnerty Tech", "license": "MIT", @@ -28,7 +28,7 @@ "nodemailer": "~6.4.18" }, "devDependencies": { - "eslint": "^7.19.0", + "eslint": "^7.20.0", "eslint-config-prettier": "^7.2.0", "eslint-plugin-prettier": "^3.3.1", "prettier": "^2.2.1" diff --git a/scaffold/assets/templates/mail-notification/html.html b/scaffold/assets/templates/mail-notification/html.html index 4e9a07e..2febfeb 100755 --- a/scaffold/assets/templates/mail-notification/html.html +++ b/scaffold/assets/templates/mail-notification/html.html @@ -142,10 +142,6 @@ > @GV(message)

- Value: @GV(value_one) -

- Date: @GV(sample_date) -

diff --git a/scaffold/config.json b/scaffold/config.json index d5ec16c..f2d9422 100644 --- a/scaffold/config.json +++ b/scaffold/config.json @@ -9,6 +9,13 @@ "bcc": ["mycc@mail.com"], "templateDir": "./templates", "template": "mail-notification", + "attachments": [ + { + "filename": "runnerty.png", + "path": "./templates/mail-notification/runnerty.png", + "cid": "cidrunnerty@runnerty.png" + } + ], "ejsRender": true }, { @@ -27,6 +34,40 @@ }, "templateDir": "./templates", "template": "mail-notification", + "attachments": [ + { + "filename": "runnerty.png", + "path": "./templates/mail-notification/runnerty.png", + "cid": "cidrunnerty@runnerty.png" + } + ], + "ejsRender": true + }, + { + "id": "mail_sparkpost", + "type": "@runnerty-executor-mail", + "from": "Runnerty ", + "transport": { + "host": "smtp.eu.sparkpostmail.com", + "port": 587, + "secure": false, + "tls": { + "ciphers": "SSLv3" + }, + "auth": { + "user": "SMTP_Injection", + "pass": "sparkpost_api_key" + } + }, + "templateDir": "./templates", + "attachments": [ + { + "filename": "runnerty.png", + "path": "./templates/mail-notification/runnerty.png", + "cid": "cidrunnerty@runnerty.png" + } + ], + "template": "mail-notification", "ejsRender": true } ]