update dependencies

This commit is contained in:
Dawid Dziurla 2020-03-24 13:34:13 +01:00
parent 7dcd3223b9
commit fafdc9738d
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
13 changed files with 125 additions and 41 deletions

View File

@ -82,6 +82,12 @@ try {
core.warning('myInput was not set');
}
if (core.isDebug()) {
// curl -v https://github.com
} else {
// curl https://github.com
}
// Do stuff
}
catch (err) {

View File

@ -55,6 +55,10 @@ export declare function setOutput(name: string, value: string): void;
* @param message add error issue message
*/
export declare function setFailed(message: string): void;
/**
* Gets whether Actions Step Debug is on or not
*/
export declare function isDebug(): boolean;
/**
* Writes debug message to user log
* @param message debug message

View File

@ -104,6 +104,13 @@ exports.setFailed = setFailed;
//-----------------------------------------------------------------------
// Logging Commands
//-----------------------------------------------------------------------
/**
* Gets whether Actions Step Debug is on or not
*/
function isDebug() {
return process.env['RUNNER_DEBUG'] === '1';
}
exports.isDebug = isDebug;
/**
* Writes debug message to user log
* @param message debug message

View File

@ -1 +1 @@
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAE7C,uCAAwB;AACxB,2CAA4B;AAU5B;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAED,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAW;IACtD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAA;IACvB,sBAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,GAAG,CAAC,CAAA;AACtC,CAAC;AAHD,wCAGC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,MAAc;IACtC,sBAAY,CAAC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C;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,eAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAFD,gCAEC;AAED;;GAEG;AACH,SAAgB,QAAQ;IACtB,eAAK,CAAC,UAAU,CAAC,CAAA;AACnB,CAAC;AAFD,4BAEC;AAED;;;;;;;GAOG;AACH,SAAsB,KAAK,CAAI,IAAY,EAAE,EAAoB;;QAC/D,UAAU,CAAC,IAAI,CAAC,CAAA;QAEhB,IAAI,MAAS,CAAA;QAEb,IAAI;YACF,MAAM,GAAG,MAAM,EAAE,EAAE,CAAA;SACpB;gBAAS;YACR,QAAQ,EAAE,CAAA;SACX;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAZD,sBAYC;AAED,yEAAyE;AACzE,uBAAuB;AACvB,yEAAyE;AAEzE;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAa;IACnD,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAFD,8BAEC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,IAAY;IACnC,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,EAAE,CAAA;AAC3C,CAAC;AAFD,4BAEC"}

View File

@ -1,28 +1,28 @@
{
"_from": "@actions/core",
"_id": "@actions/core@1.2.2",
"_from": "@actions/core@1.2.3",
"_id": "@actions/core@1.2.3",
"_inBundle": false,
"_integrity": "sha512-IbCx7oefq+Gi6FWbSs2Fnw8VkEI6Y4gvjrYprY3RV//ksq/KPMlClOerJ4jRosyal6zkUIc8R9fS/cpRMlGClg==",
"_integrity": "sha512-Wp4xnyokakM45Uuj4WLUxdsa8fJjKVl1fDTsPbTEcTcuu0Nb26IPQbOtjmnfaCPGcaoPOOqId8H9NapZ8gii4w==",
"_location": "/@actions/core",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"type": "version",
"registry": true,
"raw": "@actions/core",
"raw": "@actions/core@1.2.3",
"name": "@actions/core",
"escapedName": "@actions%2fcore",
"scope": "@actions",
"rawSpec": "",
"rawSpec": "1.2.3",
"saveSpec": null,
"fetchSpec": "latest"
"fetchSpec": "1.2.3"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.2.tgz",
"_shasum": "3c4848d50378f9e3bcb67bcf97813382ec7369ee",
"_spec": "@actions/core",
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.3.tgz",
"_shasum": "e844b4fa0820e206075445079130868f95bfca95",
"_spec": "@actions/core@1.2.3",
"_where": "/home/dawidd6/github/dawidd6/action-send-mail",
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
@ -63,5 +63,5 @@
"tsc": "tsc"
},
"types": "lib/core.d.ts",
"version": "1.2.2"
"version": "1.2.3"
}

View File

@ -1,5 +1,13 @@
# CHANGELOG
## 6.4.6 2020-03-20
- fix: `requeueAttempts=n` should requeue `n` times (Patrick Malouin) [a27ed2f7]
## 6.4.4 2020-03-01
- Add `options.forceAuth` for SMTP (Patrick Malouin) [a27ed2f7]
## 6.4.3 2020-02-22
- Added an option to specify max number of requeues when connection closes unexpectedly (Igor Sechyn) [8a927f5a]

View File

@ -420,7 +420,7 @@ class SMTPPool extends EventEmitter {
return true;
}
return queueEntry.requeueAttempts && queueEntry.requeueAttempts < this.options.maxRequeues;
return queueEntry.requeueAttempts < this.options.maxRequeues;
}
_failDeliveryOnConnectionClose(connection) {
@ -613,7 +613,7 @@ class SMTPPool extends EventEmitter {
return;
}
if (auth && connection.allowsAuth) {
if (auth && (connection.allowsAuth || options.forceAuth)) {
connection.login(auth, err => {
if (returned) {
return;

View File

@ -137,7 +137,7 @@ class PoolResource extends EventEmitter {
return;
}
if (this.auth && this.connection.allowsAuth) {
if (this.auth && (this.connection.allowsAuth || options.forceAuth)) {
this.connection.login(this.auth, err => {
if (returned) {
return;

View File

@ -267,7 +267,7 @@ class SMTPTransport extends EventEmitter {
let auth = this.getAuth(mail.data.auth);
if (auth && connection.allowsAuth) {
if (auth && (connection.allowsAuth || options.forceAuth)) {
connection.login(auth, err => {
if (auth && auth !== this.auth && auth.oauth2) {
auth.oauth2.removeAllListeners();
@ -370,7 +370,7 @@ class SMTPTransport extends EventEmitter {
let authData = this.getAuth({});
if (authData && connection.allowsAuth) {
if (authData && (connection.allowsAuth || options.forceAuth)) {
connection.login(authData, err => {
if (returned) {
return;

33
node_modules/nodemailer/package.json generated vendored
View File

@ -1,27 +1,27 @@
{
"_from": "nodemailer",
"_id": "nodemailer@6.4.3",
"_from": "nodemailer@6.4.6",
"_id": "nodemailer@6.4.6",
"_inBundle": false,
"_integrity": "sha512-zmx4MTzYWQo2abFexvFYVURaiBGLekoA/yjP2Ctigd82hYtC4n38pcphQBi805t7AB2sY6DwmxnP/tb77f3KHA==",
"_integrity": "sha512-/kJ+FYVEm2HuUlw87hjSqTss+GU35D4giOpdSfGp7DO+5h6RlJj7R94YaYHOkoxu1CSaM0d3WRBtCzwXrY6MKA==",
"_location": "/nodemailer",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"type": "version",
"registry": true,
"raw": "nodemailer",
"raw": "nodemailer@6.4.6",
"name": "nodemailer",
"escapedName": "nodemailer",
"rawSpec": "",
"rawSpec": "6.4.6",
"saveSpec": null,
"fetchSpec": "latest"
"fetchSpec": "6.4.6"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.3.tgz",
"_shasum": "10d29195fb020e3297495bcba39d3519b23483f3",
"_spec": "nodemailer",
"_resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.6.tgz",
"_shasum": "d37f504f6560b36616f646a606894fe18819107f",
"_spec": "nodemailer@6.4.6",
"_where": "/home/dawidd6/github/dawidd6/action-send-mail",
"author": {
"name": "Andris Reinman"
@ -37,20 +37,20 @@
"bunyan": "1.8.12",
"chai": "4.2.0",
"eslint-config-nodemailer": "1.2.0",
"eslint-config-prettier": "6.7.0",
"grunt": "1.0.4",
"eslint-config-prettier": "6.10.0",
"grunt": "1.1.0",
"grunt-cli": "1.3.2",
"grunt-eslint": "22.0.0",
"grunt-mocha-test": "0.13.3",
"libbase64": "1.2.1",
"libmime": "4.2.1",
"libqp": "1.1.0",
"mocha": "6.2.2",
"mocha": "7.1.1",
"nodemailer-ntlm-auth": "1.0.1",
"proxy": "1.0.1",
"proxy-test-server": "1.0.0",
"sinon": "7.5.0",
"smtp-server": "3.5.0"
"sinon": "9.0.1",
"smtp-server": "3.6.0"
},
"engines": {
"node": ">=6.0.0"
@ -67,7 +67,8 @@
"url": "git+https://github.com/nodemailer/nodemailer.git"
},
"scripts": {
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\"",
"test": "grunt"
},
"version": "6.4.3"
"version": "6.4.6"
}

58
node_modules/nodemailer/postinstall.js generated vendored Normal file
View File

@ -0,0 +1,58 @@
/* eslint no-control-regex:0 */
'use strict';
const packageData = require('./package.json');
const isEnabled = value => !!value && value !== '0' && value !== 'false';
const canUseColor = isEnabled(process.env.npm_config_color);
const text = `=== Nodemailer ${packageData.version} ===
Thank you for using Nodemailer for your email sending needs! While Nodemailer itself is mostly meant to be a SMTP client there are other related projects in the Nodemailer project as well.
For example:
> IMAP API ( https://imapapi.com ) is a server application to easily access IMAP accounts via REST API
> NodemailerApp ( https://nodemailer.com/app/ ) is a cross platform GUI app to debug emails
`;
const formatRow = (row, columns) => {
if (row.length <= columns) {
return [row];
}
// wrap!
let lines = [];
while (row.length) {
if (row.length <= columns) {
lines.push(row);
break;
}
let slice = row.substr(0, columns);
let match = slice.match(/(\s+)[^\s]*$/);
if (match && match.index) {
let line = row.substr(0, match.index);
row = row.substr(line.length + match[1].length);
lines.push(line);
} else {
lines.push(row);
break;
}
}
return lines;
};
const wrapText = text => {
let columns = Number(process.stdout.columns) || 80;
columns = Math.min(columns, 80) - 1;
return text
.split('\n')
.flatMap(row => formatRow(row, columns))
.join('\n');
};
const banner = wrapText(text)
.replace(/^/gm, '\u001B[96m')
.replace(/$/gm, '\u001B[0m')
.replace(/(https:[^\s)]+)/g, '\u001B[94m $1 \u001B[96m');
console.log(canUseColor ? banner : banner.replace(/\u001B\[\d+m/g, ''));

12
package-lock.json generated
View File

@ -5,14 +5,14 @@
"requires": true,
"dependencies": {
"@actions/core": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.2.tgz",
"integrity": "sha512-IbCx7oefq+Gi6FWbSs2Fnw8VkEI6Y4gvjrYprY3RV//ksq/KPMlClOerJ4jRosyal6zkUIc8R9fS/cpRMlGClg=="
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.3.tgz",
"integrity": "sha512-Wp4xnyokakM45Uuj4WLUxdsa8fJjKVl1fDTsPbTEcTcuu0Nb26IPQbOtjmnfaCPGcaoPOOqId8H9NapZ8gii4w=="
},
"nodemailer": {
"version": "6.4.3",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.3.tgz",
"integrity": "sha512-zmx4MTzYWQo2abFexvFYVURaiBGLekoA/yjP2Ctigd82hYtC4n38pcphQBi805t7AB2sY6DwmxnP/tb77f3KHA=="
"version": "6.4.6",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.6.tgz",
"integrity": "sha512-/kJ+FYVEm2HuUlw87hjSqTss+GU35D4giOpdSfGp7DO+5h6RlJj7R94YaYHOkoxu1CSaM0d3WRBtCzwXrY6MKA=="
}
}
}

View File

@ -17,7 +17,7 @@
},
"homepage": "https://github.com/dawidd6/action-send-mail#readme",
"dependencies": {
"@actions/core": "^1.2.2",
"nodemailer": "^6.4.3"
"@actions/core": "^1.2.3",
"nodemailer": "^6.4.6"
}
}