@scaleway/random-name
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -6,2 +6,16 @@ # Change Log | ||
## 4.0.1 (2023-01-13) | ||
### :package: Chore | ||
* **release:** publish ([9d6de7b](https://github.com/scaleway/scaleway-lib/commit/9d6de7b63065f53774cb64b0e5a46a868dc9933a)) | ||
### :bug: Bug Fixes | ||
* harden ts code ([#1158](https://github.com/scaleway/scaleway-lib/issues/1158)) ([7e2130e](https://github.com/scaleway/scaleway-lib/commit/7e2130ea4c2a079c69ec49b27444daa8f6076d03)) | ||
## 4.0.0 (2023-01-06) | ||
@@ -8,0 +22,0 @@ |
@@ -6,3 +6,3 @@ const ADJECTIVES = ['admiring', 'adoring', 'affectionate', 'agitated', 'amazing', 'angry', 'awesome', 'beautiful', 'blissful', 'bold', 'boring', 'brave', 'busy', 'charming', 'clever', 'cool', 'compassionate', 'competent', 'condescending', 'confident', 'cranky', 'crazy', 'dazzling', 'determined', 'distracted', 'dreamy', 'eager', 'ecstatic', 'elastic', 'elated', 'elegant', 'eloquent', 'epic', 'exciting', 'fervent', 'festive', 'flamboyant', 'focused', 'friendly', 'frosty', 'funny', 'gallant', 'gifted', 'goofy', 'gracious', 'great', 'happy', 'hardcore', 'heuristic', 'hopeful', 'hungry', 'infallible', 'inspiring', 'interesting', 'intelligent', 'jolly', 'jovial', 'keen', 'kind', 'laughing', 'loving', 'lucid', 'magical', 'mystifying', 'modest', 'musing', 'naughty', 'nervous', 'nice', 'nifty', 'nostalgic', 'objective', 'optimistic', 'peaceful', 'pedantic', 'pensive', 'practical', 'priceless', 'quirky', 'quizzical', 'recursing', 'relaxed', 'reverent', 'romantic', 'sad', 'serene', 'sharp', 'silly', 'sleepy', 'stoic', 'strange', 'stupefied', 'suspicious', 'sweet', 'tender', 'thirsty', 'trusting', 'unruffled', 'upbeat', 'vibrant', 'vigilant', 'vigorous', 'wizardly', 'wonderful', 'xenodochial', 'youthful', 'zealous', 'zen']; | ||
let separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '-'; | ||
const name = `${ADJECTIVES[Math.floor(Math.random() * ADJECTIVES.length)]}${separator}${NAMES[Math.floor(Math.random() * NAMES.length)]}`; | ||
const name = `${ADJECTIVES[Math.floor(Math.random() * ADJECTIVES.length)] ?? ''}${separator}${NAMES[Math.floor(Math.random() * NAMES.length)] ?? ''}`; | ||
if (name === `boring${separator}wozniak`) { | ||
@@ -9,0 +9,0 @@ return randomName(prefix, separator); |
{ | ||
"name": "@scaleway/random-name", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "A small utility to generate a random name", | ||
@@ -22,3 +22,3 @@ "type": "module", | ||
"license": "MIT", | ||
"gitHead": "e80144e529c96b01905b0ee29029d0edbd916e61" | ||
"gitHead": "4f0be52e1cf86895150e66c1206ee1e7fd7a72e7" | ||
} |
11158