From f2d2357a359422aa1b76d4bbfe36cc8717110100 Mon Sep 17 00:00:00 2001 From: Aryan-Verma-999 Date: Thu, 5 Mar 2026 23:42:05 +0530 Subject: [PATCH] chore: update Node to v22 LTS and replace console.log with console.error in catch blocks --- .nvmrc | 2 +- packages/api/src/EmbeddedChatApi.ts | 14 +++++++------- .../src/views/ChatInput/AudioMessageRecorder.js | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.nvmrc b/.nvmrc index d60d573ec6..5a60199693 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16.19.0 \ No newline at end of file +v22.16.0 \ No newline at end of file diff --git a/packages/api/src/EmbeddedChatApi.ts b/packages/api/src/EmbeddedChatApi.ts index 72e25a0466..7feca230c1 100644 --- a/packages/api/src/EmbeddedChatApi.ts +++ b/packages/api/src/EmbeddedChatApi.ts @@ -589,7 +589,7 @@ export default class EmbeddedChatApi { ); return await messages.json(); } catch (err) { - console.log(err); + console.error(err); } } @@ -630,7 +630,7 @@ export default class EmbeddedChatApi { ); return await messages.json(); } catch (err) { - console.log(err); + console.error(err); } } @@ -650,7 +650,7 @@ export default class EmbeddedChatApi { ); return await messages.json(); } catch (err) { - console.log(err); + console.error(err); } } @@ -671,7 +671,7 @@ export default class EmbeddedChatApi { ); return await roles.json(); } catch (err) { - console.log(err); + console.error(err); } } @@ -691,7 +691,7 @@ export default class EmbeddedChatApi { ); return await roles.json(); } catch (err) { - console.log(err); + console.error(err); } } @@ -1044,7 +1044,7 @@ export default class EmbeddedChatApi { }); return await response.json(); } catch (err) { - console.log(err); + console.error(err); } } @@ -1075,7 +1075,7 @@ export default class EmbeddedChatApi { }).then((r) => r.json()); return response; } catch (err) { - console.log(err); + console.error(err); } } diff --git a/packages/react/src/views/ChatInput/AudioMessageRecorder.js b/packages/react/src/views/ChatInput/AudioMessageRecorder.js index 35e8063a52..99d330a2ed 100644 --- a/packages/react/src/views/ChatInput/AudioMessageRecorder.js +++ b/packages/react/src/views/ChatInput/AudioMessageRecorder.js @@ -75,7 +75,7 @@ const AudioMessageRecorder = (props) => { }, 1000) ); } catch (error) { - console.log(error); + console.error(error); setRecordState('idle'); } };