Socket
Socket
Sign inDemoInstall

it-glob

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

it-glob - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

index.js

@@ -39,3 +39,3 @@ 'use strict'

if (match) {
if (match && !(stats.isDirectory() && options.nodir)) {
yield options.absolute ? absoluteEntryPath : relativeEntryPath

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

{
"name": "it-glob",
"version": "0.0.5",
"version": "0.0.6",
"description": "Async iterable filename pattern matcher",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -24,2 +24,3 @@ # it-glob

absolute // return absolute paths, defaults to false
nodir // only yield file paths, skip directories

@@ -26,0 +27,0 @@ // all other options are passed to minimatch

@@ -83,3 +83,14 @@ import test from 'ava'

t.truthy(files.includes('node_modules/@ava'))
t.truthy(files.includes('node_modules/ava'))
})
test('it skips directories', async t => {
const dir = path.resolve(__dirname, '..')
const files = await all(glob(dir, 'node_modules/**/*', {
nodir: true
}))
t.falsy(files.includes('node_modules/ava'))
t.truthy(files.includes('node_modules/ava/package.json'))
})
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