'use strict';

const stableVersion = require('stable-node-version');
const pMap = require('p-map');

module.exports = config => {
	const versions = config.node_js || ['stable'];

	return pMap(versions, version => version === 'stable' ? stableVersion() : version);
};

'use strict';

const stableVersion = require('stable-node-version');
const pMap = require('p-map');

module.exports = config => {
	const versions = config.node_js || ['stable'];

	return pMap(versions, version => {
		if (version === 'stable' || version === 'node') {
			return stableVersion();
		}

		return version;
	});
};

add "node" version alias, fix #43