From 594e0c60aae606cec281acc7d18caaf72ec97bfa Mon Sep 17 00:00:00 2001 From: build-token <build-token> Date: Sat, 20 Aug 2022 03:10:40 +0000 Subject: [PATCH] publish: fix(deps): update cozy konnector packages generated from commit 2d817c15b95d9bb80fc50c717327c63d040c4cee --- index.js | 18 ++++-------------- onDeleteAccount.js | 5 ++++- package.json | 4 ++-- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/index.js b/index.js index 26e375e..fad78c6 100644 --- a/index.js +++ b/index.js @@ -165,7 +165,6 @@ async function start(fields, cozyParameters) { consent, serviceId.toString() ) - console.log(consent) // Save bo id into account const accountData = await getAccount(ACCOUNT_ID) @@ -181042,6 +181041,7 @@ const removeFile = async function (file) { module.exports = saveFiles; module.exports.getFileIfExists = getFileIfExists; +module.exports.sanitizeFileName = sanitizeFileName; function getFileName(entry) { let filename; @@ -181062,7 +181062,9 @@ function getFileName(entry) { } function sanitizeFileName(filename) { - return filename.replace(/^\.+$/, '').replace(/[/?<>\\:*|":]/g, ''); + return filename.replace(/^\.+$/, '').replace(/[/?<>\\:*|":]/g, '') // Replace ascii control characters from 00 to 0F + // eslint-disable-next-line no-control-regex + .replace(/[\x00-\x0F]/g, ''); } function checkFileSize(fileobject) { @@ -228238,18 +228240,6 @@ async function verifyContract(url, apiAuthKey, appLogin, contractId, pointId) { }) try { - log('debug', 'parsedReply' + JSON.stringify(parsedReply)) - - const json = JSON.stringify(parsedReply) - if ( - !JSON.parse(json)['Envelope']['Body'][ - 'rechercherServicesSouscritsMesuresResponse' - ]['servicesSouscritsMesures'] - ) { - log('debug', 'fail no contract') - return null - } - const currentContracts = parseContracts(parsedReply) let currentContract = null if (Array.isArray(currentContracts)) { diff --git a/onDeleteAccount.js b/onDeleteAccount.js index 0fad351..08fe8dd 100644 --- a/onDeleteAccount.js +++ b/onDeleteAccount.js @@ -180493,6 +180493,7 @@ const removeFile = async function (file) { module.exports = saveFiles; module.exports.getFileIfExists = getFileIfExists; +module.exports.sanitizeFileName = sanitizeFileName; function getFileName(entry) { let filename; @@ -180513,7 +180514,9 @@ function getFileName(entry) { } function sanitizeFileName(filename) { - return filename.replace(/^\.+$/, '').replace(/[/?<>\\:*|":]/g, ''); + return filename.replace(/^\.+$/, '').replace(/[/?<>\\:*|":]/g, '') // Replace ascii control characters from 00 to 0F + // eslint-disable-next-line no-control-regex + .replace(/[\x00-\x0F]/g, ''); } function checkFileSize(fileobject) { diff --git a/package.json b/package.json index 54f2e54..f767edb 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ }, "dependencies": { "axios": "^0.27.2", - "cozy-konnector-libs": "4.54.0", + "cozy-konnector-libs": "4.55.0", "easy-soap-request": "^4.7.0", "jest": "^28.1.3", "moment": "^2.29.3", @@ -54,7 +54,7 @@ "xml2js": "^0.4.23" }, "devDependencies": { - "cozy-jobs-cli": "1.18.2", + "cozy-jobs-cli": "1.19.1", "cozy-konnector-build": "1.3.4", "eslint-config-cozy-app": "1.3.3", "eslint-plugin-prettier": "^4.0.0", -- GitLab