From aeb97d8ca052f08af907e7af9214eb3e0807d97e Mon Sep 17 00:00:00 2001 From: dekunledev Date: Thu, 4 Apr 2024 16:36:40 +0100 Subject: [PATCH] Updated the variable name in the logger.js file --- CHANGELOG.md | 6 ++++++ utils/logger.js | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e39543e..e5dbf69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.2.0 | 2024-04-04 +Updated the variable name "package" which happens to be a reserved word in JavaScript, and it is causing compatibility issues with certain bundlers. + +### Version Changes +- [FIXED] changed the variable name 'package' to 'packageJson' in the logger.js file. + ## 1.1.9 | 2024-03-18 Validation hotfix on subaccounts diff --git a/utils/logger.js b/utils/logger.js index 57d09fc..facf5be 100644 --- a/utils/logger.js +++ b/utils/logger.js @@ -1,5 +1,5 @@ const axios = require('axios'); -const package = require('../package.json'); +const packageJson = require('../package.json'); const { createLogger, format, transports } = require('winston'); const { combine, timestamp, colorize, errors, printf, json } = format; @@ -9,7 +9,7 @@ function logger(name, _rave) { { publicKey: _rave.getPublicKey(), language: 'NodeJs v3', - version: package.version, + version: packageJson.version, title: 'Incoming call', message: name, },