-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix plugin page failure after updating to 13.10.0 #2251
Fix plugin page failure after updating to 13.10.0 #2251
Conversation
Can you add a test for this please? |
A test has been created to cover this issue. |
842b2e7
to
798bfbd
Compare
lib/manage-prototype-handlers.js
Outdated
@@ -42,7 +42,7 @@ async function isValidVersion (packageName, version) { | |||
const { versions = [], localVersion } = await lookupPackageInfo(packageName, version) | |||
const isVersionValid = [...versions, localVersion].includes(version) | |||
if (!isVersionValid) { | |||
console.log('version', version, ' is not valid, valid options are:\n\n', versions) | |||
console.log('version', version, ' is not valid, valid options are:\n\n', localVersion || versions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This log doesn't describe the condition if localVersion
is set. I'd suggest using the same array as you check against (const validVersions = [...versions, localVersion]
)
I forgot I had a comment earlier in the review process
Final thing - could you squash the commits please? |
… plugin exists where it is expected.
9441c94
to
cbfde67
Compare
See: 13.10.0 fails to start when dependency missing from node_modules