Update uuid dep

This commit is contained in:
Bryan Ashby 2020-05-14 22:05:17 -06:00
parent b76bb8a9bd
commit 9ed7c049ad
6 changed files with 12 additions and 12 deletions

View File

@ -5,7 +5,7 @@ const UserProps = require('./user_property.js');
// deps
const _ = require('lodash');
const uuidV4 = require('uuid/v4');
const { v4 : UUIDv4 } = require('uuid');
module.exports = class FileBaseFilters {
constructor(client) {
@ -41,7 +41,7 @@ module.exports = class FileBaseFilters {
}
add(filterInfo) {
const filterUuid = uuidV4();
const filterUuid = UUIDv4();
filterInfo.tags = this.cleanTags(filterInfo.tags);

View File

@ -17,7 +17,7 @@ const fs = require('graceful-fs');
const fse = require('fs-extra');
const paths = require('path');
const moment = require('moment');
const uuidv4 = require('uuid/v4');
const { v4 : UUIDv4 } = require('uuid');
const yazl = require('yazl');
/*
@ -188,7 +188,7 @@ exports.getModule = class FileBaseListExport extends MenuModule {
const outputFileName = paths.join(
sysTempDownloadDir,
`file_list_${uuidv4().substr(-8)}_${moment().format('YYYY-MM-DD')}.txt`
`file_list_${UUIDv4().substr(-8)}_${moment().format('YYYY-MM-DD')}.txt`
);
fs.writeFile(outputFileName, listBody, 'utf8', err => {

View File

@ -22,7 +22,7 @@ const _ = require('lodash');
const fse = require('fs-extra');
const temptmp = require('temptmp');
const paths = require('path');
const UUIDv4 = require('uuid/v4');
const { v4 : UUIDv4 } = require('uuid');
const moment = require('moment');
const FormIds = {

View File

@ -36,7 +36,7 @@ const assert = require('assert');
const sane = require('sane');
const fse = require('fs-extra');
const iconv = require('iconv-lite');
const uuidV4 = require('uuid/v4');
const { v4 : UUIDv4 } = require('uuid');
exports.moduleInfo = {
name : 'FTN BSO',
@ -1215,7 +1215,7 @@ function FTNMessageScanTossModule() {
//
if(true === _.get(Config(), [ 'messageNetworks', 'ftn', 'areas', config.localAreaTag, 'allowDupes' ], false)) {
// just generate a UUID & therefor always allow for dupes
message.messageUuid = uuidV4();
message.messageUuid = UUIDv4();
}
return callback(null);

View File

@ -53,7 +53,7 @@
"sqlite3-trans": "^1.2.2",
"ssh2": "0.8.6",
"temptmp": "^1.1.0",
"uuid": "^3.3.3",
"uuid": "^8.0.0",
"uuid-parse": "1.1.0",
"ws": "^7.3.0",
"xxhash": "^0.3.0",

View File

@ -2231,10 +2231,10 @@ uuid@^3.3.2:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131"
integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==
uuid@^3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866"
integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==
uuid@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.0.0.tgz#bc6ccf91b5ff0ac07bbcdbf1c7c4e150db4dbb6c"
integrity sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==
verror@1.10.0:
version "1.10.0"