From f25252eece6a37b0f6c59c9570ea9fec552a0d96 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jul 2023 22:33:36 +0000 Subject: [PATCH 1/4] Bump word-wrap from 1.2.3 to 1.2.4 Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. - [Release notes](https://github.com/jonschlinkert/word-wrap/releases) - [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4) --- updated-dependencies: - dependency-name: word-wrap dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 96ca6da..9ba505a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "flutterwave-node-v3", - "version": "1.0.12", + "version": "1.1.6", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -4046,9 +4046,9 @@ } }, "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": { From f015b6c53453032cfb1405b5a0454f00277fb5e2 Mon Sep 17 00:00:00 2001 From: Cornelius Ashley-Osuzoka <59456456+corneliusyaovi@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:34:10 +0100 Subject: [PATCH 2/4] update the package version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": { From ea8723d11562613b14c9e9e402c826a35735f082 Mon Sep 17 00:00:00 2001 From: Cornelius Ashley-Osuzoka <59456456+corneliusyaovi@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:37:16 +0100 Subject: [PATCH 3/4] Add logs for v1.1.9 --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7992a5..e39543e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,10 @@ # Changelog ## 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: From aeb97d8ca052f08af907e7af9214eb3e0807d97e Mon Sep 17 00:00:00 2001 From: dekunledev Date: Thu, 4 Apr 2024 16:36:40 +0100 Subject: [PATCH 4/4] 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, },