Skip to content

Commit

Permalink
Update to { v4: uuidv4 } = require('uuid')
Browse files Browse the repository at this point in the history
  • Loading branch information
bnystrom committed Jun 10, 2021
1 parent a4ddfcd commit 17c0dc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ocpp/ocpp-cp-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -235,4 +235,4 @@ module.exports = function(RED) {
}
// register our node
RED.nodes.registerType('CP client JSON', OCPPChargePointJNode);
};
};
2 changes: 1 addition & 1 deletion ocpp/ocpp-req.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');


Expand Down
2 changes: 1 addition & 1 deletion ocpp/ocpp-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 17c0dc4

Please sign in to comment.