4 Commits

Author SHA1 Message Date
69f095044a 3.0.3 2022-08-07 18:25:49 +02:00
d1b577275f fix(core): update 2022-08-07 18:25:48 +02:00
426abc0678 3.0.2 2022-08-07 18:23:54 +02:00
3d282385f3 fix(core): update 2022-08-07 18:23:53 +02:00
7 changed files with 17 additions and 25 deletions

View File

@ -12,20 +12,12 @@ stages:
- release
- metadata
before_script:
- npm install -g @shipzone/npmci
# ====================
# security stage
# ====================
mirror:
stage: security
script:
- npmci git mirror
only:
- tags
tags:
- lossless
- docker
- notpriv
auditProductionDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security
@ -36,6 +28,7 @@ auditProductionDependencies:
- npmci command npm audit --audit-level=high --only=prod --production
tags:
- docker
allow_failure: true
auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
@ -96,10 +89,9 @@ codequality:
only:
- tags
script:
- npmci command npm install -g tslint typescript
- npmci command npm install -g typescript
- npmci npm prepare
- npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags:
- lossless
- docker
@ -119,11 +111,10 @@ trigger:
pages:
stage: metadata
script:
- npmci node install lts
- npmci command npm install -g @gitzone/tsdoc
- npmci node install stable
- npmci npm prepare
- npmci npm install
- npmci command tsdoc
- npmci command npm run buildDocs
tags:
- lossless
- docker

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@pushrocks/smartsmtp",
"version": "3.0.1",
"version": "3.0.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/smartsmtp",
"version": "3.0.1",
"version": "3.0.3",
"license": "MIT",
"dependencies": {
"@pushrocks/smartmail": "^1.0.21",

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartsmtp",
"version": "3.0.1",
"version": "3.0.3",
"private": false,
"description": "a module for handling smtp stuff",
"main": "dist_ts/index.js",
@ -10,7 +10,8 @@
"license": "MIT",
"scripts": {
"test": "(tstest test/)",
"build": "(tsbuild --web --allowimplicitany)"
"build": "(tsbuild --web --allowimplicitany)",
"buildDocs": "tsdoc"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.65",

View File

@ -40,6 +40,6 @@ tap.test('should create a direct smartsmtp transport', async () => {
'phil@kunz.io'
);
console.log(result);
})
});
tap.start();

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartsmtp',
version: '3.0.1',
version: '3.0.3',
description: 'a module for handling smtp stuff'
}

View File

@ -1 +1 @@
export * from './smartsmtp.classes.smartsmtp.js';
export * from './smartsmtp.classes.smartsmtp.js';

View File

@ -26,7 +26,7 @@ export class Smartsmtp {
public static async createSmartsmtpSendmail() {
const nodemailerTransport = plugins.nodemailer.createTransport({
sendmail: true,
newline: 'unix'
newline: 'unix',
});
return new Smartsmtp(nodemailerTransport);
}
@ -61,7 +61,7 @@ export class Smartsmtp {
});
}
const response = await this.nodemailerTransport.sendMail(message).catch(err => {
const response = await this.nodemailerTransport.sendMail(message).catch((err) => {
console.log(err);
});
return response;