svg-toolbox 1.0.2 → 1.0.3

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.
@@ -49,11 +49,6 @@ module.exports = async function (pathA, pathB, diffFilePath) {
49
49
  // Compare the images and get the number of different pixels
50
50
  const numDiffPixels = pixelmatch(img1.data, img2.data, diff.data, width, height, { threshold: 0.1 });
51
51
 
52
- // Ensure the diff directory exists
53
- if (!fs.existsSync('diff')) {
54
- fs.mkdirSync('diff', { recursive: true });
55
- }
56
-
57
52
  // Write the diff image to a buffer
58
53
  const diffPngBuffer = PNG.sync.write(diff);
59
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svg-toolbox",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "This library provides some SVG-related tools",
5
5
  "main": "lib/index.js",
6
6
  "repository": "https://github.com/SteamedBread2333/svg-toolbox",