- Allow `publish` plugins to return an `Object` with information related to the releases - Add the `success` plugin hook, called when all `publish` are successful, receiving a list of release - Add the `fail` plugin hook, called when an error happens at any point, receiving a list of errors - Add detailed message for each error
8 lines
177 B
JavaScript
8 lines
177 B
JavaScript
const {isFunction} = require('lodash');
|
|
|
|
function extractErrors(err) {
|
|
return err && isFunction(err[Symbol.iterator]) ? [...err] : [err];
|
|
}
|
|
|
|
module.exports = {extractErrors};
|