npm-pkg-lint 5.2.3 → 5.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4037,6 +4037,13 @@ function parse(text, options) {
4037
4037
  function parseValue(tokenType) {
4038
4038
  tokenType = tokenType ?? next();
4039
4039
  const token = tokenizer.token;
4040
+ if (!tokenType) {
4041
+ throw new UnexpectedEOF({
4042
+ line: 1,
4043
+ column: 1,
4044
+ offset: 0
4045
+ });
4046
+ }
4040
4047
  switch (tokenType) {
4041
4048
  case tt.String:
4042
4049
  case tt.Boolean: