Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/read-modules-dir

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/read-modules-dir - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

4

lib/index.js

@@ -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

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