deps: bump uuid

This commit is contained in:
Calvin Montgomery 2021-03-21 21:37:15 -07:00
parent 0b57f528bf
commit 988029e6c7
3 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@
"socket.io": "^2.0.3", "socket.io": "^2.0.3",
"source-map-support": "^0.5.19", "source-map-support": "^0.5.19",
"toml": "^3.0.0", "toml": "^3.0.0",
"uuid": "^3.2.1", "uuid": "^8.3.2",
"yamljs": "^0.2.8" "yamljs": "^0.2.8"
}, },
"scripts": { "scripts": {

View File

@ -1,4 +1,4 @@
import uuid from 'uuid'; import { v4 as uuidv4 } from 'uuid';
const LOGGER = require('@calzoneman/jsli')('announcementrefresher'); const LOGGER = require('@calzoneman/jsli')('announcementrefresher');
@ -9,7 +9,7 @@ class AnnouncementRefresher {
this.pubClient = pubClient; this.pubClient = pubClient;
this.subClient = subClient; this.subClient = subClient;
this.channel = channel; this.channel = channel;
this.uuid = uuid.v4(); this.uuid = uuidv4();
process.nextTick(this.init.bind(this)); process.nextTick(this.init.bind(this));
} }

View File

@ -1,5 +1,5 @@
import Promise from 'bluebird'; import Promise from 'bluebird';
import uuid from 'uuid'; import { v4 as uuidv4 } from 'uuid';
const LOGGER = require('@calzoneman/jsli')('partitionchannelindex'); const LOGGER = require('@calzoneman/jsli')('partitionchannelindex');
@ -9,7 +9,7 @@ const CACHE_EXPIRE_DELAY = 40 * 1000;
class PartitionChannelIndex { class PartitionChannelIndex {
constructor(pubClient, subClient, channel) { constructor(pubClient, subClient, channel) {
this.id = uuid.v4(); this.id = uuidv4();
this.pubClient = pubClient; this.pubClient = pubClient;
this.subClient = subClient; this.subClient = subClient;
this.channel = channel; this.channel = channel;