npm-pkg-lint 5.2.2 → 5.2.4

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:
@@ -4427,7 +4434,11 @@ var regexp8 = [filename(".prettierignore"), rcfile(`.prettierrc`)];
4427
4434
  var prettier_default = regexp8;
4428
4435
 
4429
4436
  // src/blacklist/typescript.ts
4430
- var regexp9 = [directory(".tsbuildinfo"), filename("tsconfig.json")];
4437
+ var regexp9 = [
4438
+ directory(".tsbuildinfo"),
4439
+ filename(".tsbuildinfo"),
4440
+ filename("tsconfig.json")
4441
+ ];
4431
4442
  var typescript_default = regexp9;
4432
4443
 
4433
4444
  // src/blacklist/windows.ts