Skip to content

Commit

Permalink
Merge pull request #2 from nathanfu88/fix/options-existence-check
Browse files Browse the repository at this point in the history
Safely access ignorePrivate in decamelize
  • Loading branch information
nathanfu88 authored Jan 2, 2021
2 parents 373e5f8 + 3e9893d commit 1edb4ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions humps.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
};

var decamelize = function(string, options) {
options = options || {};
if (options.ignorePrivate && string[0] == "_") {
return string;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@humandx/humps",
"version": "2.0.4",
"version": "2.0.5",
"description": "Underscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript.",
"main": "humps.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 1edb4ac

Please sign in to comment.