Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
69f095044a | |||
d1b577275f | |||
426abc0678 | |||
3d282385f3 | |||
afd6bb8479 | |||
6dce86480c |
@ -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
|
||||
|
2503
package-lock.json
generated
2503
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartsmtp",
|
||||
"version": "3.0.0",
|
||||
"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",
|
||||
@ -20,7 +21,7 @@
|
||||
"@types/node": "^18.6.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartmail": "^1.0.18",
|
||||
"@pushrocks/smartmail": "^1.0.21",
|
||||
"@types/nodemailer": "^6.4.5",
|
||||
"nodemailer": "^6.7.7"
|
||||
},
|
||||
|
@ -40,6 +40,6 @@ tap.test('should create a direct smartsmtp transport', async () => {
|
||||
'phil@kunz.io'
|
||||
);
|
||||
console.log(result);
|
||||
})
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartsmtp',
|
||||
version: '3.0.0',
|
||||
version: '3.0.3',
|
||||
description: 'a module for handling smtp stuff'
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export * from './smartsmtp.classes.smartsmtp.js';
|
||||
export * from './smartsmtp.classes.smartsmtp.js';
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user