mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 07:05:05 -04:00
Upgrade unique-names-generator
This commit is contained in:
parent
e7c484f428
commit
d89a92b217
3 changed files with 6 additions and 6 deletions
|
@ -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' })
|
||||
};
|
||||
}
|
||||
|
||||
|
|
6
server/package-lock.json
generated
6
server/package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue