@dicebear/core 5.0.0-alpha.30 → 5.0.0-alpha.31

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.
@@ -28,5 +28,7 @@ export function merge(style, options) {
28
28
  ...defaults(style.schema),
29
29
  ...options,
30
30
  };
31
- return result;
31
+ // Return a complete copy because the styles could partially customize the
32
+ // options and thus modify nested objects and arrays.
33
+ return JSON.parse(JSON.stringify(result));
32
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/core",
3
- "version": "5.0.0-alpha.30",
3
+ "version": "5.0.0-alpha.31",
4
4
  "description": "An avatar library for designers and developers.",
5
5
  "keywords": [
6
6
  "avatar",
@@ -31,7 +31,7 @@
31
31
  "test": "uvu tests"
32
32
  },
33
33
  "dependencies": {
34
- "@dicebear/converter": "^5.0.0-alpha.30",
34
+ "@dicebear/converter": "^5.0.0-alpha.31",
35
35
  "@types/json-schema": "^7.0.7"
36
36
  },
37
37
  "devDependencies": {
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "2cae9f43562e444ecc6e6c1cd1f07af429aefb53"
49
+ "gitHead": "088e33eb5bc45d01c9b6350011d973a5bd23bcc8"
50
50
  }