@dicebear/identicon 8.0.0-rc.2 → 8.0.0
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/LICENSE +3 -3
- package/README.md +8 -8
- package/lib/index.d.ts +4 -4
- package/lib/index.js +3 -3
- package/lib/utils/getComponents.js +5 -5
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -4,8 +4,8 @@ Licenses
|
|
|
4
4
|
# Design
|
|
5
5
|
Applies to all design files in this package.
|
|
6
6
|
|
|
7
|
-
Source: Identicon (https://dicebear.com)
|
|
8
|
-
Designer:
|
|
7
|
+
Source: Identicon (https://www.dicebear.com)
|
|
8
|
+
Designer: DiceBear (https://www.dicebear.com)
|
|
9
9
|
License: CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/)
|
|
10
10
|
|
|
11
11
|
# Code
|
|
@@ -13,7 +13,7 @@ Applies to all non-design files in this package.
|
|
|
13
13
|
|
|
14
14
|
MIT License
|
|
15
15
|
|
|
16
|
-
Copyright (c)
|
|
16
|
+
Copyright (c) 2024 Florian Körner
|
|
17
17
|
|
|
18
18
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
19
19
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<h1 align="center"><img src="https://dicebear.com/logo-readme.svg" width="96" /> <br />DiceBear Identicon</h1>
|
|
1
|
+
<h1 align="center"><img src="https://www.dicebear.com/logo-readme.svg" width="96" /> <br />DiceBear Identicon</h1>
|
|
2
2
|
<p align="center">
|
|
3
|
-
<strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
|
|
4
|
-
<a href="https://dicebear.com">Identicon</a> by <a href="https://dicebear.com">
|
|
3
|
+
<strong>Avatar Style for <a href="https://www.dicebear.com/">DiceBear</a></strong><br />
|
|
4
|
+
<a href="https://www.dicebear.com">Identicon</a> by <a href="https://www.dicebear.com">DiceBear</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
18
|
-
|
|
19
|
-
<a href="https://dicebear.com">
|
|
20
|
-
<a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a>.
|
|
18
|
+
<a href="https://www.dicebear.com">Identicon</a> by
|
|
19
|
+
<a href="https://www.dicebear.com">DiceBear</a>, licensed under
|
|
20
|
+
<a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a>.
|
|
21
21
|
</p>
|
|
22
22
|
<p align="center">
|
|
23
|
-
See <a href="https://dicebear.com/licenses">license overview</a> for more information.
|
|
23
|
+
See <a href="https://www.dicebear.com/licenses">license overview</a> for more information.
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
26
|
<p align="center">
|
|
27
|
-
<a href="https://dicebear.com/styles/identicon">
|
|
27
|
+
<a href="https://www.dicebear.com/styles/identicon">
|
|
28
28
|
Read Documentation
|
|
29
29
|
</a>
|
|
30
30
|
</p>
|
package/lib/index.d.ts
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* Identicon (@dicebear/identicon)
|
|
9
9
|
*
|
|
10
10
|
* Code licensed under MIT License.
|
|
11
|
-
* Copyright (c)
|
|
11
|
+
* Copyright (c) 2024 Florian Körner
|
|
12
12
|
*
|
|
13
|
-
* Design "Identicon" by
|
|
14
|
-
* Source: https://dicebear.com
|
|
15
|
-
* Homepage: https://dicebear.com
|
|
13
|
+
* Design "Identicon" by DiceBear licensed under CC0 1.0.
|
|
14
|
+
* Source: https://www.dicebear.com
|
|
15
|
+
* Homepage: https://www.dicebear.com
|
|
16
16
|
* License: https://creativecommons.org/publicdomain/zero/1.0/
|
|
17
17
|
*/
|
|
18
18
|
import type { StyleCreate, StyleMeta } from '@dicebear/core';
|
package/lib/index.js
CHANGED
|
@@ -8,9 +8,9 @@ import { getComponents } from './utils/getComponents.js';
|
|
|
8
8
|
import { getColors } from './utils/getColors.js';
|
|
9
9
|
export const meta = {
|
|
10
10
|
title: 'Identicon',
|
|
11
|
-
creator: '
|
|
12
|
-
source: 'https://dicebear.com',
|
|
13
|
-
homepage: 'https://dicebear.com',
|
|
11
|
+
creator: 'DiceBear',
|
|
12
|
+
source: 'https://www.dicebear.com',
|
|
13
|
+
homepage: 'https://www.dicebear.com',
|
|
14
14
|
license: {
|
|
15
15
|
name: 'CC0 1.0',
|
|
16
16
|
url: 'https://creativecommons.org/publicdomain/zero/1.0/',
|
|
@@ -9,27 +9,27 @@ export function getComponents({ prng, options }) {
|
|
|
9
9
|
const row1Component = pickComponent({
|
|
10
10
|
prng,
|
|
11
11
|
group: 'row1',
|
|
12
|
-
values: options.row1
|
|
12
|
+
values: options.row1,
|
|
13
13
|
});
|
|
14
14
|
const row2Component = pickComponent({
|
|
15
15
|
prng,
|
|
16
16
|
group: 'row2',
|
|
17
|
-
values: options.row2
|
|
17
|
+
values: options.row2,
|
|
18
18
|
});
|
|
19
19
|
const row3Component = pickComponent({
|
|
20
20
|
prng,
|
|
21
21
|
group: 'row3',
|
|
22
|
-
values: options.row3
|
|
22
|
+
values: options.row3,
|
|
23
23
|
});
|
|
24
24
|
const row4Component = pickComponent({
|
|
25
25
|
prng,
|
|
26
26
|
group: 'row4',
|
|
27
|
-
values: options.row4
|
|
27
|
+
values: options.row4,
|
|
28
28
|
});
|
|
29
29
|
const row5Component = pickComponent({
|
|
30
30
|
prng,
|
|
31
31
|
group: 'row5',
|
|
32
|
-
values: options.row5
|
|
32
|
+
values: options.row5,
|
|
33
33
|
});
|
|
34
34
|
return {
|
|
35
35
|
'row1': row1Component,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/identicon",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"test": "uvu tests"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@dicebear/core": "8.0.0
|
|
32
|
+
"@dicebear/core": "8.0.0",
|
|
33
33
|
"@tsconfig/recommended": "^1.0.2",
|
|
34
34
|
"del-cli": "^5.0.0",
|
|
35
35
|
"typescript": "^5.1.6",
|
|
36
36
|
"uvu": "^0.5.6"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@dicebear/core": "^8.0.0
|
|
39
|
+
"@dicebear/core": "^8.0.0"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=16.0.0"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "218cf2a59086fb512ac9b1bfc498ccb8855f4226"
|
|
48
48
|
}
|