agreed-core
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -66,2 +66,4 @@ 'use strict'; | ||
agree.request.headers = toLowerCaseKeys(agree.request.headers); | ||
if (!agree.response.status) { | ||
@@ -94,1 +96,11 @@ agree.response.status = DEFAULT_RESPONSE.status; | ||
} | ||
function toLowerCaseKeys(obj) { | ||
const keys = Object.keys(obj); | ||
const result = {}; | ||
keys.forEach((key) => { | ||
result[key.toLowerCase()] = obj[key]; | ||
}); | ||
return result; | ||
} |
{ | ||
"name": "agreed-core", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "agreed is a mock server and test client, agreed will be helper for Consumer Driven Contract", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -115,3 +115,4 @@ agreed-core | ||
const bodyParser = require('body-parser'); | ||
const agreed = require('agreed-core'); | ||
const Agreed = require('agreed-core'); | ||
const agreed = new Agreed(); | ||
const app = express(); | ||
@@ -200,4 +201,5 @@ | ||
'use strinct'; | ||
const AgreedClient = require('agreed-core').client; | ||
const client = new AgreedClient({ | ||
const Agreed = require('agreed-core'); | ||
const agreed = new Agreed(); | ||
const client = agreed.createClient({ | ||
path: './agreed/file/agreed.js', | ||
@@ -204,0 +206,0 @@ host: 'example.com', |
Sorry, the diff of this file is not supported yet
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
74258
56
2342
380
6