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

find-packages

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-packages - npm Package Compare versions

Comparing version 8.0.5 to 8.0.6

@@ -22,8 +22,8 @@ "use strict";

const patterns = normalizePatterns((opts.patterns != null) ? opts.patterns : ['.', '**']);
const paths = await fast_glob_1.default(patterns, globOpts);
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 fast_glob_1.default(normalizePatterns(['.']), globOpts));
Array.prototype.push.apply(paths, await (0, fast_glob_1.default)(normalizePatterns(['.']), globOpts));
}
return p_filter_1.default(
return (0, p_filter_1.default)(
// `Array.from()` doesn't create an intermediate instance,

@@ -39,6 +39,6 @@ // unlike `array.map()`

dir: path_1.default.dirname(manifestPath),
...await read_project_manifest_1.readExactProjectManifest(manifestPath),
...await (0, read_project_manifest_1.readExactProjectManifest)(manifestPath),
};
}
catch (err) {
catch (err) { // eslint-disable-line
if (err.code === 'ENOENT') {

@@ -45,0 +45,0 @@ return null;

{
"name": "find-packages",
"version": "8.0.5",
"version": "8.0.6",
"description": "Find all packages inside a directory",

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

"keywords": [
"pnpm6",
"find",

@@ -26,4 +27,4 @@ "package"

"dependencies": {
"@pnpm/read-project-manifest": "2.0.5",
"@pnpm/types": "7.4.0",
"@pnpm/read-project-manifest": "2.0.6",
"@pnpm/types": "7.5.0",
"fast-glob": "^3.2.4",

@@ -34,3 +35,3 @@ "p-filter": "^2.1.0"

"scripts": {
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
"lint": "eslint src/**/*.ts test/**/*.ts",
"_test": "jest",

@@ -37,0 +38,0 @@ "test": "pnpm run compile && pnpm run _test",

Sorry, the diff of this file is not supported yet