Skip to content

Commit 2bdb82d

Browse files
Merge pull request #157 from Flutterwave/dev
Pull changes from dev
2 parents ea8723d + 27826f0 commit 2bdb82d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.2.0 | 2024-04-04
4+
Updated the variable name "package" which happens to be a reserved word in JavaScript, and it is causing compatibility issues with certain bundlers.
5+
6+
### Version Changes
7+
- [FIXED] changed the variable name 'package' to 'packageJson' in the logger.js file.
8+
39
## 1.1.9 | 2024-03-18
410
Validation hotfix on subaccounts
511

utils/logger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const axios = require('axios');
2-
const package = require('../package.json');
2+
const packageJson = require('../package.json');
33
const { createLogger, format, transports } = require('winston');
44
const { combine, timestamp, colorize, errors, printf, json } = format;
55

@@ -9,7 +9,7 @@ function logger(name, _rave) {
99
{
1010
publicKey: _rave.getPublicKey(),
1111
language: 'NodeJs v3',
12-
version: package.version,
12+
version: packageJson.version,
1313
title: 'Incoming call',
1414
message: name,
1515
},

0 commit comments

Comments
 (0)