Merge pull request #476 from freqtrade/dependabot/npm_and_yarn/master/typescript-4.4.2

Bump typescript from 4.3.5 to 4.4.2
This commit is contained in:
Matthias 2021-08-30 19:42:19 +02:00 committed by GitHub
commit d20bb6f1ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 21 deletions

View File

@ -58,7 +58,7 @@
"prettier": "^2.3.2",
"sass": "^1.38.2",
"sass-loader": "^10.1.1",
"typescript": "~4.3.5",
"typescript": "~4.4.2",
"vue-template-compiler": "^2.6.14",
"vuex-class": "^0.3.2"
}

View File

@ -36,6 +36,7 @@ import {
getAllPlotConfigNames,
storePlotConfigName,
} from '@/shared/storage';
import axios from 'axios';
import state, { FtbotStateType } from './state';
import { showAlert } from '../alerts';
@ -377,7 +378,9 @@ export default {
commit('updateTrades', { trades, tradesCount });
return Promise.resolve();
} catch (error) {
console.error(error.response);
if (axios.isAxiosError(error)) {
console.error(error.response);
}
return Promise.reject(error);
}
},
@ -394,7 +397,9 @@ export default {
commit('updateLocks', res.data);
return Promise.resolve(res);
} catch (error) {
console.error(error.response);
if (axios.isAxiosError(error)) {
console.error(error.response);
}
showAlert(dispatch, `Failed to delete lock ${lockid}`, 'danger');
return Promise.reject(error);
}
@ -588,7 +593,9 @@ export default {
showAlert(dispatch, res.data.status);
return Promise.resolve(res);
} catch (error) {
console.error(error.resposne);
if (axios.isAxiosError(error)) {
console.error(error.response);
}
showAlert(dispatch, 'Error starting bot.');
return Promise.reject(error);
}
@ -599,7 +606,9 @@ export default {
showAlert(dispatch, res.data.status);
return Promise.resolve(res);
} catch (error) {
console.error(error.resposne);
if (axios.isAxiosError(error)) {
console.error(error.response);
}
showAlert(dispatch, 'Error stopping bot.');
return Promise.reject(error);
}
@ -610,7 +619,9 @@ export default {
showAlert(dispatch, res.data.status);
return Promise.resolve(res);
} catch (error) {
console.error(error.resposne);
if (axios.isAxiosError(error)) {
console.error(error.response);
}
showAlert(dispatch, 'Error calling stopbuy.');
return Promise.reject(error);
}
@ -622,7 +633,9 @@ export default {
showAlert(dispatch, res.data.status);
return Promise.resolve(res);
} catch (error) {
console.error(error.resposne);
if (axios.isAxiosError(error)) {
console.error(error.response);
}
showAlert(dispatch, 'Error reloading.');
return Promise.reject(error);
}
@ -633,7 +646,9 @@ export default {
showAlert(dispatch, res.data.result_msg ? res.data.result_msg : `Deleted Trade ${tradeid}`);
return Promise.resolve(res);
} catch (error) {
console.error(error.response);
if (axios.isAxiosError(error)) {
console.error(error.response);
}
showAlert(dispatch, `Failed to delete trade ${tradeid}`, 'danger');
return Promise.reject(error);
}
@ -654,7 +669,9 @@ export default {
showAlert(dispatch, `Sell order for ${tradeid} created`);
return Promise.resolve(res);
} catch (error) {
console.error(error.response);
if (axios.isAxiosError(error)) {
console.error(error.response);
}
showAlert(dispatch, `Failed to create sell order for ${tradeid}`, 'danger');
return Promise.reject(error);
}
@ -672,8 +689,10 @@ export default {
return Promise.resolve(res);
} catch (error) {
console.error(error.response);
showAlert(dispatch, `Error occured buying: '${error.response.data.error}'`, 'danger');
if (axios.isAxiosError(error)) {
console.error(error.response);
showAlert(dispatch, `Error occured buying: '${error.response?.data?.error}'`, 'danger');
}
return Promise.reject(error);
}
}
@ -701,12 +720,14 @@ export default {
}
return Promise.resolve(result.data);
} catch (error) {
console.error(error.response);
showAlert(
dispatch,
`Error occured while adding pairs to Blacklist: '${error.response.data.error}'`,
'danger',
);
if (axios.isAxiosError(error)) {
console.error(error.response);
showAlert(
dispatch,
`Error occured while adding pairs to Blacklist: '${error.response?.data?.error}'`,
'danger',
);
}
return Promise.reject(error);
}

View File

@ -10470,10 +10470,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
typescript@~4.3.5:
version "4.3.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
typescript@~4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86"
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==
uglify-js@3.4.x:
version "3.4.10"