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

caseless

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caseless - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

6

index.js

@@ -43,2 +43,6 @@ function Caseless (dict) {

}
Caseless.prototype.del = function (name) {
var has = this.has(name)
return delete this.dict[has || name]
}

@@ -55,5 +59,5 @@ module.exports = function (dict) {return new Caseless(dict)}

resp.getHeader = function (key) {
return c.getHeader(key)
return c.get(key)
}
return c
}

2

package.json
{
"name": "caseless",
"version": "0.3.0",
"version": "0.4.0",
"description": "Caseless object set/get/has, very useful when working with HTTP headers.",

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

@@ -9,3 +9,3 @@ var tape = require('tape')

;
t.plan(9)
t.plan(14)
c.set('a-Header', 'asdf')

@@ -27,2 +27,9 @@ t.equal(c.get('a-header'), 'asdf')

c.set('deleteme', 'foobar')
t.ok(c.has('deleteme'))
t.ok(c.del('deleteme'))
t.notOk(c.has('deleteme'))
t.notOk(c.has('idonotexist'))
t.ok(c.del('idonotexist'))
})
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