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
I wonder if this is desirable if this function would be used inside npm-www for example. If requirements for name or versions get more strict (I admit, maybe far-fetched) the whole normalization process stops. Considering the packageData is modified in-place, the data after the throw is then unnormalized (or half-normalized, depending on where the throw happened).
The text was updated successfully, but these errors were encountered:
darcyclarke
changed the title
Is it correct to "throw" on invalid name and/or invalid version?
[QUESTION] Is it correct to "throw" on invalid name and/or invalid version?
Jul 28, 2022
In original async code, callback was immediately called with an error object
I wonder if this is desirable if this function would be used inside npm-www for example. If requirements for name or versions get more strict (I admit, maybe far-fetched) the whole normalization process stops. Considering the packageData is modified in-place, the data after the throw is then unnormalized (or half-normalized, depending on where the throw happened).
The text was updated successfully, but these errors were encountered: