fast-glob
Advanced tools
Comparing version 3.2.4 to 3.2.5
@@ -6,3 +6,7 @@ "use strict"; | ||
const os = require("os"); | ||
const CPU_COUNT = os.cpus().length; | ||
/** | ||
* The `os.cpus` method can return zero. We expect the number of cores to be greater than zero. | ||
* https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107 | ||
*/ | ||
const CPU_COUNT = Math.max(os.cpus().length, 1); | ||
exports.DEFAULT_FILE_SYSTEM_ADAPTER = { | ||
@@ -9,0 +13,0 @@ lstat: fs.lstat, |
{ | ||
"name": "fast-glob", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "It's a very fast and efficient glob library for Node.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -418,4 +418,4 @@ # fast-glob | ||
```js | ||
fs.sync('*', { onlyFiles: false, markDirectories: false }); // ['index.js', 'controllers'] | ||
fs.sync('*', { onlyFiles: false, markDirectories: true }); // ['index.js', 'controllers/'] | ||
fg.sync('*', { onlyFiles: false, markDirectories: false }); // ['index.js', 'controllers'] | ||
fg.sync('*', { onlyFiles: false, markDirectories: true }); // ['index.js', 'controllers/'] | ||
``` | ||
@@ -422,0 +422,0 @@ |
84711
1426