@1mill/sops
Version:
```bash npm install @1mill/sops ```
3 lines (2 loc) • 425 B
JavaScript
const{decryptScalar:e}=require("./decryptScalar"),a=({aad:t,key:y,value:c})=>Array.isArray(c)?c.map(e=>a({aad:t,key:y,value:e})):"object"==typeof c?r({aad:t,key:y,tree:c}):e({aad:t,key:y,value:c}),r=({aad:e="",key:r,tree:t})=>{const y={};return Object.entries(t).forEach(([t,c])=>{"sops"!==t&&(y[t]=a({aad:`${e}${t}:`,key:r,value:c}))}),y};module.exports={walkAndDecrypt:r};
//# sourceMappingURL=walkAndDecrypt.modern.js.map