silverwind / updates

Flexible npm and poetry dependency update tool
99 stars 8 forks source link

a logic error in function `findVersion` #23

Closed fisker closed 5 years ago

fisker commented 5 years ago

I was checking updates, logic here

https://github.com/silverwind/updates/blob/efcd4e003b9f9b889c6e47221fe78679c2237a44/updates.js#L418-L436

can't handle this versions

const versions = [
  '1.0.0',
  '0.0.0'
]

I temporary fixed my local package use

versions = versions.filter(x => x !== '0.0.0')

package you can test with jpeg-buffer-orientation