Socket
Socket
Sign inDemoInstall

@dicebear/adventurer-neutral

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dicebear/adventurer-neutral - npm Package Compare versions

Comparing version 5.0.0-alpha.31 to 5.0.0-alpha.32

2

lib/components/eyebrows.js

@@ -13,3 +13,3 @@ export const eyebrows = {

variant15: (components, colors) => `<path d="M568.44 405.96c-.6-2.92-2.48-4.87-4.6-6.82-11.98-10.95-29.88-15.87-45.64-11.58-9.72 2.4-18.51 8.36-23.63 17.06-2.83 5.03-4.78 10.54-3.98 16.4.08.42.13.83.18 1.23.2 1.63.37 3 2.44 3.54 2.17.12 4.4-.29 6.54-.68l.31-.06 6.22-1.2c5.24-1 10.48-2 15.68-3.19a640.08 640.08 0 0 0 44.88-11.08c1.77-.25 1.7-1.62 1.63-3.02l-.03-.6ZM430.1 431.05c-.81-9.8-8.9-17.41-17.88-20.31a39.68 39.68 0 0 0-38.34 9.13c-4.45 4.18-8.39 9.97-9.12 16.14-.08 2.74 2.36 2.78 4.44 2.82.26 0 .52 0 .77.02 3.02-.08 6.05-.14 9.07-.2 9.34-.17 18.7-.35 27.98-1.3 2.4-.21 4.83-.38 7.24-.54 4.26-.3 8.52-.58 12.74-1.14 2.42.03 3.28-2.6 3.1-4.62Z" fill="#000"/>`,
variant14: (components, colors) => `<g fill="#222F05"><path d="M517.07 379.66c.86-.91 2.17-2.3 1.77-3.56-.35-2.45-3.58-3.11-5.22-1.46a221.7 221.7 0 0 0-8.34 7.33c-2.16 1.96-4.3 3.92-6.5 5.8a117.9 117.9 0 0 1-3.06 2.73c-2.64 2.3-5.21 4.56-7.32 7.5.33.33.6.68.88 1.02.72.9 1.4 1.74 2.73 1.81 1.5-.08 2.71-1.13 3.82-2.1l.41-.35c4.3-4 8.7-7.9 13.1-11.8 2.52-2.24 5.05-4.47 7.55-6.73l.06-.07.12-.12ZM539.69 378.66c.54-1.8-.18-2.95-1.6-4-2-.34-3.84.74-5.58 1.76-.44.26-.87.51-1.3.74-4.43 2.64-8.92 5.2-13.4 7.77-4.83 2.76-9.66 5.51-14.4 8.37-1.63.86-1.65 2.04-1.68 3.44 0 .45-.02.93-.08 1.42.46.1.9.24 1.31.38 1.2.4 2.27.75 3.58-.05 5.06-2.8 10.07-5.7 15.09-8.62a959.63 959.63 0 0 1 14.42-8.28c1.36-.8 2.87-1.67 3.65-2.94ZM566.39 378.4c2.1-.74 4.24.22 4.44 2.6-.08 2.3-1.76 2.9-3.53 3.51l-.77.28c-12.18 3.72-24.35 7.5-36.5 11.31-.37.09-.73.2-1.08.3-1.34.4-2.64.78-4 .08-1.82-1.26-1.8-4.32.36-5.22 1.8-.82 3.73-1.38 5.65-1.93a4048.39 4048.39 0 0 0 14.1-4.35c7.1-2.22 14.2-4.44 21.33-6.58ZM589.38 390.36c1.02-1.63.62-2.97-.45-4.43-2.25-.73-4.9-.11-7.4.47-.87.2-1.72.4-2.52.53-2.84.58-5.7 1.14-8.54 1.7h-.02c-4.14.81-8.27 1.62-12.4 2.5-1.87.47-3.69 1.64-3.1 3.87.65 2.02 2.02 2.45 4.03 2.12 4.01-.7 8-1.52 12-2.35 3.85-.8 7.7-1.6 11.56-2.27l1.3-.26c1.93-.36 4.05-.75 5.54-1.88ZM405.8 394.7c1.93 1.26 3.85 2.5 5.81 3.7.74.48 1.5.94 2.25 1.4 1.73 1.05 3.47 2.11 5 3.4 1.7 1.35 1.2 4.27-.83 5-1.8.35-3.06-.44-4.43-1.29l-.94-.56c-4.3-2.78-8.62-5.51-12.95-8.25l-4.17-2.64c-.1-.08-.22-.17-.35-.25l-.37-.27c-1.1-.75-2.42-1.66-2.4-2.93-.35-2.43 2.22-4.08 4.37-2.87 3.08 1.7 6.05 3.64 9.01 5.57Z"/><path d="M383.94 395.53a45.88 45.88 0 0 0-5.95-1.72c-2.5-.5-4.12 2.02-3.31 4.28 1.14 1.27 2.56 1.75 4.08 2.26l.4.14.32.1c4.02 1.26 8.03 2.55 12.03 3.85h.03c4.14 1.34 8.27 2.68 12.42 3.96 2.46.78 4.88.57 5.36-2.42-.17-2.11-2-2.8-3.72-3.44l-.15-.05-.23-.09-.5-.2c-6.06-1.95-12.14-3.89-18.22-5.83-.85-.26-1.7-.55-2.56-.84ZM587.13 395.34c3.45-.22 6.9-.28 10.37-.34 2.5-.05 5-.1 7.5-.2.4.03.84.03 1.3.03 1.67 0 3.6 0 4.35 1.53 1.26 1.74-.2 3.78-2.02 4.19-2.91.62-6.04.6-9.1.58-1.19 0-2.37-.01-3.53.02-1 0-2 .04-3 .07-1.68.05-3.36.1-5.04.04-1.22 0-3.12-.35-3.5-1.7a3 3 0 0 1 2.67-4.22ZM360.28 402.87c-2.04-.1-4.17-.2-6.08.32-1.5 1.2-1.47 3.44-.15 4.8 1.66.7 3.64.86 5.45 1l.16.01.32.03c3.43.16 6.85.37 10.27.58 3.92.25 7.83.49 11.74.66.85.02 1.72.1 2.6.18 1.84.18 3.72.35 5.44-.06a2.78 2.78 0 0 0 1.12-4.59c-.84-.99-1.87-1.05-2.98-1.12-.38-.03-.77-.05-1.16-.11l-12.51-.81-12.5-.81c-.57-.01-1.14-.04-1.73-.07ZM348.97 411.64l4.48-.33c4.19-.34 8.4-.68 12.56-.42 2.93.26 3.13 4.75.25 5.42-2.9.73-5.97.84-9.03.96-1.76.06-3.52.13-5.23.31-1.17.04-2.36.15-3.55.25-2.47.22-4.96.44-7.36.12-2.45-.43-2.74-4.43-.52-5.35 1.77-.65 3.79-.73 5.76-.8.9-.04 1.79-.07 2.64-.16ZM345.51 425.36c2.91-.95 2.78-5.26-.48-5.63-2.85.03-5.72.55-8.57 1.06-1.35.24-2.69.48-4.02.67-.74.18-1.6.3-2.52.4-2.27.28-4.78.6-6.04 2.18-1.16 2.39.53 4.6 3.07 4.38 6.17-.74 12.5-1.76 18.56-3.06Z"/></g>`,
variant14: (components, colors) => `<g fill="#000"><path d="M517.07 379.66c.86-.91 2.17-2.3 1.77-3.56-.35-2.45-3.58-3.11-5.22-1.46a221.7 221.7 0 0 0-8.34 7.33c-2.16 1.96-4.3 3.92-6.5 5.8a117.9 117.9 0 0 1-3.06 2.73c-2.64 2.3-5.21 4.56-7.32 7.5.33.33.6.68.88 1.02.72.9 1.4 1.74 2.73 1.81 1.5-.08 2.71-1.13 3.82-2.1l.41-.35c4.3-4 8.7-7.9 13.1-11.8 2.52-2.24 5.05-4.47 7.55-6.73l.06-.07.12-.12ZM539.69 378.66c.54-1.8-.18-2.95-1.6-4-2-.34-3.84.74-5.58 1.76-.44.26-.87.51-1.3.74-4.43 2.64-8.92 5.2-13.4 7.77-4.83 2.76-9.66 5.51-14.4 8.37-1.63.86-1.65 2.04-1.68 3.44 0 .45-.02.93-.08 1.42.46.1.9.24 1.31.38 1.2.4 2.27.75 3.58-.05 5.06-2.8 10.07-5.7 15.09-8.62a959.63 959.63 0 0 1 14.42-8.28c1.36-.8 2.87-1.67 3.65-2.94ZM566.39 378.4c2.1-.74 4.24.22 4.44 2.6-.08 2.3-1.76 2.9-3.53 3.51l-.77.28c-12.18 3.72-24.35 7.5-36.5 11.31-.37.09-.73.2-1.08.3-1.34.4-2.64.78-4 .08-1.82-1.26-1.8-4.32.36-5.22 1.8-.82 3.73-1.38 5.65-1.93a4048.39 4048.39 0 0 0 14.1-4.35c7.1-2.22 14.2-4.44 21.33-6.58ZM589.38 390.36c1.02-1.63.62-2.97-.45-4.43-2.25-.73-4.9-.11-7.4.47-.87.2-1.72.4-2.52.53-2.84.58-5.7 1.14-8.54 1.7h-.02c-4.14.81-8.27 1.62-12.4 2.5-1.87.47-3.69 1.64-3.1 3.87.65 2.02 2.02 2.45 4.03 2.12 4.01-.7 8-1.52 12-2.35 3.85-.8 7.7-1.6 11.56-2.27l1.3-.26c1.93-.36 4.05-.75 5.54-1.88ZM405.8 394.7c1.93 1.26 3.85 2.5 5.81 3.7.74.48 1.5.94 2.25 1.4 1.73 1.05 3.47 2.11 5 3.4 1.7 1.35 1.2 4.27-.83 5-1.8.35-3.06-.44-4.43-1.29l-.94-.56c-4.3-2.78-8.62-5.51-12.95-8.25l-4.17-2.64c-.1-.08-.22-.17-.35-.25l-.37-.27c-1.1-.75-2.42-1.66-2.4-2.93-.35-2.43 2.22-4.08 4.37-2.87 3.08 1.7 6.05 3.64 9.01 5.57Z"/><path d="M383.94 395.53a45.88 45.88 0 0 0-5.95-1.72c-2.5-.5-4.12 2.02-3.31 4.28 1.14 1.27 2.56 1.75 4.08 2.26l.4.14.32.1c4.02 1.26 8.03 2.55 12.03 3.85h.03c4.14 1.34 8.27 2.68 12.42 3.96 2.46.78 4.88.57 5.36-2.42-.17-2.11-2-2.8-3.72-3.44l-.15-.05-.23-.09-.5-.2c-6.06-1.95-12.14-3.89-18.22-5.83-.85-.26-1.7-.55-2.56-.84ZM587.13 395.34c3.45-.22 6.9-.28 10.37-.34 2.5-.05 5-.1 7.5-.2.4.03.84.03 1.3.03 1.67 0 3.6 0 4.35 1.53 1.26 1.74-.2 3.78-2.02 4.19-2.91.62-6.04.6-9.1.58-1.19 0-2.37-.01-3.53.02-1 0-2 .04-3 .07-1.68.05-3.36.1-5.04.04-1.22 0-3.12-.35-3.5-1.7a3 3 0 0 1 2.67-4.22ZM360.28 402.87c-2.04-.1-4.17-.2-6.08.32-1.5 1.2-1.47 3.44-.15 4.8 1.66.7 3.64.86 5.45 1l.16.01.32.03c3.43.16 6.85.37 10.27.58 3.92.25 7.83.49 11.74.66.85.02 1.72.1 2.6.18 1.84.18 3.72.35 5.44-.06a2.78 2.78 0 0 0 1.12-4.59c-.84-.99-1.87-1.05-2.98-1.12-.38-.03-.77-.05-1.16-.11l-12.51-.81-12.5-.81c-.57-.01-1.14-.04-1.73-.07ZM348.97 411.64l4.48-.33c4.19-.34 8.4-.68 12.56-.42 2.93.26 3.13 4.75.25 5.42-2.9.73-5.97.84-9.03.96-1.76.06-3.52.13-5.23.31-1.17.04-2.36.15-3.55.25-2.47.22-4.96.44-7.36.12-2.45-.43-2.74-4.43-.52-5.35 1.77-.65 3.79-.73 5.76-.8.9-.04 1.79-.07 2.64-.16ZM345.51 425.36c2.91-.95 2.78-5.26-.48-5.63-2.85.03-5.72.55-8.57 1.06-1.35.24-2.69.48-4.02.67-.74.18-1.6.3-2.52.4-2.27.28-4.78.6-6.04 2.18-1.16 2.39.53 4.6 3.07 4.38 6.17-.74 12.5-1.76 18.56-3.06Z"/></g>`,
variant13: (components, colors) => `<path d="M614 406.99c-24.74-23-58.3-35.43-92-35.08-8.9.26-17.67 1.52-26.42 3.12-1.5 3.24-2.51 6.6-3.52 9.98-.37 1.22-.73 2.44-1.12 3.66l-.13-1.4a170 170 0 0 0-1.31-11.32l-3.23-1.56c-.21.37-.5.74-.8 1.12-.6.76-1.23 1.55-1.26 2.44-.1 3.74.3 7.48.71 11.22.3 2.78.6 5.57.7 8.37.08.67.12 1.4.16 2.16.13 2.41.28 5.08 1.65 6.85 2.83.76 6.04-.34 9.02-1.36 1.06-.36 2.08-.7 3.05-.96 18.93-5.52 39.16-6.87 58.7-4.41 20 2.31 40.08 8.25 57.45 18.55 1.95 1.1 4 1.81 6.12 2.5l1.77-3.35c-2.7-3.96-6.05-7.28-9.54-10.53ZM422.26 399.6c.13-4.24.27-8.47.03-12.67-.25-2.54-1.86-2.58-3.72-2.62-.33 0-.66 0-1-.03-.92 3.61-1.06 7.52-1.21 11.37-.06 1.66-.13 3.3-.25 4.91a198.7 198.7 0 0 1-4.5-11.36c-.14-.25-.25-.54-.37-.83-.43-1.08-.9-2.26-2.24-2.23-2.5-.06-5.02.4-7.53.84-1.15.2-2.3.42-3.44.57-18.15 3.2-37.02 9.52-52.08 20.37-6.61 4.82-13.05 11.1-16.67 18.52-1.44 3.11-2.83 6.47-1.59 9.9l.41.12c1.08.33 2.6.8 3.42.06.93-.7 1.82-1.43 2.72-2.15 2.06-1.68 4.1-3.34 6.5-4.6 7.97-4.3 16.79-7.19 25.5-9.59 13.84-3.56 28.46-6.2 42.8-5.7 1.83.01 3.63.27 5.43.53 1.88.26 3.77.53 5.67.53 1.8-1.27 1.85-3.62 1.89-5.77 0-.62.02-1.2.07-1.76-.02-2.8.07-5.6.16-8.42Z" fill="#000"/>`,

@@ -16,0 +16,0 @@ variant12: (components, colors) => `<path d="M414.18 389.84c-5.5-7.26-14.52-9.33-23.2-8.38-13.12 1.9-24.56 8.53-34.46 17.08-10.76 9.47-19.88 21.7-24.72 35.27-.66 1.92-1.27 4.69 1.03 5.74 2.1.24 2.83.08 4.11-1.6 11.58-14.9 26.26-27.61 43.54-35.44 8.2-3.6 17.55-6.09 26.55-5.69 1.03.04 2.1.21 3.15.39 1.67.27 3.35.55 4.96.3 2.9-2.23.74-5.27-.86-7.53l-.1-.14ZM592.9 408.15c-18.2-10.23-38.04-17.1-58.92-18.97-10.05-.75-21.44-.2-30.72 4.09-6.76 3.16-12.37 8.56-13.57 16.22l-.12.95c-.38 2.89-.88 6.8 1.32 8.78 1.99.78 3.6-.34 5.23-1.46.74-.51 1.49-1.03 2.27-1.36 13.86-6.86 30.29-9.28 45.61-9.7 15.48.06 31.36 2.13 46.03 7.2l.48.13c1.46.4 2.74.74 3.89-.62 1.8-1.88.48-4.24-1.5-5.25Z" fill="#000"/>`,

@@ -24,3 +24,2 @@ import { schema } from './schema.js';

onPostCreate({ prng, options, components, colors });
options.backgroundColor = [colors.background.value];
return {

@@ -27,0 +26,0 @@ attributes: {

@@ -1,14 +0,3 @@

/*!
* Adventurer Neutral (@dicebear/adventurer-neutral)
*
* Code licensed under MIT License.
* Copyright (c) 2022 Florian Körner
*
* Design "Adventurer Neutral" by Lisa Wischofsky licensed under CC BY 4.0.
* Source: https://www.figma.com/community/file/1035815353921481031
* Homepage: https://www.instagram.com/lischi_art/
* License: https://creativecommons.org/licenses/by/4.0/
*/
declare const create: import("@dicebear/core").StyleCreate<import("./types.js").Options>, meta: import("@dicebear/core").StyleMeta, schema: import("json-schema").JSONSchema7;
export { create, meta, schema };
export type { Options } from './types.js';

@@ -11,5 +11,4 @@ /*!

* License: https://creativecommons.org/licenses/by/4.0/
*/
import { style } from './core.js';
*/ import { style } from './core.js';
const { create, meta, schema } = style;
export { create, meta, schema };

@@ -9,12 +9,5 @@ export const schema = {

type: 'string',
pattern: '^([0-9a-zA-Z]+|#[a-fA-F0-9]{3}|#[a-fA-F0-9]{4}|#[a-fA-F0-9]{6}|#[a-fA-F0-9]{8})$',
pattern: '^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$',
},
default: ['variant02', 'variant03', 'variant04', 'variant05'],
examples: [
['variant01'],
['variant02'],
['variant03'],
['variant04'],
['variant05'],
],
default: ['f2d3b1', 'ecad80', '9e5622', '763900'],
},

@@ -194,2 +187,3 @@ eyebrows: {

default: 10,
examples: [0, 100],
},

@@ -196,0 +190,0 @@ mouth: {

@@ -12,7 +12,3 @@ export interface Options {

export declare type ColorGroupItem = string;
export declare type ColorPickCollection = Record<string, ColorPick>;
export declare type ColorPick = {
name: string;
value: ColorGroupItem;
};
export declare type ColorPickCollection = Record<string, string>;
export declare type ComponentGroup = Record<string, ComponentGroupItem>;

@@ -19,0 +15,0 @@ export declare type ComponentGroupCollection = Record<string, ComponentGroup>;

@@ -1,10 +0,3 @@

import { pickColor } from './pickColor.js';
export function getColors({ prng, options }) {
return {
background: pickColor({
prng,
group: 'skin',
values: options.backgroundColor,
}),
};
return {};
}

@@ -5,7 +5,4 @@ import * as components from '../components/index.js';

const key = prng.pick(values);
if (componentCollection[group][key]) {
return {
name: key,
value: componentCollection[group][key],
};
if (key && componentCollection[group][key]) {
return { name: key, value: componentCollection[group][key] };
}

@@ -12,0 +9,0 @@ else {

{
"name": "@dicebear/adventurer-neutral",
"version": "5.0.0-alpha.31",
"version": "5.0.0-alpha.32",
"description": "Avatar style for DiceBear",

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

"devDependencies": {
"@dicebear/core": "^5.0.0-alpha.31",
"@dicebear/core": "^5.0.0-alpha.32",
"@tsconfig/recommended": "^1.0.1",

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

},
"gitHead": "088e33eb5bc45d01c9b6350011d973a5bd23bcc8"
"gitHead": "5a4a06cbb8aca42a5d19da8e704b3a7b3a45d755"
}
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