[release] v0.14.0-unstable18

This commit is contained in:
Yann Stepienik
2024-02-05 22:03:46 +00:00
parent dc95a6c698
commit 3db8f182cf
2 changed files with 6 additions and 4 deletions

View File

@@ -131,9 +131,11 @@ const convertDockerCompose = (config, serviceName, dockerCompose, setYmlError) =
if (doc.services[key].ports && Array.isArray(doc.services[key].ports)) {
let ports = [];
doc.services[key].ports.forEach((port) => {
port.target = '' + port.target;
port.published = '' + port.published;
ports.push(port);
if (typeof port === 'string') {
ports.push(port);
return;
}
ports.push(`${port.published}:${port.target}/${port.protocol || 'tcp'}`);
});
doc.services[key].ports = ports;
}

View File

@@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.14.0-unstable17",
"version": "0.14.0-unstable18",
"description": "",
"main": "test-server.js",
"bugs": {