@lesjoursfr/gifsicle-wrapper 4.1.7 → 4.1.9

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.
@@ -1,4 +1,4 @@
1
- import sizeOf from "image-size";
1
+ import { imageSize } from "image-size";
2
2
  /**
3
3
  * Reduction kernels.
4
4
  */
@@ -104,7 +104,7 @@ export function crop(width, height, options) {
104
104
  return this;
105
105
  }
106
106
  export function computeCroppingPoint(input, crop) {
107
- const size = sizeOf(input);
107
+ const size = imageSize(input);
108
108
  if (size.width === undefined || size.height === undefined) {
109
109
  throw new Error("Can't compute the image size");
110
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lesjoursfr/gifsicle-wrapper",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
4
4
  "description": "Wrapper for Gifsicle",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -49,26 +49,26 @@
49
49
  ],
50
50
  "type": "module",
51
51
  "dependencies": {
52
- "@lesjoursfr/bin-wrapper": "^12.1.7",
53
- "execa": "^9.5.1",
54
- "image-size": "^1.1.1",
52
+ "@lesjoursfr/bin-wrapper": "^12.1.10",
53
+ "execa": "^9.5.2",
54
+ "image-size": "^2.0.1",
55
55
  "tar": "^7.4.3",
56
56
  "tempy": "^3.1.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@eslint/js": "^9.16.0",
60
- "@tsconfig/node20": "^20.1.4",
59
+ "@eslint/js": "^9.23.0",
60
+ "@tsconfig/node20": "^20.1.5",
61
61
  "@types/mocha": "^10.0.10",
62
- "@types/node": "^22.10.1",
62
+ "@types/node": "^22.13.15",
63
63
  "@types/tar": "^6.1.13",
64
- "eslint": "^9.16.0",
65
- "eslint-config-prettier": "^9.1.0",
66
- "globals": "^15.13.0",
67
- "mocha": "^11.0.1",
68
- "prettier": "^3.4.2",
64
+ "eslint": "^9.23.0",
65
+ "eslint-config-prettier": "^10.1.1",
66
+ "globals": "^16.0.0",
67
+ "mocha": "^11.1.0",
68
+ "prettier": "^3.5.3",
69
69
  "ts-node": "^10.9.2",
70
- "typescript": "^5.7.2",
71
- "typescript-eslint": "^8.17.0"
70
+ "typescript": "^5.8.2",
71
+ "typescript-eslint": "^8.29.0"
72
72
  },
73
- "packageManager": "yarn@4.5.3"
73
+ "packageManager": "yarn@4.8.1"
74
74
  }
@@ -1,4 +1,4 @@
1
- import sizeOf from "image-size";
1
+ import { imageSize } from "image-size";
2
2
  import { Gifsicle } from "../gifsicle.js";
3
3
 
4
4
  /**
@@ -129,7 +129,7 @@ export function computeCroppingPoint(
129
129
  input: Buffer,
130
130
  crop: { width: number; height: number; position: CroppingPosition }
131
131
  ): { x: number; y: number } {
132
- const size = sizeOf(input);
132
+ const size = imageSize(input);
133
133
  if (size.width === undefined || size.height === undefined) {
134
134
  throw new Error("Can't compute the image size");
135
135
  }