Comparing version 0.0.0 to 0.0.1
var path = require('path') | ||
var _ = require('underscore') | ||
var walkdir = require('walkdir') | ||
var walk = require('walk-sync') | ||
var minimatch = require('minimatch') | ||
@@ -17,6 +17,3 @@ | ||
var dirmatch = function(dir, patterns, options) { | ||
var abspaths = walkdir.sync(dir) | ||
var paths = _.map(abspaths, function(abspath) { | ||
return path.relative(dir, abspath) | ||
}) | ||
var paths = walk(dir) | ||
var matches = _.map(patterns, function(pattern) { | ||
@@ -23,0 +20,0 @@ var exclusion = pattern.indexOf('!') === 0 |
{ | ||
"name": "dirmatch", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Match multiple patterns with all files in directory", | ||
@@ -24,4 +24,4 @@ "main": "index.js", | ||
"underscore": "^1.7.0", | ||
"walkdir": "0.0.7" | ||
"walk-sync": "^0.1.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4500
50
+ Addedwalk-sync@^0.1.3
+ Addedwalk-sync@0.1.3(transitive)
- Removedwalkdir@0.0.7
- Removedwalkdir@0.0.7(transitive)