diff --git a/src/client.js b/src/client.js index 72a4378d..c126aba7 100644 --- a/src/client.js +++ b/src/client.js @@ -9,7 +9,7 @@ const Msg = require("./models/msg"); const Network = require("./models/network"); const Helper = require("./helper"); const UAParser = require("ua-parser-js"); -const uuidv4 = require("uuid/v4"); +const {v4: uuidv4} = require("uuid"); const escapeRegExp = require("lodash/escapeRegExp"); const constants = require("../client/js/constants.js"); const inputs = require("./plugins/inputs"); diff --git a/src/models/network.js b/src/models/network.js index f621637b..41cab75b 100644 --- a/src/models/network.js +++ b/src/models/network.js @@ -1,7 +1,7 @@ "use strict"; const _ = require("lodash"); -const uuidv4 = require("uuid/v4"); +const {v4: uuidv4} = require("uuid"); const IrcFramework = require("irc-framework"); const Chan = require("./chan"); const Msg = require("./msg"); diff --git a/src/plugins/uploader.js b/src/plugins/uploader.js index 0c2242c3..3880f953 100644 --- a/src/plugins/uploader.js +++ b/src/plugins/uploader.js @@ -2,7 +2,7 @@ const Helper = require("../helper"); const busboy = require("busboy"); -const uuidv4 = require("uuid/v4"); +const {v4: uuidv4} = require("uuid"); const path = require("path"); const fsextra = require("fs-extra"); const fs = require("fs");