const req = require ( 'tiny_request' ) ; export async function postRequest ( url , query , timeout = 5000 ) { return new Promise < any > ( ( resolve , reject ) => { req . post ( { url , form : query , json : true , timeout } , ( body , response , err ) => { resolve ( { body , response , err } ) ; } ) ; } ) ; }