commit d89a92b217fc5d99e8a45e8e69203b1100da1345
parent e7c484f428314560d40b2ef3dd7d3ebb1c43b74b
Author: Paul Szymanski <519954+PaulSzymanski@users.noreply.github.com>
Date: Sun, 12 Jul 2020 14:50:13 +0200
Upgrade unique-names-generator
Diffstat:
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/server/index.js b/server/index.js
@@ -1,5 +1,5 @@
const parser = require('ua-parser-js');
-const { uniqueNamesGenerator } = require('unique-names-generator');
+const { uniqueNamesGenerator, animals, adjectives } = require('unique-names-generator');
class SnapdropServer {
@@ -192,7 +192,7 @@ class Peer {
os: ua.os.name,
browser: ua.browser.name,
type: ua.device.type,
- displayName: uniqueNamesGenerator({ length: 2 })
+ displayName: uniqueNamesGenerator({ length: 2, separator: ' ', dictionaries: [adjectives, animals], style: 'capital' })
};
}
diff --git a/server/package-lock.json b/server/package-lock.json
@@ -15,9 +15,9 @@
"integrity": "sha512-LtzwHlVHwFGTptfNSgezHp7WUlwiqb0gA9AALRbKaERfxwJoiX0A73QbTToxteIAuIaFshhgIZfqK8s7clqgnA=="
},
"unique-names-generator": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/unique-names-generator/-/unique-names-generator-3.0.0.tgz",
- "integrity": "sha512-5BQhANYUKPqFnFYL1OduL7FDPiV7u5K1Lm4Z89YL4uOLH/uCNTnHkW3roFUEiEptOKt8f3uhmWnZj9w0zBXppw=="
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/unique-names-generator/-/unique-names-generator-4.1.1.tgz",
+ "integrity": "sha512-f3FzkJEBVUoUueeA17DzfOqa8eT7VinEKOP32Wdqbe8SzSkU/4afIEfm4KP5W+GCALpUQmW3X/SdSyTP5ES5MQ=="
},
"ws": {
"version": "6.0.0",
diff --git a/server/package.json b/server/package.json
@@ -10,7 +10,7 @@
"license": "ISC",
"dependencies": {
"ua-parser-js": "^0.7.18",
- "unique-names-generator": "^3.0.0",
+ "unique-names-generator": "^4.1.1",
"ws": "^6.0.0"
}
}