sindresorhus / decamelize-keys

Convert object keys from camel case
MIT License
51 stars 3 forks source link

Support legacy environments by removing _ on the number #9

Closed sobrinho closed 7 months ago

sobrinho commented 7 months ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch decamelize-keys@2.0.1 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/decamelize-keys/index.js b/node_modules/decamelize-keys/index.js
index 026b161..43ffdc3 100644
--- a/node_modules/decamelize-keys/index.js
+++ b/node_modules/decamelize-keys/index.js
@@ -12,7 +12,7 @@ const has = (array, key) => array.some(element => {
    return element.test(key);
 });

-const cache = new QuickLru({maxSize: 100_000});
+const cache = new QuickLru({maxSize: 100000});

 // Reproduces behavior from `map-obj`.
 const isObject = value =>

This issue body was partially generated by patch-package.

sindresorhus commented 7 months ago

No plans for that.