chore(deps): upgrade (#1361)

This commit is contained in:
Simon Lecoq
2023-01-16 23:25:54 -05:00
committed by GitHub
parent 2c25d33882
commit 8b66dee3fa
3 changed files with 92 additions and 85 deletions

View File

@@ -29,7 +29,7 @@ action.run = async vars =>
//Web instance
const web = {}
web.run = async vars => (await axios(`http://localhost:3000/lowlighter?${new url.URLSearchParams(Object.fromEntries(Object.entries(vars).map(([key, value]) => [key.replace(/^plugin_/, "").replace(/_/g, "."), value])))}`)).status === 200
web.run = async vars => (await axios.get(`http://localhost:3000/lowlighter?${new url.URLSearchParams(Object.fromEntries(Object.entries(vars).map(([key, value]) => [key.replace(/^plugin_/, "").replace(/_/g, "."), value])))}`)).status === 200
web.start = async () =>
new Promise(solve => {
let stdout = ""
@@ -48,7 +48,7 @@ placeholder.init({
ejs,
axios: {
async get(url) {
return axios(`http://localhost:3000${url}`)
return axios.get(`http://localhost:3000${url}`)
},
},
})