import jsonProvider from '@brainhubeu/hadron-json-provider' ; export default ( paths ) => { if ( paths . length >= 0 ) { try { return jsonProvider ( paths , [ 'json' ] , true ) ; } catch ( error ) { return Promise . reject ( new Error ( `Incorrect configuration: ${ error }` ) ) ; } } return Promise . resolve ( [ ] ) ; } ;