Socket
Socket
Sign inDemoInstall

globby

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

globby - npm Package Compare versions

Comparing version 12.0.1 to 12.0.2

18

index.js

@@ -99,5 +99,17 @@ import fs from 'node:fs';

const globToTask = task => glob => {
const globToTask = task => async glob => {
const {options} = task;
if (options.ignore && Array.isArray(options.ignore) && options.expandDirectories) {
options.ignore = await dirGlob(options.ignore);
}
return {
pattern: glob,
options,
};
};
const globToTaskSync = task => glob => {
const {options} = task;
if (options.ignore && Array.isArray(options.ignore) && options.expandDirectories) {
options.ignore = dirGlob.sync(options.ignore);

@@ -139,3 +151,3 @@ }

for (const task of globTasks) {
const newTask = getPattern(task, dirGlob.sync).map(globToTask(task));
const newTask = getPattern(task, dirGlob.sync).map(globToTaskSync(task));
tasks.push(...newTask);

@@ -159,3 +171,3 @@ }

for (const task of globTasks) {
const newTask = getPattern(task, dirGlob.sync).map(globToTask(task));
const newTask = getPattern(task, dirGlob.sync).map(globToTaskSync(task));
tasks.push(...newTask);

@@ -162,0 +174,0 @@ }

2

package.json
{
"name": "globby",
"version": "12.0.1",
"version": "12.0.2",
"description": "User-friendly glob matching",

@@ -5,0 +5,0 @@ "license": "MIT",

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