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

find-packages

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-packages - npm Package Compare versions

Comparing version 7.0.24 to 8.0.0

12

CHANGELOG.md
# find-packages
## 8.0.0
### Major Changes
- 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work.
### Patch Changes
- Updated dependencies [97b986fbc]
- @pnpm/read-project-manifest@2.0.0
- @pnpm/types@7.0.0
## 7.0.24

@@ -4,0 +16,0 @@

25

lib/index.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const read_project_manifest_1 = require("@pnpm/read-project-manifest");
const path = require("path");
const fastGlob = require("fast-glob");
const pFilter = require("p-filter");
const fast_glob_1 = __importDefault(require("fast-glob"));
const p_filter_1 = __importDefault(require("p-filter"));
const DEFAULT_IGNORE = [

@@ -18,9 +21,9 @@ '**/node_modules/**',

globOpts.ignore = (_a = opts.ignore) !== null && _a !== void 0 ? _a : DEFAULT_IGNORE;
const patterns = normalizePatterns(opts.patterns ? opts.patterns : ['.', '**']);
const paths = await fastGlob(patterns, globOpts);
const patterns = normalizePatterns((opts.patterns != null) ? opts.patterns : ['.', '**']);
const paths = await (0, fast_glob_1.default)(patterns, globOpts);
if (opts.includeRoot) {
// Always include the workspace root (https://github.com/pnpm/pnpm/issues/1986)
Array.prototype.push.apply(paths, await fastGlob(normalizePatterns(['.']), globOpts));
Array.prototype.push.apply(paths, await (0, fast_glob_1.default)(normalizePatterns(['.']), globOpts));
}
return pFilter(
return (0, p_filter_1.default)(
// `Array.from()` doesn't create an intermediate instance,

@@ -31,8 +34,8 @@ // unlike `array.map()`

new Set(paths
.map(manifestPath => path.join(root, manifestPath))
.sort((path1, path2) => path.dirname(path1).localeCompare(path.dirname(path2)))), async (manifestPath) => {
.map(manifestPath => path_1.default.join(root, manifestPath))
.sort((path1, path2) => path_1.default.dirname(path1).localeCompare(path_1.default.dirname(path2)))), async (manifestPath) => {
try {
return {
dir: path.dirname(manifestPath),
...await read_project_manifest_1.readExactProjectManifest(manifestPath),
dir: path_1.default.dirname(manifestPath),
...await (0, read_project_manifest_1.readExactProjectManifest)(manifestPath),
};

@@ -39,0 +42,0 @@ }

{
"name": "find-packages",
"version": "7.0.24",
"version": "8.0.0",
"description": "Find all packages inside a directory",

@@ -16,3 +16,3 @@ "main": "lib/index.js",

"prepublishOnly": "pnpm run compile",
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build"
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
},

@@ -24,5 +24,4 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/find-packages",

],
"author": "Zoltan Kochan <z@kochan.io> (https://www.kochan.io/)",
"engines": {
"node": ">=10.16"
"node": ">=12.17"
},

@@ -35,4 +34,4 @@ "license": "MIT",

"dependencies": {
"@pnpm/read-project-manifest": "1.1.7",
"@pnpm/types": "6.4.0",
"@pnpm/read-project-manifest": "2.0.0",
"@pnpm/types": "7.0.0",
"fast-glob": "^3.2.4",

@@ -39,0 +38,0 @@ "p-filter": "^2.1.0"

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