@dicebear/converter 8.0.0-rc.2 → 8.0.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
@@ -1,4 +1,4 @@
1
- <h1><img src="https://dicebear.com/logo-readme.svg" width="28" /> DiceBear Converter</h1>
1
+ <h1><img src="https://www.dicebear.com/logo-readme.svg" width="28" /> DiceBear Converter</h1>
2
2
 
3
3
  <p>
4
4
  <img src="https://api.dicebear.com/6.x/adventurer/svg?seed=Mimi&backgroundColor=0077b6&radius=10" width="64" />
@@ -9,5 +9,5 @@
9
9
  <img src="https://api.dicebear.com/6.x/initials/svg?seed=..&backgroundColor=ade8f4&radius=10" width="64" />
10
10
  </p>
11
11
 
12
- [Playground](https://dicebear.com/playground) |
13
- [Documentation](https://dicebear.com/introduction)
12
+ [Playground](https://www.dicebear.com/playground) |
13
+ [Documentation](https://www.dicebear.com/introduction)
package/lib/node/core.js CHANGED
@@ -51,10 +51,10 @@ async function toBuffer(rawSvg, format, exif) {
51
51
  }
52
52
  if (exif) {
53
53
  const exiftool = (await import('exiftool-vendored')).exiftool;
54
- await tmp.withFile(async ({ path }) => {
54
+ buffer = await tmp.withFile(async ({ path }) => {
55
55
  await fs.writeFile(path, buffer);
56
- await exiftool.write(path, exif);
57
- buffer = await fs.readFile(path);
56
+ await exiftool.write(path, exif, ['-overwrite_original']);
57
+ return fs.readFile(path);
58
58
  });
59
59
  }
60
60
  return buffer;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dicebear/converter",
3
- "version": "8.0.0-rc.2",
3
+ "version": "8.0.0",
4
4
  "description": "SVG Converter for DiceBear",
5
5
  "keywords": [
6
6
  "dicebear"
7
7
  ],
8
- "homepage": "https://dicebear.com",
8
+ "homepage": "https://www.dicebear.com",
9
9
  "bugs": {
10
10
  "url": "https://github.com/dicebear/dicebear/issues"
11
11
  },
@@ -41,16 +41,16 @@
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@resvg/resvg-js": "^2.4.1",
44
- "exiftool-vendored": "^22.0.0",
45
- "sharp": "^0.32.1"
44
+ "exiftool-vendored": "^23.0.0",
45
+ "sharp": "^0.32.6"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@resvg/resvg-js": "^2.4.1",
49
49
  "@tsconfig/recommended": "^1.0.2",
50
50
  "@types/sharp": "^0.32.0",
51
51
  "del-cli": "^5.0.0",
52
- "exiftool-vendored": "^22.0.0",
53
- "sharp": "^0.32.1",
52
+ "exiftool-vendored": "^23.0.0",
53
+ "sharp": "^0.32.6",
54
54
  "typescript": "^5.1.6",
55
55
  "uvu": "^0.5.6"
56
56
  },
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "226c203a893f9e22401d35ab24c0418462d262c9"
74
+ "gitHead": "218cf2a59086fb512ac9b1bfc498ccb8855f4226"
75
75
  }