packages/client/lib/get-options.js
function getConfig(options) {
	const profileOptions = {
		baseUrl: get('pod.url'),
		headers: {
			'user-agent': `yodata/client (https://yodata.io)`,
			'x-api-key': get('pod.secret')
		},
		hooks: {
			beforeRequest: [
				logRequest
			],
			afterResponse: [
				parseResponseData
			]
		}
	}
	return defaults(options, profileOptions)
}
function getConfig(options) {
	const profileOptions = {
		baseUrl: get('pod.url'),
		headers: {
			'user-agent': `yodata/client (https://yodata.io)`,
			'x-api-key': get('pod.secret')
		},
		hooks: {
			beforeRequest: [
				logRequest
			],
			afterResponse: [
				parseResponseData
			]
		}
	}
	return defaults(options, profileOptions)
}
function getConfig ( options ) { const profileOptions = { baseUrl : get ( 'pod.url' ) , headers : { 'user-agent' : ` ` , 'x-api-key' : get ( 'pod.secret' ) } , hooks : { beforeRequest : [ logRequest ] , afterResponse : [ parseResponseData ] } } return defaults ( options , profileOptions ) }
get client options from currentProfile or default

@param {object} [options]
@param {string} [options.baseurl]
@param {object} [options.headers]
@returns {object}
get client options from currentProfile or default