diff --git a/CHANGELOG.md b/CHANGELOG.md index d7992a5..e5dbf69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,16 @@ # 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 -Hotfixes to allow a minimum of 3 characters and a maximum of 6 characters for the "account_bank" parameter in the subaccountSchema for the creation of subaccounts. +Validation hotfix on subaccounts ### Version Changes. -- [FIXED] The min and max value for the 'account_bank" parameter in the subaccountSchema +- [FIXED] Update validation (minLength & maxLength) for 'account_bank" parameter in the subaccountSchema. ## 1.1.8 | 2024-02-19 Updated BVN verification flow and hotfixes on subaccount, bills and transaction fees: diff --git a/package-lock.json b/package-lock.json index 709df17..abee173 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,7 +1,7 @@ { "name": "flutterwave-node-v3", "version": "1.1.6", - "lockfileVersion": 2, + "lockfileVersion": 1, "requires": true, "packages": { "": { @@ -9414,9 +9414,10 @@ } }, "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz", + "integrity": "sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==", + "dev": true }, "workerpool": { "version": "6.2.0", diff --git a/package.json b/package.json index 2192fcc..2adc0ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flutterwave-node-v3", - "version": "1.1.8", + "version": "1.1.9", "description": "The official Node.JS library for Flutterwave v3 payment APIs", "main": "index.js", "scripts": { 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, },