slmjkdbtl / is-is-odd

:shrimp: check if the given function is is-odd
zlib License
99 stars 7 forks source link

Support other versions of is-odd #9

Open DustInComp opened 12 months ago

DustInComp commented 12 months ago

My project directly depends on an older version of is-odd for legacy reasons but even the earliest release of is-is-odd seems to only check against the latest version that matches its own dependency (at time of install?) resulting in a false negative.

image

image

Minimal reproducible example:

mkdir is-is-odd-example
cd is-is-odd-example
npm install is-odd@2 is-is-odd
node -e "console.log(require('is-is-odd')(require('is-odd')))"
# outputs false