diff --git a/index.js b/index.js index 1915f0bc19f3ab6b0a1dbd11779942326fdadf86..e1bf2d2ddfa359358120338c2de7b25f1f8b11c9 100644 --- a/index.js +++ b/index.js @@ -173,7 +173,7 @@ async function start(fields, cozyParameters) { consentId: consent.ID, }) } else { - // AlternateStart + log('info', 'Alternate start...') const accountData = await getAccount(ACCOUNT_ID) const userConsent = await getBoConsent( boBaseUrl, @@ -181041,7 +181041,6 @@ const removeFile = async function (file) { module.exports = saveFiles; module.exports.getFileIfExists = getFileIfExists; -module.exports.sanitizeFileName = sanitizeFileName; function getFileName(entry) { let filename; @@ -181062,9 +181061,7 @@ function getFileName(entry) { } function sanitizeFileName(filename) { - return filename.replace(/^\.+$/, '').replace(/[/?<>\\:*|":]/g, '') // Replace ascii control characters from 00 to 0F - // eslint-disable-next-line no-control-regex - .replace(/[\x00-\x0F]/g, ''); + return filename.replace(/^\.+$/, '').replace(/[/?<>\\:*|":]/g, ''); } function checkFileSize(fileobject) { @@ -228374,10 +228371,6 @@ async function findUserPdl( return parseUserPdl(parsedReply) } catch (error) { log('error', 'Error while parsing user PDL: ' + error) - log( - 'error', - `Enedis issue ${parsedReply.Envelope.Body.Fault.detail.erreur.resultat.$.code}: ${parsedReply.Envelope.Body.Fault.faultstring}` - ) throw errors.LOGIN_FAILED } } diff --git a/onDeleteAccount.js b/onDeleteAccount.js index 78f89d5c5ad1b5a1392a889a350c51e68a17b1cf..f8992eba4334e6db2cbf2ee3f446cab12f106daf 100644 --- a/onDeleteAccount.js +++ b/onDeleteAccount.js @@ -180493,7 +180493,6 @@ const removeFile = async function (file) { module.exports = saveFiles; module.exports.getFileIfExists = getFileIfExists; -module.exports.sanitizeFileName = sanitizeFileName; function getFileName(entry) { let filename; @@ -180514,9 +180513,7 @@ function getFileName(entry) { } function sanitizeFileName(filename) { - return filename.replace(/^\.+$/, '').replace(/[/?<>\\:*|":]/g, '') // Replace ascii control characters from 00 to 0F - // eslint-disable-next-line no-control-regex - .replace(/[\x00-\x0F]/g, ''); + return filename.replace(/^\.+$/, '').replace(/[/?<>\\:*|":]/g, ''); } function checkFileSize(fileobject) {