Sha256: 7678cfd2a948c2bb58158e84724ec69bf92d117088c250355edb0c7d6bbbcf0b
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
module.exports = configure function configure(base, extension) { var index = -1 var key // First do subextensions. if (extension.extensions) { while (++index < extension.extensions.length) { configure(base, extension.extensions[index]) } } for (key in extension) { if (key === 'extensions') { // Empty. } else if (key === 'unsafe' || key === 'join') { base[key] = base[key].concat(extension[key] || []) } else if (key === 'handlers') { base[key] = Object.assign(base[key], extension[key] || {}) } else { base.options[key] = extension[key] } } return base }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trusty-cms-6.3.1 | node_modules/mdast-util-to-markdown/lib/configure.js |