@lesjoursfr/gifsicle-wrapper 4.1.6 → 4.1.7

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.
@@ -8,6 +8,6 @@ export declare function toFile(this: Gifsicle, fileOut: string): Promise<void>;
8
8
  /**
9
9
  * Get the result file as a Buffer.
10
10
  *
11
- * @returns {Buffer}
11
+ * @returns {Uint8Array}
12
12
  */
13
13
  export declare function toBuffer(this: Gifsicle): Promise<Uint8Array>;
@@ -46,7 +46,7 @@ export async function toFile(fileOut) {
46
46
  /**
47
47
  * Get the result file as a Buffer.
48
48
  *
49
- * @returns {Buffer}
49
+ * @returns {Uint8Array}
50
50
  */
51
51
  export async function toBuffer() {
52
52
  return processFile(this.input, this.options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lesjoursfr/gifsicle-wrapper",
3
- "version": "4.1.6",
3
+ "version": "4.1.7",
4
4
  "description": "Wrapper for Gifsicle",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "access": "public"
16
16
  },
17
17
  "engines": {
18
- "node": "20.x || 22.x"
18
+ "node": "20.x || 22.x || 24.x"
19
19
  },
20
20
  "exports": "./lib/index.js",
21
21
  "types": "./lib/index.d.ts",
@@ -49,26 +49,26 @@
49
49
  ],
50
50
  "type": "module",
51
51
  "dependencies": {
52
- "@lesjoursfr/bin-wrapper": "^12.1.6",
53
- "execa": "^9.3.0",
52
+ "@lesjoursfr/bin-wrapper": "^12.1.7",
53
+ "execa": "^9.5.1",
54
54
  "image-size": "^1.1.1",
55
55
  "tar": "^7.4.3",
56
56
  "tempy": "^3.1.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@eslint/js": "^9.8.0",
59
+ "@eslint/js": "^9.16.0",
60
60
  "@tsconfig/node20": "^20.1.4",
61
- "@types/mocha": "^10.0.7",
62
- "@types/node": "^20.14.13",
61
+ "@types/mocha": "^10.0.10",
62
+ "@types/node": "^22.10.1",
63
63
  "@types/tar": "^6.1.13",
64
- "eslint": "^9.8.0",
64
+ "eslint": "^9.16.0",
65
65
  "eslint-config-prettier": "^9.1.0",
66
- "globals": "^15.9.0",
67
- "mocha": "^10.7.0",
68
- "prettier": "^3.3.3",
66
+ "globals": "^15.13.0",
67
+ "mocha": "^11.0.1",
68
+ "prettier": "^3.4.2",
69
69
  "ts-node": "^10.9.2",
70
- "typescript": "^5.5.4",
71
- "typescript-eslint": "^8.0.0"
70
+ "typescript": "^5.7.2",
71
+ "typescript-eslint": "^8.17.0"
72
72
  },
73
- "packageManager": "yarn@4.3.1"
73
+ "packageManager": "yarn@4.5.3"
74
74
  }
@@ -48,15 +48,15 @@ async function processFile(input: Buffer, options: GifsicleInternalOptions) {
48
48
  *
49
49
  * @param {String} [fileOut]
50
50
  */
51
- export async function toFile(this: Gifsicle, fileOut: string) {
51
+ export async function toFile(this: Gifsicle, fileOut: string): Promise<void> {
52
52
  writeFileSync(fileOut, await processFile(this.input, this.options));
53
53
  }
54
54
 
55
55
  /**
56
56
  * Get the result file as a Buffer.
57
57
  *
58
- * @returns {Buffer}
58
+ * @returns {Uint8Array}
59
59
  */
60
- export async function toBuffer(this: Gifsicle) {
60
+ export async function toBuffer(this: Gifsicle): Promise<Uint8Array> {
61
61
  return processFile(this.input, this.options);
62
62
  }