@pnpm/read-modules-dir
Advanced tools
Comparing version 3.0.1 to 4.0.0
@@ -6,5 +6,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const graceful_fs_1 = __importDefault(require("graceful-fs")); | ||
const path_1 = __importDefault(require("path")); | ||
const util_1 = __importDefault(require("util")); | ||
const graceful_fs_1 = __importDefault(require("graceful-fs")); | ||
const readdir = util_1.default.promisify(graceful_fs_1.default.readdir); | ||
@@ -15,3 +15,3 @@ async function readModulesDir(modulesDir) { | ||
} | ||
catch (err) { | ||
catch (err) { // eslint-disable-line | ||
if (err['code'] === 'ENOENT') | ||
@@ -18,0 +18,0 @@ return null; |
{ | ||
"name": "@pnpm/read-modules-dir", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"description": "Finds all direct packages in node_modules", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
@@ -11,9 +11,11 @@ "lib", | ||
], | ||
"keywords": [], | ||
"keywords": [ | ||
"pnpm7" | ||
], | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=12.17" | ||
"node": ">=14.19" | ||
}, | ||
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/read-modules-dir", | ||
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/read-modules-dir#readme", | ||
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/read-modules-dir", | ||
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/read-modules-dir#readme", | ||
"bugs": { | ||
@@ -26,8 +28,14 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
}, | ||
"devDependencies": { | ||
"@pnpm/read-modules-dir": "4.0.0" | ||
}, | ||
"exports": { | ||
".": "./lib/index.js" | ||
}, | ||
"scripts": { | ||
"start": "pnpm run tsc -- --watch", | ||
"start": "tsc --watch", | ||
"test": "pnpm run compile", | ||
"lint": "eslint -c ../../eslint.json src/**/*.ts", | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix" | ||
"lint": "eslint src/**/*.ts", | ||
"compile": "tsc --build && pnpm run lint --fix" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4822
1
1