UNPKG

@smythos/cli

Version:

SmythOS SRE Command Line Interface

3 lines (2 loc) 610 B
#!/usr/bin/env node "use strict";var m=Object.defineProperty;var s=(t,n)=>m(t,"name",{value:n,configurable:!0});const createAggregatedClient=s((t,n)=>{for(const o of Object.keys(t)){const d=t[o],f=s(async function(i,e,r){const c=new d(i);if(typeof e=="function")this.send(c,e);else if(typeof r=="function"){if(typeof e!="object")throw new Error(`Expected http options but got ${typeof e}`);this.send(c,e||{},r)}else return this.send(c,e)},"methodImpl"),a=(o[0].toLowerCase()+o.slice(1)).replace(/Command$/,"");n.prototype[a]=f}},"createAggregatedClient");exports.createAggregatedClient=createAggregatedClient;