Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming variable using reserved word (Javascript) #154

Open
edbella opened this issue Mar 23, 2024 · 0 comments
Open

Renaming variable using reserved word (Javascript) #154

edbella opened this issue Mar 23, 2024 · 0 comments

Comments

@edbella
Copy link

edbella commented Mar 23, 2024

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/flutterwave-node-v3/utils/logger.js b/node_modules/flutterwave-node-v3/utils/logger.js
index 57d09fc..facf5be 100644
--- a/node_modules/flutterwave-node-v3/utils/logger.js
+++ b/node_modules/flutterwave-node-v3/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,
     },

This issue body was partially generated by patch-package.

@edbella edbella changed the title Renaming variable using reserved work (Javascript) Renaming variable using reserved word (Javascript) Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant