diff --git a/ocpp/ocpp-cp-json.js b/ocpp/ocpp-cp-json.js index 9189d29..81212ea 100644 --- a/ocpp/ocpp-cp-json.js +++ b/ocpp/ocpp-cp-json.js @@ -3,7 +3,7 @@ const Websocket = require('ws'); let ReconnectingWebSocket = require('reconnecting-websocket'); -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); const events = require('events'); const EventEmitter = events.EventEmitter; const Logger = require('./utils/logdata'); @@ -235,4 +235,4 @@ module.exports = function(RED) { } // register our node RED.nodes.registerType('CP client JSON', OCPPChargePointJNode); -}; \ No newline at end of file +}; diff --git a/ocpp/ocpp-req.js b/ocpp/ocpp-req.js index e3ec857..1190143 100644 --- a/ocpp/ocpp-req.js +++ b/ocpp/ocpp-req.js @@ -2,7 +2,7 @@ var path = require('path'); var soap = require('soap'); -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); const Logger = require('./utils/logdata'); diff --git a/ocpp/ocpp-server.js b/ocpp/ocpp-server.js index 47b1239..a65580a 100644 --- a/ocpp/ocpp-server.js +++ b/ocpp/ocpp-server.js @@ -5,7 +5,7 @@ const soap = require('soap'); const fs = require('fs'); const path = require('path'); const events = require('events'); -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); const xmlconvert = require('xml-js'); const expressws = require('express-ws');