Node-v3 icon indicating copy to clipboard operation
Node-v3 copied to clipboard

Renaming variable using reserved word (Javascript)

Open edbella opened this issue 11 months ago • 0 comments

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 avatar Mar 23 '24 22:03 edbella