Socket
Socket
Sign inDemoInstall

@typescript-eslint/typescript-estree

Package Overview
Dependencies
Maintainers
2
Versions
3820
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/typescript-estree - npm Package Compare versions

Comparing version 8.2.1-alpha.25 to 8.2.1-alpha.26

30

dist/parseSettings/resolveProjectList.js

@@ -10,3 +10,3 @@ "use strict";

const debug_1 = __importDefault(require("debug"));
const globby_1 = require("globby");
const fast_glob_1 = require("fast-glob");
const is_glob_1 = __importDefault(require("is-glob"));

@@ -36,11 +36,10 @@ const shared_1 = require("../create-program/shared");

}
const projectFolderIgnoreList = (options.projectFolderIgnoreList ?? ['**/node_modules/**'])
.reduce((acc, folder) => {
const projectFolderIgnoreList = (options.projectFolderIgnoreList ?? ['**/node_modules/**']).reduce((acc, folder) => {
if (typeof folder === 'string') {
acc.push(folder);
acc.push(
// prefix with a ! for not match glob
folder.startsWith('!') ? folder : `!${folder}`);
}
return acc;
}, [])
// prefix with a ! for not match glob
.map(folder => (folder.startsWith('!') ? folder : `!${folder}`));
}, []);
const cacheKey = getHash({

@@ -70,9 +69,14 @@ project: sanitizedProjects,

const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project));
let globProjectPaths = [];
if (globProjects.length > 0) {
// Although fast-glob supports multiple patterns, fast-glob returns arbitrary order of results
// to improve performance. To ensure the order is correct, we need to call fast-glob for each pattern
// separately and then concatenate the results in patterns' order.
globProjectPaths = globProjects.flatMap(pattern => (0, fast_glob_1.sync)(pattern, {
cwd: options.tsconfigRootDir,
ignore: projectFolderIgnoreList,
}));
}
const uniqueCanonicalProjectPaths = new Map(nonGlobProjects
.concat(globProjects.length === 0
? []
: (0, globby_1.sync)([...globProjects, ...projectFolderIgnoreList], {
cwd: options.tsconfigRootDir,
dot: true,
}))
.concat(globProjectPaths)
.map(project => [

@@ -79,0 +83,0 @@ (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir)),

{
"name": "@typescript-eslint/typescript-estree",
"version": "8.2.1-alpha.25",
"version": "8.2.1-alpha.26",
"description": "A parser that converts TypeScript source code into an ESTree compatible form",

@@ -57,6 +57,6 @@ "files": [

"dependencies": {
"@typescript-eslint/types": "8.2.1-alpha.25",
"@typescript-eslint/visitor-keys": "8.2.1-alpha.25",
"@typescript-eslint/types": "8.2.1-alpha.26",
"@typescript-eslint/visitor-keys": "8.2.1-alpha.26",
"debug": "^4.3.4",
"globby": "^11.1.0",
"fast-glob": "^3.3.2",
"is-glob": "^4.0.3",

@@ -63,0 +63,0 @@ "minimatch": "^9.0.4",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc