Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dicebear/open-peeps

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dicebear/open-peeps - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

lib/utils/convertColor.d.ts

4

lib/components/facialHair.js

@@ -13,3 +13,3 @@ /**

'full3': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M228 104.3c-9.3-8.3-19.8-25-33.1-11.8-3.3 3.8-4.7 12.1-9.7 13.8-6.8 2.1-13.4-5-15.7-10.4-9.4-30.4 29.3-38.7 51.4-33.8 10.8 4.4 18.7 22.3 19.2 31.6.3 6.2-5 15.4-12.1 10.6Zm70.3-46.7-.4-1.1c-4.1-1.6-7.4 0-9.4 3 0 .7.3 1.4.4 2.2-1.5 3.2-3 7.3-5 10.1l-1.3-.1c-35 3.6-17.9-32.9-53.3-42-27.4-4.5-76.8.7-89.7 29.2-10.2 45.5-62 13.8-79-9.9C42.4 27.5 30.7 1.2 19.4-24.4c-2.4-5.4-9.8-1.5-9 3.7C-.1.3.3 25.4-2.3 48.3c-4.4 46-8.7 110.2 33.9 138.2 55.5 62.7 194 84.8 258 27.2 22.2-47.6 19.4-105.7 8.7-156.1Z" fill="#000"/>`,
'full4': (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M-11.6-16.2c7 0 10 16.4 10 16.4 18 31 35.3 62 66.1 83.2 34.3 13.8 68 37.2 107 39.7 17.7-1.8 22.8-18 44.6-12.3 13.9 3.4 29.4 10 42.3.5 10.8-7.1 18.4-17.9 27.8-26.5.4-1.6 3.6 15 2.6 20.5l-.7 3.2c-5.8 25.5-11.7 55.6-37.6 69.7-7.9 4.1-19 8.2-27.7 5.8-46.3 7.4-96.5 2-137-21-14.3-3.8-24.9-15.2-36.1-23.8-27.5-24-59-54.6-62-91.1-3-36.6-1.6-64.3.7-64.3ZM128.3 56c15.7-25.3 47-21.2 71.4-9.7 13.4-9.1 31.2-7.4 45.7-1 13.5 7.4 23.7 19.4 33 31 2.3 3 3.2 7.2 0 8.7-15 12.4-46.4 5.1-60.6-4.1-10.3-.8-8-15.4-20-5.2a64 64 0 0 1-28.5 14.8 75.2 75.2 0 0 1-67.4-6c-2.7-.3-13.7-6.6-9.8-8.8 4.3 1.2 28-12.4 36.2-19.7Z" fill="${escape.xml(`#${colors.headContrast}`)}"/><path d="M-15.3 11c.2-1.4 2.3-1.4 2.3 0 1 29.2 10.5 61.3 26.6 86.4 38.8 63.2 117.8 94.9 194 84 55.5-.8 61.5-32.3 75.3-76.3 7.2-5.9 10.7-3.7 8.5 3.2-17.2 53-23 83.5-90.8 83-108.9 15.5-227-73.5-215.9-180.4Zm153.8 23.5c17.8-7.9 39-6.8 53.8 4.2l1 .2c2.6.6 5 1 8 .8C240.6 19 266.8 55 287 82c1.5 0 2.8 1.3 2.4 2.7l.6.7a36 36 0 0 1-13.4 17.4c-20.5 27.4-35.9 18.8-62.6 7.6-27.5-4.1-28.6 28.3-67 13.4l-1.5-.4a95.6 95.6 0 0 1-36.3-19.7c-.3-.3 0-.9.5-.7 21.3 6.4 48.7 27.4 70.3 13.3 5.5-3.7 10.4-8.2 16.6-11 35-11.7 47.2 34.6 77.8-13.4-24.9 4.3-53 0-71.6-17-27.8 33.6-82 28.2-116.5 7.4-4.7.6-11.7-4-7.4-8.5 4.8-3.7 12.3-2.2 18.1-4.3 18.7-6.6 23-27.7 41.6-35Zm62.3 14c-19.7-14-49.1-16.3-68 .2-11.7 11.8-19.4 28.8-38.3 32 32.5 18.7 79.3 19 104.4-10.8.8-2.6 4.9-1.5 5.4.7a86.6 86.6 0 0 0 74 12.9l-3.4-4.6c-17.5-24-40.1-52-73.6-32.2-.8.4-1-.6-1.2-1.1l-.4.3c.3.6 2.8 2.7 1 2.7Zm80.6 41.8.4.5a54 54 0 0 1 1.7-1h-.1l-2 .5ZM-12.7-25.4v-1c0-9.6 2.6 2.6 3.7 5 5 9 9.2 18 14.5 26.7C26.8 43.6 30.1 60.3 73 82c3.2 2.8-.1 7.7-4 6.7-6-1.5-11.6-5.3-16.8-8.4C23 65.3 12.2 34.6-1 7.8c-3.8-10.6-12.7-22-11.7-33.2Z" fill="#000"/></g>`,
'full4': (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M-11.6-16.2c7 0 10 16.4 10 16.4 18 31 35.3 62 66.1 83.2 34.3 13.8 68 37.2 107 39.7 17.7-1.8 22.8-18 44.6-12.3 13.9 3.4 29.4 10 42.3.5 10.8-7.1 18.4-17.9 27.8-26.5.4-1.6 3.6 15 2.6 20.5l-.7 3.2c-5.8 25.5-11.7 55.6-37.6 69.7-7.9 4.1-19 8.2-27.7 5.8-46.3 7.4-96.5 2-137-21-14.3-3.8-24.9-15.2-36.1-23.8-27.5-24-59-54.6-62-91.1-3-36.6-1.6-64.3.7-64.3ZM128.3 56c15.7-25.3 47-21.2 71.4-9.7 13.4-9.1 31.2-7.4 45.7-1 13.5 7.4 23.7 19.4 33 31 2.3 3 3.2 7.2 0 8.7-15 12.4-46.4 5.1-60.6-4.1-10.3-.8-8-15.4-20-5.2a64 64 0 0 1-28.5 14.8 75.2 75.2 0 0 1-67.4-6c-2.7-.3-13.7-6.6-9.8-8.8 4.3 1.2 28-12.4 36.2-19.7Z" fill="${escape.xml(`${colors.headContrast}`)}"/><path d="M-15.3 11c.2-1.4 2.3-1.4 2.3 0 1 29.2 10.5 61.3 26.6 86.4 38.8 63.2 117.8 94.9 194 84 55.5-.8 61.5-32.3 75.3-76.3 7.2-5.9 10.7-3.7 8.5 3.2-17.2 53-23 83.5-90.8 83-108.9 15.5-227-73.5-215.9-180.4Zm153.8 23.5c17.8-7.9 39-6.8 53.8 4.2l1 .2c2.6.6 5 1 8 .8C240.6 19 266.8 55 287 82c1.5 0 2.8 1.3 2.4 2.7l.6.7a36 36 0 0 1-13.4 17.4c-20.5 27.4-35.9 18.8-62.6 7.6-27.5-4.1-28.6 28.3-67 13.4l-1.5-.4a95.6 95.6 0 0 1-36.3-19.7c-.3-.3 0-.9.5-.7 21.3 6.4 48.7 27.4 70.3 13.3 5.5-3.7 10.4-8.2 16.6-11 35-11.7 47.2 34.6 77.8-13.4-24.9 4.3-53 0-71.6-17-27.8 33.6-82 28.2-116.5 7.4-4.7.6-11.7-4-7.4-8.5 4.8-3.7 12.3-2.2 18.1-4.3 18.7-6.6 23-27.7 41.6-35Zm62.3 14c-19.7-14-49.1-16.3-68 .2-11.7 11.8-19.4 28.8-38.3 32 32.5 18.7 79.3 19 104.4-10.8.8-2.6 4.9-1.5 5.4.7a86.6 86.6 0 0 0 74 12.9l-3.4-4.6c-17.5-24-40.1-52-73.6-32.2-.8.4-1-.6-1.2-1.1l-.4.3c.3.6 2.8 2.7 1 2.7Zm80.6 41.8.4.5a54 54 0 0 1 1.7-1h-.1l-2 .5ZM-12.7-25.4v-1c0-9.6 2.6 2.6 3.7 5 5 9 9.2 18 14.5 26.7C26.8 43.6 30.1 60.3 73 82c3.2 2.8-.1 7.7-4 6.7-6-1.5-11.6-5.3-16.8-8.4C23 65.3 12.2 34.6-1 7.8c-3.8-10.6-12.7-22-11.7-33.2Z" fill="#000"/></g>`,
'goatee1': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M208 31.3c-11.2-5-31.2-.6-38.4 1.1-16.9 4-33.8 12.8-39 26.5-6 15.4 5.8 20.3 7.5 19.5 11.7.8 25.6-6.5 37.8-8.4 10-1.6 20.4-3 29.7-8.2 6.8 3.7 22.1 5.7 34.5 9 10.6 2.8 15.1 8.8 25 7.5 11.6-1.5 6.8-26.1-6.2-36.1-14.3-11-38.5-15.4-51-10.9Zm22 105.4c-9.8 2.3-10.4-19-11.5-26.5-.9-6-5.7-21-17.9-20.4-12.1.6-16.7 13.3-16.1 21.2.4 5.2 5.1 31.2-10 34.4-9.6 0-20.7-.6-30.8-2.5-12-2.7-27.4-12.1-31.5 6.4-1.5 6.7 51 26.6 74.2 28.4a75.1 75.1 0 0 0 68-20.6c3.9-4.1 14.6-21.2 15.4-25.3 1.6-8.8-2.1-14.5-13-11.4-7.6 4.1-20.6 14.7-26.9 16.3Z" fill="#000"/>`,

@@ -25,3 +25,3 @@ 'goatee2': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M237.6 65.9c2.7 2.8 5.4 5.8 7.8 9 .7 4.8.9 9.8.3 15-1 7.5-3 14.8-5.8 21.8-1.6-.2-3.2-.7-4.8-1.4-5-2.3-7.7-6.9-11-11-6.8-8-19-12.8-27.6-4.4-3.7 3.6-6.1 8.7-9.4 12.7-3.7 4.4-7.8 8.6-12 12.4l-1.7 1.5-7-8.3a80.9 80.9 0 0 1-15.8-27.8c-1-3.2-1.6-6.7-1.8-10.1a54 54 0 0 1 10.4-10c11.8-8.6 25.5-10 39.7-10.7 14.7-.8 28 .2 38.7 11.3Zm35.8 39.6C273 99.8 272 94 270.7 88c-4.8-22-15-44-35.7-54a48.3 48.3 0 0 0-31.4-4.2c-18.4-7-39 .1-53.4 12.8-17.2 14.9-25 38.3-27.8 60.2-1.8 15.3-2.5 35.6 1.8 46.7 4.4 11 31.9 40.7 71.1 40.9 56 .3 69.5-37.4 71.2-40.7a79.3 79.3 0 0 0 7-44Z" fill="#000"/>`,

'moustache8': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M520.3-58.5c-16 14.6-5.7 51.1.6 41.3.9-9.2 3.7-26.7 13-30.3 68.2-2.9 54.2 165.8-73 145-81-5.4-166.5-122.7-242.6-51.3C135.6-21.2 42 79.8-43.1 93.7-112.4 116-215.9 74.9-197.2-10.5c4.6-25 39.3-53.7 60.5-28.3 6.3 6-1.7 28.2 5 23.6 10.2-11.3 7.5-29.4-2-40.7-15.7-18.7-43.7-10.5-60 2.7C-267.2 19-178.7 128.2-90 121 7 132.9 139-2 205.7 63.5c6.8 6.7 19.6 6.7 25.5 0C288-.5 397.4 130.4 476.5 121c84 7.7 151.4-93.8 102.8-165.6-12-18.3-41.1-32-59-14Z" fill="#000"/>`,
'moustache9': (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M245.4 32.8c-14-2.3-28.6 1.2-42.2 4.9-21.4-14.1-49.3.1-64.7 17.7-5.2 4.4-16.3 10.1-10.5 18.4-2.2 5.9-2.8 8.6 1.8 1.8 25.9 3 53.6-2.7 79.2-8 8.8 3 16.4 9.8 26 7.5 9 1.9 19 3.7 27-2.1 6.3-.3 20.2 10.9 20-2.1-2-12.5-26.7-33.2-36.6-38Z" fill="${escape.xml(`#${colors.headContrast}`)}"/><path d="M255.9 72.8a63 63 0 0 1-43.4-9.6c-1.4-1-2.7-1-3.8-.4-1.3-.1-2.6.4-3.4 2-3.2 6-13.8 4.7-19.6 4.8-19 .4-38.8-.7-57.2 5.1C146 40.4 170.4 25.5 207.9 39c-3.4 2.8 13.6-3.6 15-3.8 26-6.5 47.5 15.3 58 37-8-2-16.8-.3-25 .6Zm36.3 5.9c-11.5-25.8-34-54.2-65.6-49.8-6.5 1-13.3 5.4-19.8 4.6-18.9-7-34.5-10.5-53.4.8-8 .6-53.1 56.4-31.7 51.9 26.4-15.1 72.1-1 88.5-14.4 32 21 58.2-1.8 76.3 11.3 3 3 7.5-.7 5.7-4.4Z" fill="#000"/></g>`,
'moustache9': (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M245.4 32.8c-14-2.3-28.6 1.2-42.2 4.9-21.4-14.1-49.3.1-64.7 17.7-5.2 4.4-16.3 10.1-10.5 18.4-2.2 5.9-2.8 8.6 1.8 1.8 25.9 3 53.6-2.7 79.2-8 8.8 3 16.4 9.8 26 7.5 9 1.9 19 3.7 27-2.1 6.3-.3 20.2 10.9 20-2.1-2-12.5-26.7-33.2-36.6-38Z" fill="${escape.xml(`${colors.headContrast}`)}"/><path d="M255.9 72.8a63 63 0 0 1-43.4-9.6c-1.4-1-2.7-1-3.8-.4-1.3-.1-2.6.4-3.4 2-3.2 6-13.8 4.7-19.6 4.8-19 .4-38.8-.7-57.2 5.1C146 40.4 170.4 25.5 207.9 39c-3.4 2.8 13.6-3.6 15-3.8 26-6.5 47.5 15.3 58 37-8-2-16.8-.3-25 .6Zm36.3 5.9c-11.5-25.8-34-54.2-65.6-49.8-6.5 1-13.3 5.4-19.8 4.6-18.9-7-34.5-10.5-53.4.8-8 .6-53.1 56.4-31.7 51.9 26.4-15.1 72.1-1 88.5-14.4 32 21 58.2-1.8 76.3 11.3 3 3 7.5-.7 5.7-4.4Z" fill="#000"/></g>`,
};

@@ -10,4 +10,2 @@ /**

import { getColors } from './utils/getColors.js';
import { onPreCreate } from './hooks/onPreCreate.js';
import { onPostCreate } from './hooks/onPostCreate.js';
export const meta = {

@@ -25,6 +23,4 @@ title: 'Open Peeps',

var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
onPreCreate({ prng, options });
const components = getComponents({ prng, options });
const colors = getColors({ prng, options });
onPostCreate({ prng, options, components, colors });
return {

@@ -36,5 +32,5 @@ attributes: {

},
body: `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M705.3 1074a2351.1 2351.1 0 0 1-15.6-101c-1-7.7-2.5-16.4 2.7-22 7.3-8 14-14.8 14.8-26.2.8-10.7-2.8-22.4-5-32.8a809.4 809.4 0 0 0-17.3-64.7c-6.6-21.7-13.9-43.2-21.3-64.6-6.9-20-13.5-40.3-22.5-59.5-17-36.5-46-63.5-81.6-81.6-9-4.5-27-20.5-36.3-24-8.5-3.4-8.5 6.3-16.9 2.6-6.7-2.9-13-6.7-16.7-13.2-4-7-14.3-16.9-15.9-25-3.3-17.4.3-32.2-12-45.3a90 90 0 0 0-41.1-23.8c-33.7-9.3-78.5-2.8-98.8 28.5-9.7 14.9-13 33-26.2 45.1-11.4 10.7-8.8 18-23.6 23.4-.9.3-23.6-4.5-24.4-4.2-16.2-3.5-31.7 6.2-46.5 11.8a325.4 325.4 0 0 0-63 32.3 399.2 399.2 0 0 0-102.3 98.5 482.5 482.5 0 0 0-76.4 161c-1.7 6.4-3.5 13-1.5 19.4 1.7 5.3 5.4 9.2 9.8 12.4 6 4.3 18 7 17.7 15.7-.1 6.6-2.4 13.5-3.5 20-1.3 7.7-2.3 15.5-3.4 23.2-4.8 35.4-8.6 71-10.3 106.6a920 920 0 0 0-.5 106c.1 2.3.8 4.5 2 6.2-1 .4-1.2 2.4.1 2.7l2.7.5a12 12 0 0 0 7 2.4l5.5.2c19.3 4 38.6 7.9 58.1 10.8 23.8 3.5 47.6 6.3 71.5 8.7 49.2 4.8 98 3.2 147.1.6a1877 1877 0 0 1 147.4-2c49.2 1.4 98.4 3.5 147.6 4.4 55 1 110-.5 164.8-5 7.5-.5 12.2-6.5 10.7-14-8.9-44.7-19-89.1-27-134Z" fill="${escape.xml(`#${colors.skin}`)}"/><path d="m201 597.5 1.2-.4c14.5-5.7 29.6-14.8 45.4-11.4.5-.2 10.8 1.9 17.9 3.2l-6.7 7L247 598c40.7 67.1 88.8 100.7 144.3 100.7 55.5 0 97.7-33.6 126.4-100.7l4-1c.4 0 1 .2 1.5.4 9.3 3.6 27.4 19.6 36.3 24.1 35.6 18 64.5 45 81.6 81.6 8.7 18.6 15.2 38 21.8 57.5l.7 2c7.4 21.4 14.7 43 21.3 64.6 6.3 20.4 12 41 16.6 61.8l.7 2.9c2.2 10.4 5.8 22 5 32.8a29 29 0 0 1-3 10.7l-80.4 29 38.4 261.3c-35.1 1.5-70.3 2-105.5 1.3-49.2-.9-98.4-3-147.6-4.3-47.7-1.2-95.3-.7-143 1.7l-12 .6a946.3 946.3 0 0 1-139.5-1l-3.1-.3v-38.3l16.3-212.9-83-15.6-81.3-39.5a21.7 21.7 0 0 1-5.6-8.8c-1.9-6-.5-12 1-18l.5-1.3a492.8 492.8 0 0 1 76.4-161A399.3 399.3 0 0 1 138 629.7c19.8-13 40.9-23.9 63-32.3Z" fill="${escape.xml(`#${colors.clothing}`)}"/><path d="M232.2 584.6c5.1-.3 10.3.6 15.4 1 .4.1.6.8 0 .9-9 1.9-18 4.5-26.9 7.1l-3.8 1.2c-10 3-19.8 6-29.6 10-19.4 7.9-37.8 18.5-54.8 30.8C67.2 682.8 20 754.3-9.9 828.3a526 526 0 0 0-24.3 77c-.4 1.6-2 5.4-1 7 .7 1.3 3.6 2.1 5 2.9l4.5 2.3 25.2 12.9 2.3 1.1c38 18.6 78.4 34.4 121 35.5l.4-3.7a342 342 0 0 1 9.9-60c.3-1 1.6-.6 1.7.3 3 23.1 2 46.4 1 69.7-1.8 41-4.3 82.2-6.5 123.3-1.2 20.6-2.6 41-3.9 61.7-1.3 20.5-1.7 41.6-4.7 62-.6 4.6-6 7-10 6.6-4.4-.5-7.9-4.5-8-9 0-11.9 1.5-24 2.4-35.8l2.5-33.8c3.1-41.1 6.8-82.2 10.2-123.3a4771 4771 0 0 1 3.8-43.7C76.4 979.8 34.2 963-6.1 943.5c-.6 13.2-2 26.5-3.4 39.6-3.8 36.8-7.1 73.6-9.6 110.5a2254.2 2254.2 0 0 0-4.2 92.7l-.2 7c0 4.4-.5 8.5-4.3 11.7-3.7 3.3-8.9 3.5-12.6 0-5-4.6-4.2-10.9-4-17.1a1675.6 1675.6 0 0 1 1.8-47.2 1321 1321 0 0 1 10.5-109.5l2-14c3.5-26 7.5-52.7 15.5-77.9-3.1-1.5-6.2-3-9.3-4.7-5.5-2.7-11.2-5.4-16.6-8.4-4.2-2.5-7.9-5.8-9-10.8-1.4-5.5.6-11.5 2-16.9v-.4a502 502 0 0 1 26.6-80 523.2 523.2 0 0 1 67.8-117 353.8 353.8 0 0 1 88.7-83.3 239 239 0 0 1 53.8-25.7 142.6 142.6 0 0 1 42.8-7.5Zm90.1-66c6-6.5 18.1.2 15.2 8.8a108.2 108.2 0 0 1-34.7 52A79.4 79.4 0 0 1 247 598l1.7 2.4a321.1 321.1 0 0 0 46.1 52.6c36 31.2 84.8 48 132 36 37.1-9.4 69.8-38.8 79.4-76.2-1.3.6-3 .9-4.8.5-7.7-1.7-15.3-9.8-20.3-15.6-5.3-6.3-9.5-13-12.6-20.7-5.6-14-7.4-32.1.3-45.7 1-1.7 3-.7 3.3 1l.3 2.5c1.5 12.7 3.3 25 9.3 36.6a76 76 0 0 0 18.2 23.1c2.6 2 5.8 3.6 8.1 6l.5.4c.6-5 4.1-7.3 7.6-7.2 3.3.2 7.3 1.6 8.8 2.3l.1.1a341 341 0 0 1 65.1 42 259 259 0 0 1 88.4 129c7.5 25.3 11.8 51.4 16.3 77.4l2.8 16c4.2 23.9 8.9 48.4 18.4 70.7 2.5 5.7.6 11.1-5.5 13.4A1493 1493 0 0 1 688 953c3.7 16 6 32.5 8.7 48.5 6 34.1 13.2 68 19.4 102 3.2 17.5 6.1 35 9.3 52.3l4.7 25.2 2.4 13.6.1.7c.5 2.4 1 4.9.4 7.3-.8 2.7-2.9 4.6-4.8 6.6-1.6 1.6-3.8 1.6-5.7.7l-.7-.3c-3.4-1.6-6-3.2-7.3-7-.7-2.5-1-5.2-1.5-7.7a3535.6 3535.6 0 0 1-7.8-43.6l-1.6-9.1c-5.2-31.4-10.2-62.9-12.8-94.5-1-14-2.3-28.1-3.5-42.2l-.9-10.5c-1.1-13.3-2.5-27-2.7-40.5l-4.5 1.6L657 964c-5.5 2-12.5 6-18.4 5.2-2.9-.3-5-1.2-6.8-2.9 2 28.8 4.8 57.4 8.5 86a1965.7 1965.7 0 0 0 22 135c.6 3.2 1.4 6.4 1.9 9.6.5 3.7-.5 5.9-2.5 9-1.7 2.4-5 3.7-7.8 2-3.6-2.3-5.5-4.3-6.5-8.4-1-3.7-1.6-7.6-2.3-11.4a1654.2 1654.2 0 0 1-11.4-65.2c-7.8-52-12.7-104.4-15.2-156.8a1388 1388 0 0 1-1.4-77.8c0-13.3.5-26.6 1.4-39.9 1-13.4 3-26.5 4.8-39.8 0-.5.7-.5.7 0 .8 14.9 2.1 29.8 2.8 44.7.6 14.3.9 28.5 1.4 42.8.6 18.7 1.5 37.5 2.7 56.2a9.6 9.6 0 0 1 8.5-3.1c4.7-1 9.7-3.4 14.1-5l16.8-5.5 26.4-8.7a679 679 0 0 1-18-80.8l-2-12.3c-4-24.2-8.5-48.5-15.8-72a229.8 229.8 0 0 0-34.8-68.2 370.2 370.2 0 0 0-52.7-55.3C557 627 539.7 614 523 600c.1.9.2 2 0 3-3.5 25.9-17 50-35.8 67.9-37.7 36-93.6 43.4-142 26.5-46.7-16.3-88-55-102.6-102.8-.3-.8.8-1 1.3-.5l2.4 3.3c0-.4.2-.9.7-1a129 129 0 0 0 46.6-29.2 100.2 100.2 0 0 0 21.3-33.3l.4-1c1.7-5 3.2-10.2 7-14.2Z" fill="#000"/></g><g transform="matrix(.99789 0 0 1 156 62)">${(_b = (_a = components.head) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(315 248)">${(_d = (_c = components.face) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(279 400)">${(_f = (_e = components.facialHair) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(179 343)">${(_h = (_g = components.mask) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g><g transform="translate(203 303)">${(_k = (_j = components.accessories) === null || _j === void 0 ? void 0 : _j.value(components, colors)) !== null && _k !== void 0 ? _k : ''}</g>`,
body: `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M705.3 1074a2351.1 2351.1 0 0 1-15.6-101c-1-7.7-2.5-16.4 2.7-22 7.3-8 14-14.8 14.8-26.2.8-10.7-2.8-22.4-5-32.8a809.4 809.4 0 0 0-17.3-64.7c-6.6-21.7-13.9-43.2-21.3-64.6-6.9-20-13.5-40.3-22.5-59.5-17-36.5-46-63.5-81.6-81.6-9-4.5-27-20.5-36.3-24-8.5-3.4-8.5 6.3-16.9 2.6-6.7-2.9-13-6.7-16.7-13.2-4-7-14.3-16.9-15.9-25-3.3-17.4.3-32.2-12-45.3a90 90 0 0 0-41.1-23.8c-33.7-9.3-78.5-2.8-98.8 28.5-9.7 14.9-13 33-26.2 45.1-11.4 10.7-8.8 18-23.6 23.4-.9.3-23.6-4.5-24.4-4.2-16.2-3.5-31.7 6.2-46.5 11.8a325.4 325.4 0 0 0-63 32.3 399.2 399.2 0 0 0-102.3 98.5 482.5 482.5 0 0 0-76.4 161c-1.7 6.4-3.5 13-1.5 19.4 1.7 5.3 5.4 9.2 9.8 12.4 6 4.3 18 7 17.7 15.7-.1 6.6-2.4 13.5-3.5 20-1.3 7.7-2.3 15.5-3.4 23.2-4.8 35.4-8.6 71-10.3 106.6a920 920 0 0 0-.5 106c.1 2.3.8 4.5 2 6.2-1 .4-1.2 2.4.1 2.7l2.7.5a12 12 0 0 0 7 2.4l5.5.2c19.3 4 38.6 7.9 58.1 10.8 23.8 3.5 47.6 6.3 71.5 8.7 49.2 4.8 98 3.2 147.1.6a1877 1877 0 0 1 147.4-2c49.2 1.4 98.4 3.5 147.6 4.4 55 1 110-.5 164.8-5 7.5-.5 12.2-6.5 10.7-14-8.9-44.7-19-89.1-27-134Z" fill="${escape.xml(`${colors.skin}`)}"/><path d="m201 597.5 1.2-.4c14.5-5.7 29.6-14.8 45.4-11.4.5-.2 10.8 1.9 17.9 3.2l-6.7 7L247 598c40.7 67.1 88.8 100.7 144.3 100.7 55.5 0 97.7-33.6 126.4-100.7l4-1c.4 0 1 .2 1.5.4 9.3 3.6 27.4 19.6 36.3 24.1 35.6 18 64.5 45 81.6 81.6 8.7 18.6 15.2 38 21.8 57.5l.7 2c7.4 21.4 14.7 43 21.3 64.6 6.3 20.4 12 41 16.6 61.8l.7 2.9c2.2 10.4 5.8 22 5 32.8a29 29 0 0 1-3 10.7l-80.4 29 38.4 261.3c-35.1 1.5-70.3 2-105.5 1.3-49.2-.9-98.4-3-147.6-4.3-47.7-1.2-95.3-.7-143 1.7l-12 .6a946.3 946.3 0 0 1-139.5-1l-3.1-.3v-38.3l16.3-212.9-83-15.6-81.3-39.5a21.7 21.7 0 0 1-5.6-8.8c-1.9-6-.5-12 1-18l.5-1.3a492.8 492.8 0 0 1 76.4-161A399.3 399.3 0 0 1 138 629.7c19.8-13 40.9-23.9 63-32.3Z" fill="${escape.xml(`${colors.clothing}`)}"/><path d="M232.2 584.6c5.1-.3 10.3.6 15.4 1 .4.1.6.8 0 .9-9 1.9-18 4.5-26.9 7.1l-3.8 1.2c-10 3-19.8 6-29.6 10-19.4 7.9-37.8 18.5-54.8 30.8C67.2 682.8 20 754.3-9.9 828.3a526 526 0 0 0-24.3 77c-.4 1.6-2 5.4-1 7 .7 1.3 3.6 2.1 5 2.9l4.5 2.3 25.2 12.9 2.3 1.1c38 18.6 78.4 34.4 121 35.5l.4-3.7a342 342 0 0 1 9.9-60c.3-1 1.6-.6 1.7.3 3 23.1 2 46.4 1 69.7-1.8 41-4.3 82.2-6.5 123.3-1.2 20.6-2.6 41-3.9 61.7-1.3 20.5-1.7 41.6-4.7 62-.6 4.6-6 7-10 6.6-4.4-.5-7.9-4.5-8-9 0-11.9 1.5-24 2.4-35.8l2.5-33.8c3.1-41.1 6.8-82.2 10.2-123.3a4771 4771 0 0 1 3.8-43.7C76.4 979.8 34.2 963-6.1 943.5c-.6 13.2-2 26.5-3.4 39.6-3.8 36.8-7.1 73.6-9.6 110.5a2254.2 2254.2 0 0 0-4.2 92.7l-.2 7c0 4.4-.5 8.5-4.3 11.7-3.7 3.3-8.9 3.5-12.6 0-5-4.6-4.2-10.9-4-17.1a1675.6 1675.6 0 0 1 1.8-47.2 1321 1321 0 0 1 10.5-109.5l2-14c3.5-26 7.5-52.7 15.5-77.9-3.1-1.5-6.2-3-9.3-4.7-5.5-2.7-11.2-5.4-16.6-8.4-4.2-2.5-7.9-5.8-9-10.8-1.4-5.5.6-11.5 2-16.9v-.4a502 502 0 0 1 26.6-80 523.2 523.2 0 0 1 67.8-117 353.8 353.8 0 0 1 88.7-83.3 239 239 0 0 1 53.8-25.7 142.6 142.6 0 0 1 42.8-7.5Zm90.1-66c6-6.5 18.1.2 15.2 8.8a108.2 108.2 0 0 1-34.7 52A79.4 79.4 0 0 1 247 598l1.7 2.4a321.1 321.1 0 0 0 46.1 52.6c36 31.2 84.8 48 132 36 37.1-9.4 69.8-38.8 79.4-76.2-1.3.6-3 .9-4.8.5-7.7-1.7-15.3-9.8-20.3-15.6-5.3-6.3-9.5-13-12.6-20.7-5.6-14-7.4-32.1.3-45.7 1-1.7 3-.7 3.3 1l.3 2.5c1.5 12.7 3.3 25 9.3 36.6a76 76 0 0 0 18.2 23.1c2.6 2 5.8 3.6 8.1 6l.5.4c.6-5 4.1-7.3 7.6-7.2 3.3.2 7.3 1.6 8.8 2.3l.1.1a341 341 0 0 1 65.1 42 259 259 0 0 1 88.4 129c7.5 25.3 11.8 51.4 16.3 77.4l2.8 16c4.2 23.9 8.9 48.4 18.4 70.7 2.5 5.7.6 11.1-5.5 13.4A1493 1493 0 0 1 688 953c3.7 16 6 32.5 8.7 48.5 6 34.1 13.2 68 19.4 102 3.2 17.5 6.1 35 9.3 52.3l4.7 25.2 2.4 13.6.1.7c.5 2.4 1 4.9.4 7.3-.8 2.7-2.9 4.6-4.8 6.6-1.6 1.6-3.8 1.6-5.7.7l-.7-.3c-3.4-1.6-6-3.2-7.3-7-.7-2.5-1-5.2-1.5-7.7a3535.6 3535.6 0 0 1-7.8-43.6l-1.6-9.1c-5.2-31.4-10.2-62.9-12.8-94.5-1-14-2.3-28.1-3.5-42.2l-.9-10.5c-1.1-13.3-2.5-27-2.7-40.5l-4.5 1.6L657 964c-5.5 2-12.5 6-18.4 5.2-2.9-.3-5-1.2-6.8-2.9 2 28.8 4.8 57.4 8.5 86a1965.7 1965.7 0 0 0 22 135c.6 3.2 1.4 6.4 1.9 9.6.5 3.7-.5 5.9-2.5 9-1.7 2.4-5 3.7-7.8 2-3.6-2.3-5.5-4.3-6.5-8.4-1-3.7-1.6-7.6-2.3-11.4a1654.2 1654.2 0 0 1-11.4-65.2c-7.8-52-12.7-104.4-15.2-156.8a1388 1388 0 0 1-1.4-77.8c0-13.3.5-26.6 1.4-39.9 1-13.4 3-26.5 4.8-39.8 0-.5.7-.5.7 0 .8 14.9 2.1 29.8 2.8 44.7.6 14.3.9 28.5 1.4 42.8.6 18.7 1.5 37.5 2.7 56.2a9.6 9.6 0 0 1 8.5-3.1c4.7-1 9.7-3.4 14.1-5l16.8-5.5 26.4-8.7a679 679 0 0 1-18-80.8l-2-12.3c-4-24.2-8.5-48.5-15.8-72a229.8 229.8 0 0 0-34.8-68.2 370.2 370.2 0 0 0-52.7-55.3C557 627 539.7 614 523 600c.1.9.2 2 0 3-3.5 25.9-17 50-35.8 67.9-37.7 36-93.6 43.4-142 26.5-46.7-16.3-88-55-102.6-102.8-.3-.8.8-1 1.3-.5l2.4 3.3c0-.4.2-.9.7-1a129 129 0 0 0 46.6-29.2 100.2 100.2 0 0 0 21.3-33.3l.4-1c1.7-5 3.2-10.2 7-14.2Z" fill="#000"/></g><g transform="matrix(.99789 0 0 1 156 62)">${(_b = (_a = components.head) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(315 248)">${(_d = (_c = components.face) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(279 400)">${(_f = (_e = components.facialHair) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(179 343)">${(_h = (_g = components.mask) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g><g transform="translate(203 303)">${(_k = (_j = components.accessories) === null || _j === void 0 ? void 0 : _j.value(components, colors)) !== null && _k !== void 0 ? _k : ''}</g>`,
};
};
export { schema } from './schema.js';

@@ -46,3 +46,3 @@ /**

"type": "string",
"pattern": "^[a-fA-F0-9]{6}$"
"pattern": "^(transparent|[a-fA-F0-9]{6})$"
},

@@ -287,3 +287,3 @@ "default": [

"type": "string",
"pattern": "^[a-fA-F0-9]{6}$"
"pattern": "^(transparent|[a-fA-F0-9]{6})$"
},

@@ -327,3 +327,3 @@ "default": [

"type": "string",
"pattern": "^[a-fA-F0-9]{6}$"
"pattern": "^(transparent|[a-fA-F0-9]{6})$"
},

@@ -330,0 +330,0 @@ "default": [

@@ -7,10 +7,11 @@ /**

*/
import { convertColor } from './convertColor.js';
export function getColors({ prng, options }) {
var _a, _b, _c, _d, _e, _f;
return {
'skin': (_b = prng.pick((_a = options.skinColor) !== null && _a !== void 0 ? _a : [])) !== null && _b !== void 0 ? _b : 'transparent',
'clothing': (_d = prng.pick((_c = options.clothingColor) !== null && _c !== void 0 ? _c : [])) !== null && _d !== void 0 ? _d : 'transparent',
'headContrast': (_f = prng.pick((_e = options.headContrastColor) !== null && _e !== void 0 ? _e : [])) !== null && _f !== void 0 ? _f : 'transparent',
'skin': convertColor((_b = prng.pick((_a = options.skinColor) !== null && _a !== void 0 ? _a : [])) !== null && _b !== void 0 ? _b : 'transparent'),
'clothing': convertColor((_d = prng.pick((_c = options.clothingColor) !== null && _c !== void 0 ? _c : [])) !== null && _d !== void 0 ? _d : 'transparent'),
'headContrast': convertColor((_f = prng.pick((_e = options.headContrastColor) !== null && _e !== void 0 ? _e : [])) !== null && _f !== void 0 ? _f : 'transparent'),
};
}
;
{
"name": "@dicebear/open-peeps",
"version": "5.0.2",
"version": "5.0.3",
"description": "Avatar style for DiceBear",

@@ -32,3 +32,3 @@ "keywords": [

"devDependencies": {
"@dicebear/core": "^5.0.2",
"@dicebear/core": "^5.0.3",
"@tsconfig/recommended": "^1.0.1",

@@ -48,3 +48,3 @@ "del-cli": "^4.0.1",

},
"gitHead": "dbf7cf17531995f0981b8e15e21e66a72204faff"
"gitHead": "14f86eb4ad8c481902d505c838c26420370d232c"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc