Socket
Socket
Sign inDemoInstall

deglob

Package Overview
Dependencies
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deglob - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

15

index.js
module.exports = deglob
var dezalgo = require('dezalgo')
var extend = require('xtend')

@@ -23,11 +22,7 @@ var findRoot = require('find-root')

function deglob (files, opts, cb) {
if (typeof opts === 'function') {
cb = opts
opts = {}
}
if (typeof opts === 'function') return deglob(files, null, opts)
opts = parseOpts(opts)
cb = dezalgo(cb)
if (typeof files === 'string') files = [ files ]
if (files.length === 0) return cb(null, [])
if (files.length === 0) return nextTick(cb, null, [])

@@ -140,1 +135,7 @@ // traverse filesystem

}
function nextTick (cb, err, val) {
process.nextTick(function () {
cb(err, val)
})
}
{
"name": "deglob",
"description": "Take a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `package.json`.",
"version": "1.0.2",
"version": "1.1.0",
"author": "Dan Flettre <fletd01@yahoo.com>",

@@ -36,5 +36,4 @@ "bugs": {

"dependencies": {
"dezalgo": "^1.0.3",
"find-root": "^0.1.1",
"glob": "^5.0.13",
"glob": "^6.0.4",
"ignore": "^2.2.15",

@@ -41,0 +40,0 @@ "pkg-config": "^1.1.0",

@@ -67,3 +67,3 @@ # deglob

gitIgnoreFile | '.gitignore' | Name of the `.gitignore` file look for (probably best to leave it default)
ignore | [] | List of additional ignore patterns to use
ignore | [] | List of additional ignore patterns to use
cwd | process.cwd() | This is the working directory to start the deglobbing

@@ -70,0 +70,0 @@

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