You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionvalidName(file,data){if(!data.name){data.name=""returntrue}// some more stuff}
Perhaps in the whole npm flow, name and version are checked somewhere else as well. But as stand-alone module, I think it'd be better to throw here as well.
The text was updated successfully, but these errors were encountered:
darcyclarke
changed the title
Does original code accept empty name and/or version string?
[QUESTION] Does original code accept empty name and/or version string?
Jul 28, 2022
Original code:
Perhaps in the whole npm flow, name and version are checked somewhere else as well. But as stand-alone module, I think it'd be better to throw here as well.
The text was updated successfully, but these errors were encountered: