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

messy

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

messy - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

8

lib/Headers.js

@@ -288,2 +288,10 @@ var foldHeaderLine = require('./foldHeaderLine'),

Headers.prototype.toCanonicalObject = function () {
var canonicalObject = {};
this.getNames().forEach(function (lowerCaseHeaderName) {
canonicalObject[formatHeaderName(lowerCaseHeaderName)] = this.getAll(lowerCaseHeaderName);
}, this);
return canonicalObject;
};
module.exports = Headers;

2

package.json
{
"name": "messy",
"version": "1.4.0",
"version": "1.5.0",
"description": "Object model for HTTP and RFC822 messages",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -101,2 +101,9 @@ /*global describe, it*/

});
describe('#toCanonicalObject', function () {
expect(new Headers({foo: 'hey', quux: 'baz'}).toCanonicalObject(), 'to equal', {
Foo: ['hey'],
Quux: ['baz']
});
});
});
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