@uxf/resizer 10.10.1 → 11.7.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.
Files changed (3) hide show
  1. package/index.js +3 -1
  2. package/index.ts +3 -1
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -103,7 +103,9 @@ const resizerMiddleware = (config) => {
103
103
  });
104
104
  const trim = getTrim(params);
105
105
  if (trim !== undefined) {
106
- pipeline.trim(trim);
106
+ pipeline.trim({
107
+ threshold: trim,
108
+ });
107
109
  }
108
110
  const quality = getQuality(params);
109
111
  switch (params.toFormat) {
package/index.ts CHANGED
@@ -96,7 +96,9 @@ export const resizerMiddleware = (config: Config) => {
96
96
 
97
97
  const trim = getTrim(params);
98
98
  if (trim !== undefined) {
99
- pipeline.trim(trim);
99
+ pipeline.trim({
100
+ threshold: trim,
101
+ });
100
102
  }
101
103
 
102
104
  const quality = getQuality(params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/resizer",
3
- "version": "10.10.1",
3
+ "version": "11.7.0",
4
4
  "main": "index.js",
5
5
  "description": "UXF Resizer",
6
6
  "author": "UXFans <dev@uxf.cz>",
@@ -19,7 +19,7 @@
19
19
  "express": "4.18.2",
20
20
  "path-to-regexp": "6.2.1",
21
21
  "process": "0.11.10",
22
- "sharp": "0.32.6",
22
+ "sharp": "0.33.1",
23
23
  "yargs": "17.7.2"
24
24
  },
25
25
  "devDependencies": {