GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — fix: throw on bad version with correct error message by wraithgar · Pull Request #552 · npm/node-semver Conversation
|
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
16a021e to
fd9578b
Compare
There was an error while loading. Please reload this page.
c6b0ce1 to
e0d7c01
Compare
|
Arrays and objects still throw an ambiguous message but is it worth bringing in something like > require('.').diff([], '1.3.2') Uncaught TypeError: Invalid Version: > require('.').diff({}, '1.3.2') Uncaught TypeError: Invalid Version: [object Object] vs > require('.').diff([], '1.3.2') Uncaught TypeError: Invalid Version: [] > require('.').diff({}, '1.3.2') Uncaught TypeError: Invalid Version: {} |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Given that code path should only be hit if you're doing something really wrong, I don't see any harm in making the error more readable with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e0d7c01 to
abdf690
Compare
There was an error while loading. Please reload this page.
Oops... This does break something. I am using this library in a react-native project, and since RN does not run in a Node.js environment, its bundler might not recognize the I've just received a failure report, and haven't investigated into it. Update: I installed util for polyfill, and now it is working fine. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ah I checked the node version support of it but didn’t realise this was also used in a browser 🙈 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.