I've got a git diff output string parsed to this array, which gives me all changed dependencies in a package.json file:

```
const data = [
    [ '-', '@date-io/moment', '1.3.13', '1', '3', '13' ],
    [ '+', '@date-io/moment', '1.3.14', '1', '3', '14' ],
    [ '-', '@emotion/react', '11.7.0', '11', '7', '0' ],
    [ '-', '@emotion/styled', '11.6.0', '11', '6', '0' ],
    [ '+', '@emotion/react', '11.8.2', '11', '8', '2' ],
    [ '+', '@emotion/styled', '11.8.1', '11', '8', '1' ]
]

```

The first element (`+`/ `-`) shows me if this change was added or deleted. The second element is the package name (this is the element, which connects two arrays), and the next fields give me the version.
Now I need to iterate this array to find out which kind of version change has been made for each package. So the output should be:

```
{
    '@date-io/moment': 'patch',
    '@emotion/react': 'minor',
    '@emotion/styled': 'minor'
}

```

I tried to get all packages by doing

```
const result = {}
data.forEach(d => {
    result[d[1]] = bump // how to calculate `bump`?
})

```

But this doesn't handle `+` and `-` and it doesn't calculate the type of version bump.