- Add comprehensive CouchDB setup and configuration - Update Docker files for CouchDB compatibility - Create Kubernetes manifests for CouchDB deployment - Add migration scripts and documentation - Update seeding scripts to support both CouchDB and MongoDB - Add docker-compose for local development - Create comprehensive setup and deployment guides 🤖 Generated with [AI Assistant] Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
19 lines
385 B
JavaScript
19 lines
385 B
JavaScript
'use strict';
|
|
|
|
const dotRE = /\./g;
|
|
module.exports = function parentPaths(path) {
|
|
if (path.indexOf('.') === -1) {
|
|
return [path];
|
|
}
|
|
const pieces = path.split(dotRE);
|
|
const len = pieces.length;
|
|
const ret = new Array(len);
|
|
let cur = '';
|
|
for (let i = 0; i < len; ++i) {
|
|
cur += (cur.length !== 0) ? '.' + pieces[i] : pieces[i];
|
|
ret[i] = cur;
|
|
}
|
|
|
|
return ret;
|
|
};
|