Some checks failed
/ build (map[dockerfile:./services/tasks/Dockerfile name:tasks]) (push) Failing after 1m25s
/ deploy (push) Has been skipped
/ build (map[dockerfile:./services/files/Dockerfile name:files]) (push) Failing after 1m34s
/ build (map[dockerfile:./services/app/Dockerfile name:app]) (push) Successful in 2m9s
/ build (map[dockerfile:./services/api/Dockerfile name:api]) (push) Failing after 1m42s
/ build (map[dockerfile:./services/web/Dockerfile name:web]) (push) Failing after 1m18s
/ build (map[dockerfile:./services/watchers/Dockerfile name:watchers]) (push) Failing after 1m22s
/ build (map[dockerfile:./services/hasura/Dockerfile name:hasura]) (push) Successful in 2m3s
10 lines
299 B
JavaScript
10 lines
299 B
JavaScript
module.exports = function traverse(o, fn, keys = []) {
|
|
for (const [k, v] of Object.entries(o)) {
|
|
const keysBranch = [...keys]
|
|
keysBranch.push(k)
|
|
fn.apply(this, [k, v, o, keysBranch])
|
|
if (o[k] !== null && typeof o[k] === "object") {
|
|
traverse(o[k], fn, keysBranch)
|
|
}
|
|
}
|
|
}
|