forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
19
node_modules/decamelize-keys/index.js
generated
vendored
Normal file
19
node_modules/decamelize-keys/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
'use strict';
|
||||
var mapObj = require('map-obj');
|
||||
var decamelize = require('decamelize');
|
||||
|
||||
module.exports = function (input, separator, options) {
|
||||
if (typeof separator !== 'string') {
|
||||
options = separator;
|
||||
separator = null;
|
||||
}
|
||||
|
||||
options = options || {};
|
||||
separator = separator || options.separator;
|
||||
var exclude = options.exclude || [];
|
||||
|
||||
return mapObj(input, function (key, val) {
|
||||
key = exclude.indexOf(key) === -1 ? decamelize(key, separator) : key;
|
||||
return [key, val];
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue