From 80761966e49a0992f096df175b9a7aa07a883892 Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Wed, 21 Sep 2022 09:53:45 +0200 Subject: [PATCH] publish: fix login failed generated from commit 08720f6cfef57b86594e40944e947e7a5a3c6596 --- index.js | 9 +++++---- onDeleteAccount.js | 5 +---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 603cd56..b4c74eb 100644 --- a/index.js +++ b/index.js @@ -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,6 +228371,10 @@ 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 78f89d5..f8992eb 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) { -- GitLab