Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

consumer-contracts

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consumer-contracts - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

28

lib/runner.js

@@ -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": {

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