Socket
Socket
Sign inDemoInstall

globby

Package Overview
Dependencies
23
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 12.1.0 to 12.2.0

2

gitignore.js

@@ -59,3 +59,3 @@ import process from 'node:process';

const getIsIgnoredPredicate = (ignores, cwd) => p => ignores.ignores(slash(path.relative(cwd, ensureAbsolutePathForCwd(cwd, p.path || p))));
const getIsIgnoredPredicate = (ignores, cwd) => p => ignores.ignores(slash(path.relative(cwd, ensureAbsolutePathForCwd(cwd, toPath(p.path || p)))));

@@ -62,0 +62,0 @@ const getFile = async (file, cwd) => {

@@ -0,1 +1,2 @@

import {URL} from 'node:url'; // TODO: Remove this when https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960 is fixed.
import {Options as FastGlobOptions, Entry} from 'fast-glob';

@@ -62,3 +63,3 @@

export type GlobbyFilterFunction = (path: string) => boolean;
export type GlobbyFilterFunction = (path: URL | string) => boolean;

@@ -65,0 +66,0 @@ /**

{
"name": "globby",
"version": "12.1.0",
"version": "12.2.0",
"description": "User-friendly glob matching",

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

@@ -127,3 +127,3 @@ # globby

Returns a `Promise<(path: string) => boolean>` indicating whether a given path is ignored via a `.gitignore` file.
Returns a `Promise<(path: URL | string) => boolean>` indicating whether a given path is ignored via a `.gitignore` file.

@@ -142,3 +142,3 @@ Takes `cwd?: URL | string` and `ignore?: string[]` as options. `.gitignore` files matched by the ignore config are not used for the resulting filter function.

Returns a `(path: string) => boolean` indicating whether a given path is ignored via a `.gitignore` file.
Returns a `(path: URL | string) => boolean` indicating whether a given path is ignored via a `.gitignore` file.

@@ -145,0 +145,0 @@ Takes the same options as `isGitIgnored`.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc