@dicebear/core 7.1.0 → 7.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <h1><img src="https://dicebear.com/logo-readme.svg" width="28" /> DiceBear</h1>
1
+ <h1><img src="https://www.dicebear.com/logo-readme.svg" width="28" /> DiceBear</h1>
2
2
 
3
3
  <p>
4
4
  <img src="https://api.dicebear.com/6.x/adventurer/svg?seed=Mimi&backgroundColor=0077b6&radius=10" width="64" />
@@ -22,5 +22,5 @@ the countless options that each avatar style provides.
22
22
  And thanks to the JavaScript library, HTTP API, CLI, Figma plugin and
23
23
  Playground, your next avatar is always just a stone's throw away!
24
24
 
25
- [Playground](https://dicebear.com/playground) |
26
- [Documentation](https://dicebear.com/introduction)
25
+ [Playground](https://www.dicebear.com/playground) |
26
+ [Documentation](https://www.dicebear.com/introduction)
@@ -27,20 +27,20 @@ export function xml(style) {
27
27
  '</metadata>');
28
28
  }
29
29
  export function text(style) {
30
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
30
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
31
31
  let title = ((_a = style.meta) === null || _a === void 0 ? void 0 : _a.title) ? `„${(_b = style.meta) === null || _b === void 0 ? void 0 : _b.title}”` : 'Design';
32
32
  let creator = `„${(_d = (_c = style.meta) === null || _c === void 0 ? void 0 : _c.creator) !== null && _d !== void 0 ? _d : 'Unknown'}”`;
33
33
  if ((_e = style.meta) === null || _e === void 0 ? void 0 : _e.source) {
34
34
  title += ` (${style.meta.source})`;
35
35
  }
36
36
  let result = '';
37
- if (((_g = (_f = style.meta) === null || _f === void 0 ? void 0 : _f.license) === null || _g === void 0 ? void 0 : _g.name) !== 'MIT' && ((_h = style.meta) === null || _h === void 0 ? void 0 : _h.title)) {
37
+ if (((_g = (_f = style.meta) === null || _f === void 0 ? void 0 : _f.license) === null || _g === void 0 ? void 0 : _g.name) !== 'MIT' && ((_h = style.meta) === null || _h === void 0 ? void 0 : _h.creator) !== 'DiceBear' && ((_j = style.meta) === null || _j === void 0 ? void 0 : _j.title)) {
38
38
  result += 'Remix of ';
39
39
  }
40
40
  result += `${title} by ${creator}`;
41
- if ((_k = (_j = style.meta) === null || _j === void 0 ? void 0 : _j.license) === null || _k === void 0 ? void 0 : _k.name) {
42
- result += `, licensed under „${(_m = (_l = style.meta) === null || _l === void 0 ? void 0 : _l.license) === null || _m === void 0 ? void 0 : _m.name}”`;
43
- if ((_p = (_o = style.meta) === null || _o === void 0 ? void 0 : _o.license) === null || _p === void 0 ? void 0 : _p.url) {
41
+ if ((_l = (_k = style.meta) === null || _k === void 0 ? void 0 : _k.license) === null || _l === void 0 ? void 0 : _l.name) {
42
+ result += `, licensed under „${(_o = (_m = style.meta) === null || _m === void 0 ? void 0 : _m.license) === null || _o === void 0 ? void 0 : _o.name}”`;
43
+ if ((_q = (_p = style.meta) === null || _p === void 0 ? void 0 : _p.license) === null || _q === void 0 ? void 0 : _q.url) {
44
44
  result += ` (${style.meta.license.url})`;
45
45
  }
46
46
  }
package/lib/utils/svg.js CHANGED
@@ -70,7 +70,7 @@ export function createAttrString(result) {
70
70
  .join(' ');
71
71
  }
72
72
  export function randomizeIds(result) {
73
- const prng = createPrng();
73
+ const prng = createPrng(Math.random().toString());
74
74
  const ids = {};
75
75
  return result.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi, (match, m1, m2, m3) => {
76
76
  ids[m2] = ids[m2] || prng.string(8);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dicebear/core",
3
- "version": "7.1.0",
3
+ "version": "7.1.2",
4
4
  "description": "An avatar library for designers and developers.",
5
5
  "keywords": [
6
6
  "avatar",
7
7
  "identicon"
8
8
  ],
9
- "homepage": "https://dicebear.com",
9
+ "homepage": "https://www.dicebear.com",
10
10
  "bugs": {
11
11
  "url": "https://github.com/dicebear/dicebear/issues"
12
12
  },
@@ -32,7 +32,7 @@
32
32
  "test": "uvu tests"
33
33
  },
34
34
  "dependencies": {
35
- "@dicebear/converter": "7.1.0",
35
+ "@dicebear/converter": "7.1.2",
36
36
  "@types/json-schema": "^7.0.11"
37
37
  },
38
38
  "devDependencies": {
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "04b74170d60c613e1cff891f6fc4bdc573c39808"
50
+ "gitHead": "a2a4572ff841b55b51d60e5c1fdc90f38c6d8d7f"
51
51
  }