wip ext file import syntax

This commit is contained in:
jean-emmanuel 2022-01-10 10:40:11 +01:00
parent e11f994b8f
commit 697f3e8acc
3 changed files with 26 additions and 3 deletions

View file

@ -182,7 +182,7 @@ module.exports = {
error = err
} else {
try {
result = JSON.parse(result)
result = data.path.split('.').pop() === 'json' ? JSON.parse(result) : result
callback(result)
} catch(err) {
error = err