consumer-contracts
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -1,7 +0,7 @@ | ||
var recursive = require('recursive-readdir'); | ||
var _ = require('lodash'); | ||
var async = require('async'); | ||
var FileHound = require('filehound'); | ||
var path = require('path'); | ||
var async = require('async'); | ||
var _ = require('lodash'); | ||
var fs = require('fs'); | ||
var formatter = require('./formatter'); | ||
var fs = require('fs'); | ||
@@ -65,14 +65,12 @@ function validateContract(contract, cb) { | ||
recursive(dir, function (err, files) { | ||
if (err) { | ||
console.error(err.message); | ||
return process.exit(1); | ||
} | ||
files = files.filter(function (file) { | ||
return /\.js$/.test(file); | ||
}); | ||
validateFiles(files); | ||
FileHound.create() | ||
.paths(dir) | ||
.ext('js') | ||
.find(function (err, files) { | ||
if (err) { | ||
console.error(err.message); | ||
return process.exit(1); | ||
} | ||
validateFiles(files); | ||
}); | ||
}; |
{ | ||
"name": "consumer-contracts", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Consumer driven contracts for Node.js", | ||
@@ -37,4 +37,4 @@ "main": "index.js", | ||
"lodash": "^3.10.1", | ||
"recursive-readdir": "^1.2.1", | ||
"request": "^2.55.0" | ||
"request": "^2.55.0", | ||
"filehound": "^1.5.1" | ||
}, | ||
@@ -41,0 +41,0 @@ "devDependencies": { |
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
27059
+ Addedfilehound@^1.5.1
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbluebird@3.7.2(transitive)
+ Addedbrace-expansion@1.1.112.0.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addederr-code@1.1.2(transitive)
+ Addedfile-js@0.3.0(transitive)
+ Addedfilehound@1.17.6(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedminimatch@3.1.25.1.6(transitive)
+ Addedproper-lockfile@1.2.0(transitive)
+ Addedretry@0.10.1(transitive)
+ Addedunit-compare@1.0.1(transitive)
- Removedrecursive-readdir@^1.2.1
- Removedlru-cache@2.7.3(transitive)
- Removedminimatch@0.3.0(transitive)
- Removedrecursive-readdir@1.3.0(transitive)
- Removedsigmund@1.0.1(transitive)