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

obj-case

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obj-case - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

component.json

@@ -5,3 +5,3 @@ {

"description": "Work with objects of different cased keys",
"version": "0.0.10",
"version": "0.0.11",
"keywords": [],

@@ -8,0 +8,0 @@ "dependencies": {

0.0.11 / 2014-08-30
===================
* Merge pull request #7 from segmentio/fix/bug
* fix edge case for facade
0.0.10 / 2014-08-30

@@ -3,0 +9,0 @@ ===================

@@ -95,2 +95,3 @@

key = undefined;
// if we found no matching properties

@@ -97,0 +98,0 @@ // on the current object, there's no match.

{
"name": "obj-case",
"version": "0.0.10",
"version": "0.0.11",
"description": "Work with objects of different cased keys",

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

@@ -68,2 +68,8 @@

expect(objCase(obj2, 'websites')).to.eql('bbbb');
var obj4 = {
websites: 'bbbb'
};
expect(objCase(obj4, 'website')).to.eql(undefined);
expect(objCase(obj4, 'websites')).to.eql('bbbb');
});

@@ -87,5 +93,5 @@

it('should work without finding a match', function () {
it('should return undefined if it doesnt find a match', function () {
var obj = { 'some-crazy.PROBABLY_MISSPELLED.NestedProperty': 10 };
expect(objCase(obj, 'SOME_CRAZY.ProbablyMssplld.nested_property')).to.eql(10);
expect(objCase(obj, 'SOME_CRAZY.ProbablyMssplld.nested_property')).to.eql(undefined);
});

@@ -92,0 +98,0 @@ });

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