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

agreed-core

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agreed-core - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

test/lib/server.checkHeadersCaseInsensitive.js

12

lib/check/completion.js

@@ -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;
}

2

package.json
{
"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

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