@dicebear/micah 5.3.3 → 6.0.0-alpha.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/README.md CHANGED
@@ -5,13 +5,13 @@
5
5
  </p>
6
6
 
7
7
  <p align="center">
8
- <img src="https://api.dicebear.com/5.x/micah/svg?seed=Mimi" width="64" />
9
- <img src="https://api.dicebear.com/5.x/micah/svg?seed=Sasha" width="64" />
10
- <img src="https://api.dicebear.com/5.x/micah/svg?seed=Lilly" width="64" />
11
- <img src="https://api.dicebear.com/5.x/micah/svg?seed=Tigger" width="64" />
12
- <img src="https://api.dicebear.com/5.x/micah/svg?seed=Bella" width="64" />
13
- <img src="https://api.dicebear.com/5.x/micah/svg?seed=Zoe" width="64" />
14
- <img src="https://api.dicebear.com/5.x/micah/svg?seed=Kitty" width="64" />
8
+ <img src="https://api.dicebear.com/6.x/micah/svg?seed=Mimi" width="64" />
9
+ <img src="https://api.dicebear.com/6.x/micah/svg?seed=Sasha" width="64" />
10
+ <img src="https://api.dicebear.com/6.x/micah/svg?seed=Lilly" width="64" />
11
+ <img src="https://api.dicebear.com/6.x/micah/svg?seed=Tigger" width="64" />
12
+ <img src="https://api.dicebear.com/6.x/micah/svg?seed=Bella" width="64" />
13
+ <img src="https://api.dicebear.com/6.x/micah/svg?seed=Zoe" width="64" />
14
+ <img src="https://api.dicebear.com/6.x/micah/svg?seed=Kitty" width="64" />
15
15
  </p>
16
16
 
17
17
  <p align="center">
@@ -6,5 +6,5 @@
6
6
  */
7
7
  import { escape } from '@dicebear/core';
8
8
  export const base = {
9
- 'standard': (components, colors) => { var _a, _b; return `<path d="M154 319.5c-14.4-20-25.67-58.67-27-78L58.5 212 30 319.5h124Z" fill="${escape.xml(`${colors.base}`)}" stroke="#000" stroke-width="4"/><mask id="baseStandard-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="30" y="212" width="124" height="118"><path d="M154 329.5c-14.4-20-25.67-68.67-27-88L58.5 212 30 329.5h124Z" fill="${escape.xml(`${colors.base}`)}"/></mask><g mask="url(#baseStandard-a)"><ellipse cx="124" cy="210" rx="59" ry="54" fill="#000" style="mix-blend-mode:multiply"/></g><path d="M181.94 151.37v.01l.1.4.14.65A75.72 75.72 0 0 1 34.93 187.7l-.2-.74L18 117.13l-.06-.29A75.72 75.72 0 0 1 165.2 81.55l.05.21.02.08.05.2.05.2v.01l16.4 68.44.08.34.08.34Z" fill="${escape.xml(`${colors.base}`)}" stroke="#000" stroke-width="4"/><g transform="translate(34 102.3)">${(_b = (_a = components.facialHair) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g>`; },
9
+ 'standard': (components, colors) => { var _a, _b; return `<path d="M154 319.5c-14.4-20-25.67-58.67-27-78L58.5 212 30 319.5h124Z" fill="${escape.xml(`${colors.base}`)}" stroke="#000" stroke-width="4"/><path d="M130.37 263.69c-2.1.2-4.22.31-6.37.31-30.78 0-56.05-21.57-58.76-49.1L127 241.5c.38 5.48 1.55 13.32 3.37 22.19Z" fill="#000" style="mix-blend-mode:multiply"/><path d="M181.94 151.37v.01l.1.4.14.65A75.72 75.72 0 0 1 34.93 187.7l-.2-.74L18 117.13l-.06-.29A75.72 75.72 0 0 1 165.2 81.55l.05.21.02.08.05.2.05.2v.01l16.4 68.44.08.34.08.34Z" fill="${escape.xml(`${colors.base}`)}" stroke="#000" stroke-width="4"/><g transform="translate(34 102.3)">${(_b = (_a = components.facialHair) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g>`; },
10
10
  };
@@ -10,4 +10,5 @@ export const eyes = {
10
10
  'round': (components, colors) => { var _a, _b; return `<g fill="${escape.xml(`${colors.eyes}`)}"><ellipse cx="16.12" cy="28.93" rx="9" ry="10" transform="rotate(-6.78 16.12 28.93)"/><ellipse cx="80.15" cy="18.92" rx="9" ry="10" transform="rotate(-6.28 80.15 18.92)"/></g><g transform="translate(-40 -8)">${(_b = (_a = components.glasses) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g>`; },
11
11
  'eyesShadow': (components, colors) => { var _a, _b; return `<circle cx="15.24" cy="20.24" r="12" transform="rotate(-6.28 15.24 20.24)" fill="${escape.xml(`${colors.eyeShadow}`)}"/><ellipse cx="16.53" cy="29.4" rx="9" ry="13.5" transform="rotate(-6.78 16.53 29.4)" fill="${escape.xml(`${colors.eyes}`)}"/><circle cx="79.02" cy="11.61" r="12" transform="rotate(-6.28 79.02 11.61)" fill="${escape.xml(`${colors.eyeShadow}`)}"/><ellipse cx="80.53" cy="19.4" rx="9" ry="13.5" transform="rotate(-6.28 80.53 19.4)" fill="${escape.xml(`${colors.eyes}`)}"/><g transform="translate(-40 -8)">${(_b = (_a = components.glasses) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g>`; },
12
12
  'smiling': (components, colors) => { var _a, _b; return `<path d="M5.29 34.07c.11.82 1.14 1 1.72.41 2.46-2.52 6.25-4.36 10.65-4.89 2.6-.3 5.1-.12 7.32.48.75.2 1.5-.44 1.23-1.17A10.84 10.84 0 0 0 5.3 34.07ZM69.38 24.07c.12.82 1.15 1 1.73.41 2.44-2.48 6.19-4.3 10.54-4.83 2.56-.3 5.03-.12 7.23.47.75.2 1.5-.44 1.23-1.17a10.74 10.74 0 0 0-20.73 5.12Z" fill="${escape.xml(`${colors.eyes}`)}"/><g transform="translate(-40 -8)">${(_b = (_a = components.glasses) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g>`; },
13
+ 'smilingShadow': (components, colors) => { var _a, _b; return `<path d="M26.47 24.36c1.86 6.36-5.04 1.48-11.4 3.33-6.36 1.86-9.78 9.76-11.64 3.4a12 12 0 0 1 23.04-6.73ZM90.26 15.17c1.64 6.42-4.7 1.52-11.11 3.15-6.43 1.64-10.51 9.19-12.15 2.77a12 12 0 1 1 23.26-5.92Z" fill="#D2EFF3"/><path d="M5.29 34.07c.11.82 1.14 1 1.72.41 2.46-2.52 6.25-4.36 10.65-4.89 2.6-.3 5.1-.12 7.32.48.75.2 1.5-.44 1.23-1.17A10.84 10.84 0 0 0 5.3 34.07ZM69.38 24.07c.12.82 1.15 1 1.73.41 2.44-2.48 6.19-4.3 10.54-4.83 2.56-.3 5.03-.12 7.23.47.75.2 1.5-.44 1.23-1.17a10.74 10.74 0 0 0-20.73 5.12Z" fill="${escape.xml(`${colors.eyes}`)}"/><g transform="translate(-40 -8)">${(_b = (_a = components.glasses) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g>`; },
13
14
  };
@@ -4,7 +4,8 @@
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
5
  * File: https://www.figma.com/file/YHb4ShTgmO8Lqhkz1plLfL
6
6
  */
7
+ import { escape } from '@dicebear/core';
7
8
  export const facialHair = {
8
- 'beard': (components, colors) => `<path d="M146.13 49.15A73.74 73.74 0 0 1 27.69 123.4C10.5 107.5 6.5 56 2.7 31.65c14 31.5 49.62 33.94 83.5 28 28.5-5 51.3-6 51.3-45 1.88 2.62 6.97 27.59 8.63 34.5Z" fill="#000"/>`,
9
- 'scruff': (components, colors) => `<path d="M31 109a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM83 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM79 123a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM99 121a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 111a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM120 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM130 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM21 88a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM54 104a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM51 124a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM69 128a1 1 0 1 1-2 0 1 1 0 0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92 93a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM43 75a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM80 91a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM80 73a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM115 87a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM115 69a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM122 71a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM137 62a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" stroke="#000"/>`,
9
+ 'beard': (components, colors) => `<path d="M146.13 49.15A73.74 73.74 0 0 1 27.69 123.4C10.5 107.5 6.5 56 2.7 31.65c14 31.5 49.62 33.94 83.5 28 28.5-5 51.3-6 51.3-45 1.88 2.62 6.97 27.59 8.63 34.5Z" fill="${escape.xml(`${colors.facialHair}`)}"/>`,
10
+ 'scruff': (components, colors) => `<g fill="${escape.xml(`${colors.facialHair}`)}"><path d="M31 109a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM83 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM79 123a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM99 121a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 111a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM120 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM130 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM21 88a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM54 104a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM51 124a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM69 128a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM103 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM117 106a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM109 123a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM123 92a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM30 94a1 1 0 1 1-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 69a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM122 71a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM137 62a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" stroke="#000"/></g>`,
10
11
  };
@@ -6,9 +6,9 @@
6
6
  */
7
7
  import { escape } from '@dicebear/core';
8
8
  export const mouth = {
9
- 'surprised': (components, colors) => `<path d="M36.05 54.9c10.83-1.97 17.18-13.95 14.97-26.15-2.2-12.2-12.35-21.19-23.18-19.23C17 11.48 10.65 23.46 12.86 35.66c2.2 12.2 12.35 21.2 23.19 19.23Z" fill="${escape.xml(`${colors.mouth}`)}" stroke="${escape.xml(`${colors.mouth}`)}" stroke-width="3.59"/><mask id="mouthSurprised-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="14" y="11" width="36" height="43"><ellipse cx="31.94" cy="32.21" rx="17.6" ry="21.26" transform="rotate(-10.26 31.94 32.2)" fill="#171921"/></mask><g mask="url(#mouthSurprised-a)"><ellipse cx="35.2" cy="50.22" rx="20.2" ry="18.3" transform="rotate(-10.26 35.2 50.22)" fill="#FC909F"/></g>`,
10
- 'laughing': (components, colors) => `<path d="M62.8 25.18a34 34 0 0 0 1.12-11.85 2.98 2.98 0 0 0-4.08-2.51c-4.22 1.66-18.21 6.96-28.08 8.32-10.82 1.49-27.2-.32-31.95-.9a2.98 2.98 0 0 0-3.32 3.43 34 34 0 0 0 66.32 3.5Z" fill="${escape.xml(`${colors.mouth}`)}" stroke="${escape.xml(`${colors.mouth}`)}" stroke-width="4"/><mask id="mouthLaughing-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="-2" y="12" width="65" height="37"><path d="M61.8 12.2a32 32 0 0 1-63.52 7.85l63.51-7.86Z" fill="#171921"/></mask><g mask="url(#mouthLaughing-a)"><circle cx="34.52" cy="52.31" r="21.5" transform="rotate(-7.05 34.52 52.31)" fill="#FC909F"/></g>`,
11
- 'nervous': (components, colors) => `<rect x="-6.75" y="17.47" width="70" height="24" rx="4" transform="rotate(-4 -6.75 17.47)" fill="${escape.xml(`${colors.mouth}`)}"/><path d="m56.82 13.03-57.32 4 1.84 7a6 6 0 0 0 6.23 4.47 6 6 0 0 0-5.54 5.28l-.85 7.2 57.32-4.01-1.84-7a6 6 0 0 0-6.23-4.47 6 6 0 0 0 5.54-5.28l.85-7.2Z" fill="#fff"/><path d="M66.42 31.7 65.4 17.13a6.06 6.06 0 0 0-7.32-5.48c-6.94 1.49-20.22 4.13-29.82 4.8-9.6.68-23.1-.1-30.2-.6a6.06 6.06 0 0 0-6.48 6.45l1.02 14.57a6.06 6.06 0 0 0 7.32 5.48c6.94-1.49 20.22-4.13 29.82-4.8 9.6-.68 23.1.1 30.2.6a6.06 6.06 0 0 0 6.48-6.45Z" stroke="${escape.xml(`${colors.mouth}`)}" stroke-width="4"/>`,
9
+ 'surprised': (components, colors) => `<path d="M36.37 56.66c12.1-2.2 18.75-15.38 16.42-28.23C50.47 15.6 39.63 5.57 27.52 7.76 15.4 9.95 8.77 23.13 11.09 35.98c2.33 12.85 13.17 22.87 25.28 20.68Z" fill="${escape.xml(`${colors.mouth}`)}"/><path d="M17.14 42.66c2.78-5.21 8.14-9.25 14.8-10.45 6.66-1.2 13.1.7 17.53 4.6-1.09 8.3-6.37 15-13.74 16.33-7.37 1.33-14.67-3.1-18.6-10.47Z" fill="#FC909F"/>`,
10
+ 'laughing': (components, colors) => `<path d="M64.73 25.7a36 36 0 0 0 1.18-12.54 4.98 4.98 0 0 0-6.8-4.2c-4.26 1.67-18.03 6.88-27.62 8.2-10.52 1.44-26.66-.32-31.44-.91a4.98 4.98 0 0 0-5.53 5.74 36 36 0 0 0 70.21 3.7Z" fill="${escape.xml(`${colors.mouth}`)}"/><path d="M51.83 39.55a32 32 0 0 1-37.2 4.62 21.5 21.5 0 0 1 37.2-4.62Z" fill="#FC909F"/>`,
11
+ 'nervous': (components, colors) => `<path d="M68.42 31.57 67.4 17a8.06 8.06 0 0 0-9.74-7.3c-6.95 1.49-20.1 4.1-29.54 4.76-9.43.66-22.82-.1-29.9-.6a8.06 8.06 0 0 0-8.63 8.58L-9.4 37a8.06 8.06 0 0 0 9.73 7.3c6.95-1.48 20.1-4.1 29.54-4.76 9.44-.66 22.82.1 29.91.61a8.06 8.06 0 0 0 8.63-8.58Z" fill="${escape.xml(`${colors.mouth}`)}"/><path d="m-.25 17.97 1.6 6.07a6 6 0 0 0 6.22 4.46 6 6 0 0 0-5.54 5.28l-.74 6.23c7.28-1.52 19.34-3.83 28.3-4.46 8.98-.63 21.24-.02 28.66.48l-1.6-6.07a6 6 0 0 0-6.21-4.46 6 6 0 0 0 5.54-5.28l.73-6.24c-7.27 1.53-19.33 3.84-28.3 4.47-8.97.62-21.23.01-28.65-.48Z" fill="#fff"/>`,
12
12
  'smile': (components, colors) => `<path d="M-.5 17.5c2.5 17 31 25 57 5.5" stroke="${escape.xml(`${colors.mouth}`)}" stroke-width="4"/>`,
13
13
  'sad': (components, colors) => `<path d="M13 46c1.72-7.96 8.07-24.77 19.77-28.35 11.7-3.58 17.7 8.46 19.23 14.92" stroke="${escape.xml(`${colors.mouth}`)}" stroke-width="4"/>`,
14
14
  'pucker': (components, colors) => `<path d="M26 16.7c4.17-2.34 21-5.3 21 1.5 0 8.5-11.5 8-11.5 8s13.04-3.16 10.5 6c-2.5 9-9.5 5.5-11.5 4.5" stroke="${escape.xml(`${colors.mouth}`)}" stroke-width="4"/>`,
@@ -8,6 +8,6 @@ export function onPostCreate({ prng, options, components, colors }) {
8
8
  var _a;
9
9
  // Ensure that the mouth remains visible. #132
10
10
  if (((_a = components.facialHair) === null || _a === void 0 ? void 0 : _a.name) === 'beard' && colors.facialHair === colors.mouth) {
11
- colors.mouth = 'ffffff33';
11
+ colors.mouth = '#ffffff33';
12
12
  }
13
13
  }
package/lib/schema.js CHANGED
@@ -137,14 +137,16 @@ export const schema = {
137
137
  "eyes",
138
138
  "round",
139
139
  "eyesShadow",
140
- "smiling"
140
+ "smiling",
141
+ "smilingShadow"
141
142
  ]
142
143
  },
143
144
  "default": [
144
145
  "eyes",
145
146
  "round",
146
147
  "eyesShadow",
147
- "smiling"
148
+ "smiling",
149
+ "smilingShadow"
148
150
  ]
149
151
  },
150
152
  "eyesColor": {
@@ -178,7 +180,7 @@ export const schema = {
178
180
  "pattern": "^(transparent|[a-fA-F0-9]{6})$"
179
181
  },
180
182
  "default": [
181
- "77311d"
183
+ "000000"
182
184
  ]
183
185
  },
184
186
  "facialHairProbability": {
package/lib/types.d.ts CHANGED
@@ -10,7 +10,7 @@ export interface Options {
10
10
  eyebrows?: ('up' | 'down' | 'eyelashesUp' | 'eyelashesDown')[];
11
11
  hair?: ('fonze' | 'mrT' | 'dougFunny' | 'mrClean' | 'dannyPhantom' | 'full' | 'turban' | 'pixie')[];
12
12
  hairProbability?: number;
13
- eyes?: ('eyes' | 'round' | 'eyesShadow' | 'smiling')[];
13
+ eyes?: ('eyes' | 'round' | 'eyesShadow' | 'smiling' | 'smilingShadow')[];
14
14
  nose?: ('curve' | 'pointed' | 'tound')[];
15
15
  ears?: ('attached' | 'detached')[];
16
16
  shirt?: ('open' | 'crew' | 'collared')[];
@@ -9,57 +9,57 @@ export function getComponents({ prng, options }) {
9
9
  const baseComponent = pickComponent({
10
10
  prng,
11
11
  group: 'base',
12
- values: options.base
12
+ values: options.base,
13
13
  });
14
14
  const mouthComponent = pickComponent({
15
15
  prng,
16
16
  group: 'mouth',
17
- values: options.mouth
17
+ values: options.mouth,
18
18
  });
19
19
  const eyebrowsComponent = pickComponent({
20
20
  prng,
21
21
  group: 'eyebrows',
22
- values: options.eyebrows
22
+ values: options.eyebrows,
23
23
  });
24
24
  const hairComponent = pickComponent({
25
25
  prng,
26
26
  group: 'hair',
27
- values: options.hair
27
+ values: options.hair,
28
28
  });
29
29
  const eyesComponent = pickComponent({
30
30
  prng,
31
31
  group: 'eyes',
32
- values: options.eyes
32
+ values: options.eyes,
33
33
  });
34
34
  const noseComponent = pickComponent({
35
35
  prng,
36
36
  group: 'nose',
37
- values: options.nose
37
+ values: options.nose,
38
38
  });
39
39
  const earsComponent = pickComponent({
40
40
  prng,
41
41
  group: 'ears',
42
- values: options.ears
42
+ values: options.ears,
43
43
  });
44
44
  const shirtComponent = pickComponent({
45
45
  prng,
46
46
  group: 'shirt',
47
- values: options.shirt
47
+ values: options.shirt,
48
48
  });
49
49
  const earringsComponent = pickComponent({
50
50
  prng,
51
51
  group: 'earrings',
52
- values: options.earrings
52
+ values: options.earrings,
53
53
  });
54
54
  const glassesComponent = pickComponent({
55
55
  prng,
56
56
  group: 'glasses',
57
- values: options.glasses
57
+ values: options.glasses,
58
58
  });
59
59
  const facialHairComponent = pickComponent({
60
60
  prng,
61
61
  group: 'facialHair',
62
- values: options.facialHair
62
+ values: options.facialHair,
63
63
  });
64
64
  return {
65
65
  'base': baseComponent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/micah",
3
- "version": "5.3.3",
3
+ "version": "6.0.0-alpha.0",
4
4
  "description": "Avatar style for DiceBear",
5
5
  "keywords": [
6
6
  "dicebear"
@@ -29,20 +29,20 @@
29
29
  "test": "uvu tests"
30
30
  },
31
31
  "devDependencies": {
32
- "@dicebear/core": "^5.3.3",
33
- "@tsconfig/recommended": "^1.0.1",
32
+ "@dicebear/core": "6.0.0-alpha.0",
33
+ "@tsconfig/recommended": "^1.0.2",
34
34
  "del-cli": "^5.0.0",
35
- "typescript": "^4.6.3",
36
- "uvu": "^0.5.3"
35
+ "typescript": "^5.0.2",
36
+ "uvu": "^0.5.6"
37
37
  },
38
38
  "peerDependencies": {
39
- "@dicebear/core": "^5.0.0"
39
+ "@dicebear/core": "^6.0.0"
40
40
  },
41
41
  "engines": {
42
- "node": "^14.13.1 || >=16.0.0"
42
+ "node": ">=16.0.0"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "1fff962a7289be4b0f04ec733b3255a474ecaaf4"
47
+ "gitHead": "64646747611ff92b5028205ef3e509be5ff2060b"
48
48
  }