@dicebear/converter 7.0.5 → 7.1.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/lib/node/core.js +3 -3
- package/package.json +2 -2
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
|
-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/converter",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "SVG Converter for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "04b74170d60c613e1cff891f6fc4bdc573c39808"
|
|
75
75
|
}
|