oslllo-potrace 2.0.1 → 4.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/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [4.0.0](https://github.com/oslllo/potrace/compare/v3.0.0...v4.0.0) (2024-10-30)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * severity vulnerability ([7a07a18](https://github.com/oslllo/potrace/commit/7a07a18b54408902fa358227eba00ab7e1346fc8))
14
+
15
+ ### Dependencies
16
+
17
+ * deps: update jimp to 1.6.0 (#61)
18
+
19
+ ## [3.0.0](https://github.com/oslllo/potrace/compare/v2.0.1...v3.0.0) (2024-07-21)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * fix security vulnerabilities ([cd9eee2](https://github.com/oslllo/potrace/commit/cd9eee2b38bc0aaca0dda4abb422ba5304acdc3d))
25
+
8
26
  ### [2.0.1](https://www.github.com/oslllo/potrace/compare/v2.0.0...v2.0.1) (2022-07-16)
9
27
 
10
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oslllo-potrace",
3
- "version": "2.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "A \"1:1 output\" JavaScript port of Potrace JS for NodeJS.",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "homepage": "https://github.com/oslllo/potrace#readme",
41
41
  "dependencies": {
42
- "jimp": "^0.16.1"
42
+ "jimp": "^1.6.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "chai": "^4.3.6",
package/src/loader.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
- const jimp = require("jimp");
4
3
  const error = require("./error");
5
4
  const Bitmap = require("./types/Bitmap");
5
+ const { Jimp } = require('jimp').default || require('jimp');
6
6
 
7
7
  const Loader = function () {
8
8
  };
@@ -18,7 +18,7 @@ Loader.prototype = {
18
18
  );
19
19
  throw err;
20
20
  }
21
- return jimp.read(image);
21
+ return Jimp.read(image);
22
22
  },
23
23
  bitmap: function (image, info) {
24
24
  var {