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

@dicebear/identicon

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dicebear/identicon - npm Package Compare versions

Comparing version 5.0.0-alpha.5 to 5.0.0-alpha.6

4

dist/index.es.js

@@ -432,3 +432,3 @@ var title = "Options";

create: _ref => {
var _components$row1compo, _components$row1compo2, _components$row3compo, _components$row3compo2, _components$row5$valu, _components$row;
var _components$row1$valu, _components$row, _components$row2$valu, _components$row2, _components$row3$valu, _components$row3, _components$row4$valu, _components$row4, _components$row5$valu, _components$row5;

@@ -453,3 +453,3 @@ let {

},
body: "".concat((_components$row1compo = (_components$row1compo2 = components.row1component) === null || _components$row1compo2 === void 0 ? void 0 : _components$row1compo2.value(components, colors)) !== null && _components$row1compo !== void 0 ? _components$row1compo : '', "::row2").concat((_components$row3compo = (_components$row3compo2 = components.row3component) === null || _components$row3compo2 === void 0 ? void 0 : _components$row3compo2.value(components, colors)) !== null && _components$row3compo !== void 0 ? _components$row3compo : '', "::row4").concat((_components$row5$valu = (_components$row = components.row5) === null || _components$row === void 0 ? void 0 : _components$row.value(components, colors)) !== null && _components$row5$valu !== void 0 ? _components$row5$valu : '')
body: "".concat((_components$row1$valu = (_components$row = components.row1) === null || _components$row === void 0 ? void 0 : _components$row.value(components, colors)) !== null && _components$row1$valu !== void 0 ? _components$row1$valu : '').concat((_components$row2$valu = (_components$row2 = components.row2) === null || _components$row2 === void 0 ? void 0 : _components$row2.value(components, colors)) !== null && _components$row2$valu !== void 0 ? _components$row2$valu : '').concat((_components$row3$valu = (_components$row3 = components.row3) === null || _components$row3 === void 0 ? void 0 : _components$row3.value(components, colors)) !== null && _components$row3$valu !== void 0 ? _components$row3$valu : '').concat((_components$row4$valu = (_components$row4 = components.row4) === null || _components$row4 === void 0 ? void 0 : _components$row4.value(components, colors)) !== null && _components$row4$valu !== void 0 ? _components$row4$valu : '').concat((_components$row5$valu = (_components$row5 = components.row5) === null || _components$row5 === void 0 ? void 0 : _components$row5.value(components, colors)) !== null && _components$row5$valu !== void 0 ? _components$row5$valu : '')
};

@@ -456,0 +456,0 @@ },

@@ -436,3 +436,3 @@ 'use strict';

create: _ref => {
var _components$row1compo, _components$row1compo2, _components$row3compo, _components$row3compo2, _components$row5$valu, _components$row;
var _components$row1$valu, _components$row, _components$row2$valu, _components$row2, _components$row3$valu, _components$row3, _components$row4$valu, _components$row4, _components$row5$valu, _components$row5;

@@ -457,3 +457,3 @@ let {

},
body: "".concat((_components$row1compo = (_components$row1compo2 = components.row1component) === null || _components$row1compo2 === void 0 ? void 0 : _components$row1compo2.value(components, colors)) !== null && _components$row1compo !== void 0 ? _components$row1compo : '', "::row2").concat((_components$row3compo = (_components$row3compo2 = components.row3component) === null || _components$row3compo2 === void 0 ? void 0 : _components$row3compo2.value(components, colors)) !== null && _components$row3compo !== void 0 ? _components$row3compo : '', "::row4").concat((_components$row5$valu = (_components$row = components.row5) === null || _components$row === void 0 ? void 0 : _components$row.value(components, colors)) !== null && _components$row5$valu !== void 0 ? _components$row5$valu : '')
body: "".concat((_components$row1$valu = (_components$row = components.row1) === null || _components$row === void 0 ? void 0 : _components$row.value(components, colors)) !== null && _components$row1$valu !== void 0 ? _components$row1$valu : '').concat((_components$row2$valu = (_components$row2 = components.row2) === null || _components$row2 === void 0 ? void 0 : _components$row2.value(components, colors)) !== null && _components$row2$valu !== void 0 ? _components$row2$valu : '').concat((_components$row3$valu = (_components$row3 = components.row3) === null || _components$row3 === void 0 ? void 0 : _components$row3.value(components, colors)) !== null && _components$row3$valu !== void 0 ? _components$row3$valu : '').concat((_components$row4$valu = (_components$row4 = components.row4) === null || _components$row4 === void 0 ? void 0 : _components$row4.value(components, colors)) !== null && _components$row4$valu !== void 0 ? _components$row4$valu : '').concat((_components$row5$valu = (_components$row5 = components.row5) === null || _components$row5 === void 0 ? void 0 : _components$row5.value(components, colors)) !== null && _components$row5$valu !== void 0 ? _components$row5$valu : '')
};

@@ -460,0 +460,0 @@ },

@@ -1,2 +0,2 @@

!function(o,x){"object"==typeof exports&&"undefined"!=typeof module?x(exports):"function"==typeof define&&define.amd?define(["exports"],x):x(((o="undefined"!=typeof globalThis?globalThis:o||self).DiceBear=o.DiceBear||{},o.DiceBear.Identicon={}))}(this,(function(o){"use strict";var x={title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{row1:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row1Probability:{type:"integer",minimum:0,maximum:100,default:88},row2:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row2Probability:{type:"integer",minimum:0,maximum:100,default:88},row3:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row3Probability:{type:"integer",minimum:0,maximum:100,default:88},row4:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row4Probability:{type:"integer",minimum:0,maximum:100,default:88},row5:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row5Probability:{type:"integer",minimum:0,maximum:100,default:88},rowColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["red","amber","blue","blueGray","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","teal","yellow"]}]},default:["red","amber","blue","blueGray","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","teal","yellow"]}},additionalProperties:!1};var e=Object.freeze({__proto__:null,row1:{xooox:(o,x)=>'<path d="M1 0H0v1h1V0ZM5 0H4v1h1V0Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 0H0v1h2V0ZM5 0H3v1h2V0Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 0h1v1H0V0ZM4 0h1v1H4V0ZM3 0H2v1h1V0Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 0h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 0h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 0H1v1h1V0ZM4 0H3v1h1V0Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 0h1v1H2z"/>')},row2:{xooox:(o,x)=>'<path d="M1 1H0v1h1V1ZM5 1H4v1h1V1Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 1H0v1h2V1ZM5 1H3v1h2V1Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 1h1v1H0V1ZM4 1h1v1H4V1ZM3 1H2v1h1V1Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 1h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 1h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 1H1v1h1V1ZM4 1H3v1h1V1Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 1h1v1H2z"/>')},row3:{xooox:(o,x)=>'<path d="M1 2H0v1h1V2ZM5 2H4v1h1V2Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 2H0v1h2V2ZM5 2H3v1h2V2Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 2h1v1H0V2ZM4 2h1v1H4V2ZM3 2H2v1h1V2Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 2h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 2h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 2H1v1h1V2ZM4 2H3v1h1V2Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 2h1v1H2z"/>')},row4:{xooox:(o,x)=>'<path d="M1 3H0v1h1V3ZM5 3H4v1h1V3Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 3H0v1h2V3ZM5 3H3v1h2V3Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 3h1v1H0V3ZM4 3h1v1H4V3ZM3 3H2v1h1V3Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 3h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 3h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 3H1v1h1V3ZM4 3H3v1h1V3Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 3h1v1H2z"/>')},row5:{xooox:(o,x)=>'<path d="M1 4H0v1h1V4ZM5 4H4v1h1V4Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 4H0v1h2V4ZM5 4H3v1h2V4Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 4h1v1H0V4ZM4 4h1v1H4V4ZM3 4H2v1h1V4Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 4h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 4h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 4H1v1h1V4ZM4 4H3v1h1V4Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 4h1v1H2z"/>')}});function r(o){let{prng:x,group:r,values:t=[]}=o;const a=e,l=x.pick(t);return a[r][l]?{name:l,value:a[r][l]}:void 0}function t(o){let{prng:x,options:e}=o;const t=r({prng:x,group:"row1",values:e.row1}),a=r({prng:x,group:"row2",values:e.row2}),l=r({prng:x,group:"row3",values:e.row3}),i=r({prng:x,group:"row4",values:e.row4}),n=r({prng:x,group:"row5",values:e.row5});return{row1:x.bool(e.row1Probability)?t:void 0,row2:x.bool(e.row2Probability)?a:void 0,row3:x.bool(e.row3Probability)?l:void 0,row4:x.bool(e.row4Probability)?i:void 0,row5:x.bool(e.row5Probability)?n:void 0}}var a=Object.freeze({__proto__:null,row:{red:"rgba(229, 57, 53, 1)",amber:"rgba(255, 179, 0, 1)",blue:"rgba(30, 136, 229, 1)",blueGray:"rgba(84, 110, 122, 1)",brown:"rgba(109, 76, 65, 1)",cyan:"rgba(0, 172, 193, 1)",deepOrange:"rgba(244, 81, 30, 1)",deepPurple:"rgba(94, 53, 177, 1)",green:"rgba(67, 160, 71, 1)",grey:"rgba(117, 117, 117, 1)",indigo:"rgba(57, 73, 171, 1)",lightBlue:"rgba(3, 155, 229, 1)",lightGreen:"rgba(124, 179, 66, 1)",lime:"rgba(192, 202, 51, 1)",orange:"rgba(251, 140, 0, 1)",pink:"rgba(216, 27, 96, 1)",purple:"rgba(142, 36, 170, 1)",teal:"rgba(0, 137, 123, 1)",yellow:"rgba(253, 216, 53, 1)"}});function l(o){var x;let{prng:e,group:r,values:t=[]}=o;const l=a;0===t.length&&t.push("transparent");const i=e.pick(t);return{name:i,value:null!==(x=l[r][i])&&void 0!==x?x:i}}function i(o){let{prng:x,options:e}=o;return{row:l({prng:x,group:"row",values:e.rowColor})}}const n={row1:{width:5,height:5},row2:{width:5,height:5},row3:{width:5,height:5},row4:{width:5,height:5},row5:{width:5,height:5}},v={meta:{title:"Identicon",creator:"Florian Körner",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},schema:x,create:o=>{var x,e,r,a,l,n;let{prng:v,options:p}=o;const h=t({prng:v,options:p}),u=i({prng:v,options:p});return{attributes:{viewBox:"0 0 5 5",fill:"none","shape-rendering":"crispEdges"},body:"".concat(null!==(x=null===(e=h.row1component)||void 0===e?void 0:e.value(h,u))&&void 0!==x?x:"","::row2").concat(null!==(r=null===(a=h.row3component)||void 0===a?void 0:a.value(h,u))&&void 0!==r?r:"","::row4").concat(null!==(l=null===(n=h.row5)||void 0===n?void 0:n.value(h,u))&&void 0!==l?l:"")}},preview:o=>{let{prng:x,options:e,property:r}=o;const a=r.toString(),l=r.toString().replace(/Color$/,""),v=t({prng:x,options:e}),p=i({prng:x,options:e});if(a in v){var h,u;const{width:o,height:x}=n[a];return{attributes:{viewBox:"0 0 ".concat(o," ").concat(x),fill:"none","shape-rendering":"crispEdges"},body:null!==(h=null===(u=v[a])||void 0===u?void 0:u.value(v,p))&&void 0!==h?h:""}}if(l in p)return{attributes:{viewBox:"0 0 1 1",fill:"none","shape-rendering":"crispEdges"},body:'<rect width="1" height="1" fill="'.concat(p[l].value,'" />')}}};
!function(o,x){"object"==typeof exports&&"undefined"!=typeof module?x(exports):"function"==typeof define&&define.amd?define(["exports"],x):x(((o="undefined"!=typeof globalThis?globalThis:o||self).DiceBear=o.DiceBear||{},o.DiceBear.Identicon={}))}(this,(function(o){"use strict";var x={title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{row1:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row1Probability:{type:"integer",minimum:0,maximum:100,default:88},row2:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row2Probability:{type:"integer",minimum:0,maximum:100,default:88},row3:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row3Probability:{type:"integer",minimum:0,maximum:100,default:88},row4:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row4Probability:{type:"integer",minimum:0,maximum:100,default:88},row5:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row5Probability:{type:"integer",minimum:0,maximum:100,default:88},rowColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["red","amber","blue","blueGray","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","teal","yellow"]}]},default:["red","amber","blue","blueGray","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","teal","yellow"]}},additionalProperties:!1};var e=Object.freeze({__proto__:null,row1:{xooox:(o,x)=>'<path d="M1 0H0v1h1V0ZM5 0H4v1h1V0Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 0H0v1h2V0ZM5 0H3v1h2V0Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 0h1v1H0V0ZM4 0h1v1H4V0ZM3 0H2v1h1V0Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 0h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 0h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 0H1v1h1V0ZM4 0H3v1h1V0Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 0h1v1H2z"/>')},row2:{xooox:(o,x)=>'<path d="M1 1H0v1h1V1ZM5 1H4v1h1V1Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 1H0v1h2V1ZM5 1H3v1h2V1Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 1h1v1H0V1ZM4 1h1v1H4V1ZM3 1H2v1h1V1Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 1h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 1h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 1H1v1h1V1ZM4 1H3v1h1V1Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 1h1v1H2z"/>')},row3:{xooox:(o,x)=>'<path d="M1 2H0v1h1V2ZM5 2H4v1h1V2Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 2H0v1h2V2ZM5 2H3v1h2V2Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 2h1v1H0V2ZM4 2h1v1H4V2ZM3 2H2v1h1V2Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 2h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 2h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 2H1v1h1V2ZM4 2H3v1h1V2Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 2h1v1H2z"/>')},row4:{xooox:(o,x)=>'<path d="M1 3H0v1h1V3ZM5 3H4v1h1V3Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 3H0v1h2V3ZM5 3H3v1h2V3Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 3h1v1H0V3ZM4 3h1v1H4V3ZM3 3H2v1h1V3Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 3h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 3h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 3H1v1h1V3ZM4 3H3v1h1V3Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 3h1v1H2z"/>')},row5:{xooox:(o,x)=>'<path d="M1 4H0v1h1V4ZM5 4H4v1h1V4Z" fill="'.concat(x.row.value,'"/>'),xxoxx:(o,x)=>'<path d="M2 4H0v1h2V4ZM5 4H3v1h2V4Z" fill="'.concat(x.row.value,'"/>'),xoxox:(o,x)=>'<path d="M0 4h1v1H0V4ZM4 4h1v1H4V4ZM3 4H2v1h1V4Z" fill="'.concat(x.row.value,'"/>'),oxxxo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M1 4h3v1H1z"/>'),xxxxx:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M0 4h5v1H0z"/>'),oxoxo:(o,x)=>'<path d="M2 4H1v1h1V4ZM4 4H3v1h1V4Z" fill="'.concat(x.row.value,'"/>'),ooxoo:(o,x)=>'<path fill="'.concat(x.row.value,'" d="M2 4h1v1H2z"/>')}});function r(o){let{prng:x,group:r,values:a=[]}=o;const t=e,l=x.pick(a);return t[r][l]?{name:l,value:t[r][l]}:void 0}function a(o){let{prng:x,options:e}=o;const a=r({prng:x,group:"row1",values:e.row1}),t=r({prng:x,group:"row2",values:e.row2}),l=r({prng:x,group:"row3",values:e.row3}),i=r({prng:x,group:"row4",values:e.row4}),n=r({prng:x,group:"row5",values:e.row5});return{row1:x.bool(e.row1Probability)?a:void 0,row2:x.bool(e.row2Probability)?t:void 0,row3:x.bool(e.row3Probability)?l:void 0,row4:x.bool(e.row4Probability)?i:void 0,row5:x.bool(e.row5Probability)?n:void 0}}var t=Object.freeze({__proto__:null,row:{red:"rgba(229, 57, 53, 1)",amber:"rgba(255, 179, 0, 1)",blue:"rgba(30, 136, 229, 1)",blueGray:"rgba(84, 110, 122, 1)",brown:"rgba(109, 76, 65, 1)",cyan:"rgba(0, 172, 193, 1)",deepOrange:"rgba(244, 81, 30, 1)",deepPurple:"rgba(94, 53, 177, 1)",green:"rgba(67, 160, 71, 1)",grey:"rgba(117, 117, 117, 1)",indigo:"rgba(57, 73, 171, 1)",lightBlue:"rgba(3, 155, 229, 1)",lightGreen:"rgba(124, 179, 66, 1)",lime:"rgba(192, 202, 51, 1)",orange:"rgba(251, 140, 0, 1)",pink:"rgba(216, 27, 96, 1)",purple:"rgba(142, 36, 170, 1)",teal:"rgba(0, 137, 123, 1)",yellow:"rgba(253, 216, 53, 1)"}});function l(o){var x;let{prng:e,group:r,values:a=[]}=o;const l=t;0===a.length&&a.push("transparent");const i=e.pick(a);return{name:i,value:null!==(x=l[r][i])&&void 0!==x?x:i}}function i(o){let{prng:x,options:e}=o;return{row:l({prng:x,group:"row",values:e.rowColor})}}const n={row1:{width:5,height:5},row2:{width:5,height:5},row3:{width:5,height:5},row4:{width:5,height:5},row5:{width:5,height:5}},v={meta:{title:"Identicon",creator:"Florian Körner",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},schema:x,create:o=>{var x,e,r,t,l,n,v,u,h,p;let{prng:c,options:d}=o;const w=a({prng:c,options:d}),g=i({prng:c,options:d});return{attributes:{viewBox:"0 0 5 5",fill:"none","shape-rendering":"crispEdges"},body:"".concat(null!==(x=null===(e=w.row1)||void 0===e?void 0:e.value(w,g))&&void 0!==x?x:"").concat(null!==(r=null===(t=w.row2)||void 0===t?void 0:t.value(w,g))&&void 0!==r?r:"").concat(null!==(l=null===(n=w.row3)||void 0===n?void 0:n.value(w,g))&&void 0!==l?l:"").concat(null!==(v=null===(u=w.row4)||void 0===u?void 0:u.value(w,g))&&void 0!==v?v:"").concat(null!==(h=null===(p=w.row5)||void 0===p?void 0:p.value(w,g))&&void 0!==h?h:"")}},preview:o=>{let{prng:x,options:e,property:r}=o;const t=r.toString(),l=r.toString().replace(/Color$/,""),v=a({prng:x,options:e}),u=i({prng:x,options:e});if(t in v){var h,p;const{width:o,height:x}=n[t];return{attributes:{viewBox:"0 0 ".concat(o," ").concat(x),fill:"none","shape-rendering":"crispEdges"},body:null!==(h=null===(p=v[t])||void 0===p?void 0:p.value(v,u))&&void 0!==h?h:""}}if(l in u)return{attributes:{viewBox:"0 0 1 1",fill:"none","shape-rendering":"crispEdges"},body:'<rect width="1" height="1" fill="'.concat(u[l].value,'" />')}}};
/*!

@@ -11,2 +11,2 @@ * Identicon (@dicebear/identicon)

*/
let{create:p,preview:h,meta:u,schema:c}=v;o.create=p,o.meta=u,o.preview=h,o.schema=c,Object.defineProperty(o,"__esModule",{value:!0})}));
let{create:u,preview:h,meta:p,schema:c}=v;o.create=u,o.meta=p,o.preview=h,o.schema=c,Object.defineProperty(o,"__esModule",{value:!0})}));
{
"name": "@dicebear/identicon",
"version": "5.0.0-alpha.5",
"version": "5.0.0-alpha.6",
"description": "Avatar style for DiceBear",

@@ -33,7 +33,7 @@ "keywords": [

"devDependencies": {
"@dicebear/core": "^5.0.0-alpha.5",
"@dicebear/core": "^5.0.0-alpha.6",
"@tsconfig/recommended": "^1.0.0",
"@types/jest": "^26.0.22",
"@types/node": "^10.11.6",
"dicebear-project": "^5.0.0-alpha.5",
"dicebear-project": "^5.0.0-alpha.6",
"jest": "^26.6.3",

@@ -51,3 +51,3 @@ "shx": "^0.3.3",

},
"gitHead": "f468a40150c4d5f913287f10b49eb034b180e4f0"
"gitHead": "d6c8c12102c3aa2071e6795972574ccd4a40b8b7"
}
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