UNPKG

@ycmd/creds

Version:

LSK.js CLI Creds is the easiest way to manage GitHub / Gitlab secrets and credentials

13 lines (10 loc) 761 B
'use strict'; var chunkWNARQRHV_js = require('./chunk-WNARQRHV.js'); var chunkBOQRWMR4_js = require('./chunk-BOQRWMR4.js'); var chunkHILUMHCQ_js = require('./chunk-HILUMHCQ.js'); var chunkCSGQ5YH5_js = require('./chunk-CSGQ5YH5.js'); var err = require('@lsk4/err'); async function b(m,f={}){let{path:v,config:i}=await chunkHILUMHCQ_js.a(m),e=i.service?.serviceName;if(!e)throw new err.Err("!serviceName",{data:{configPath:v}});let r,t={...i.service,...f,config:i};if(e==="github")r=new chunkWNARQRHV_js.a(t);else if(e==="gitlab")r=new chunkBOQRWMR4_js.a(t);else throw new err.Err("incorrect serviceName",{serviceName:e});return r}chunkCSGQ5YH5_js.a(b,"createService"); exports.a = b; //# sourceMappingURL=out.js.map //# sourceMappingURL=chunk-HZNL2FIV.js.map