@dicebear/initials
Advanced tools
Comparing version 5.0.0-beta.9 to 5.0.0
@@ -7,3 +7,3 @@ /*! | ||
*/ | ||
import initials from 'initials'; | ||
import { getInitials } from './utils/initials.js'; | ||
export const meta = { | ||
@@ -23,5 +23,3 @@ title: 'Initials', | ||
const fontWeight = (_d = options.fontWeight) !== null && _d !== void 0 ? _d : 400; | ||
const seedInitials = initials(prng.seed.trim()) | ||
.toLocaleUpperCase() | ||
.slice(0, (_e = options.chars) !== null && _e !== void 0 ? _e : 2); | ||
const seedInitials = getInitials(prng.seed.trim()).slice(0, (_e = options.chars) !== null && _e !== void 0 ? _e : 2); | ||
// prettier-ignore | ||
@@ -28,0 +26,0 @@ const svg = [ |
{ | ||
"name": "@dicebear/initials", | ||
"version": "5.0.0-beta.9", | ||
"version": "5.0.0", | ||
"description": "Initials avatar style for DiceBear", | ||
@@ -31,7 +31,4 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
"initials": "^3.1.2" | ||
}, | ||
"devDependencies": { | ||
"@dicebear/core": "^5.0.0-beta.9", | ||
"@dicebear/core": "^5.0.0", | ||
"@tsconfig/recommended": "^1.0.1", | ||
@@ -43,3 +40,3 @@ "del-cli": "^4.0.1", | ||
"peerDependencies": { | ||
"@dicebear/core": "^5.0.0-alpha.6" | ||
"@dicebear/core": "^5.0.0" | ||
}, | ||
@@ -52,3 +49,3 @@ "engines": { | ||
}, | ||
"gitHead": "52174b710e9af21e5681c32a69dc463a6200bb14" | ||
"gitHead": "e8a60b4611b5738c7f46910f77b97ef1967f32dc" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
1
7021
145
- Removedinitials@^3.1.2
- Removedinitials@3.1.2(transitive)