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
In method fromString() the version variable is used in line 147 to construct a new object,
but the variable is declared with a block scope inside an if statement (line 123).
In method fromString() the version variable is used in line 147 to construct a new object,
but the variable is declared with a block scope inside an if statement (line 123).
This is an issue when using packageurl-js from typescript:
https://www.typescriptlang.org/docs/handbook/variable-declarations.html#block-scoping
As a consequence, fromString() always throws an error using typescript:
The text was updated successfully, but these errors were encountered: