mirror of
https://github.com/danbulant/docker-compose
synced 2026-06-19 14:41:16 +00:00
Compare commits
No commits in common. "master" and "v0.23.14" have entirely different histories.
2 changed files with 4 additions and 10 deletions
10
package.json
10
package.json
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@iceprod/docker-compose",
|
||||
"version": "0.24.0",
|
||||
"name": "docker-compose",
|
||||
"version": "0.23.14",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
"test",
|
||||
"test-tools"
|
||||
],
|
||||
"author": "Alexander Zeitler <alexander.zeitler@pdmlab.com>, Daniel Bulan <danbulant@danbulant.eu>",
|
||||
"author": "Alexander Zeitler <alexander.zeitler@pdmlab.com>",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Ignatiev Mikhail"
|
||||
|
|
@ -75,10 +75,6 @@
|
|||
},
|
||||
{
|
||||
"name": "gautaz"
|
||||
},
|
||||
{
|
||||
"name": "Daniel Bulant",
|
||||
"url": "https://github.com/danbulant"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
|
|
|
|||
|
|
@ -82,12 +82,11 @@ export const mapPsOutput = (output: string): DockerComposePsResult => {
|
|||
const services = output
|
||||
.split(`\n`)
|
||||
.filter(nonEmptyString)
|
||||
.filter((_, index) => index > 0)
|
||||
.filter((_, index) => index > 1)
|
||||
.map((line) => {
|
||||
const [
|
||||
nameFragment,
|
||||
commandFragment,
|
||||
serviceFragment,
|
||||
stateFragment,
|
||||
untypedPortsFragment
|
||||
] = line.split(/\s{3,}/)
|
||||
|
|
@ -95,7 +94,6 @@ export const mapPsOutput = (output: string): DockerComposePsResult => {
|
|||
return {
|
||||
name: nameFragment.trim(),
|
||||
command: commandFragment.trim(),
|
||||
service: serviceFragment.trim(),
|
||||
state: stateFragment.trim(),
|
||||
ports: mapPorts(untypedPortsFragment.trim())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue