ipx 1.0.1 → 1.1.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/README.md CHANGED
@@ -68,6 +68,7 @@ Resize to `200x200px` using `embed` method and change format to `webp`:
68
68
  | flop | [Docs](https://sharp.pixelplumbing.com/api-operation#flop) | `http://localhost:3000/flop/buffalo.png` |
69
69
  | sharpen | [Docs](https://sharp.pixelplumbing.com/api-operation#sharpen) | `http://localhost:3000/sharpen_30/buffalo.png` |
70
70
  | median | [Docs](https://sharp.pixelplumbing.com/api-operation#median) | `http://localhost:3000/median_10/buffalo.png` |
71
+ | blur | [Docs](https://sharp.pixelplumbing.com/api-operation#blur) | `http://localhost:3000/blur_5/buffalo.png` |
71
72
  | gamma | [Docs](https://sharp.pixelplumbing.com/api-operation#gamma) | `http://localhost:3000/gamma_3/buffalo.png` |
72
73
  | negate | [Docs](https://sharp.pixelplumbing.com/api-operation#negate) | `http://localhost:3000/negate/buffalo.png` |
73
74
  | normalize | [Docs](https://sharp.pixelplumbing.com/api-operation#normalize) | `http://localhost:3000/normalize/buffalo.png` |
package/dist/cli.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const consola = require('consola');
4
4
  const listhen = require('listhen');
5
- const middleware = require('./shared/ipx.b2d1c1dd.cjs');
5
+ const middleware = require('./shared/ipx.e9f7a9b5.cjs');
6
6
  require('defu');
7
7
  require('image-meta');
8
8
  require('ufo');
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import consola from 'consola';
2
2
  import { listen } from 'listhen';
3
- import { c as createIPX, a as createIPXMiddleware } from './shared/ipx.5d237d4e.mjs';
3
+ import { c as createIPX, a as createIPXMiddleware } from './shared/ipx.cc3515c9.mjs';
4
4
  import 'defu';
5
5
  import 'image-meta';
6
6
  import 'ufo';
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const middleware = require('./shared/ipx.b2d1c1dd.cjs');
3
+ const middleware = require('./shared/ipx.e9f7a9b5.cjs');
4
4
  require('defu');
5
5
  require('image-meta');
6
6
  require('ufo');
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as createIPX, a as createIPXMiddleware, h as handleRequest } from './shared/ipx.5d237d4e.mjs';
1
+ export { c as createIPX, a as createIPXMiddleware, h as handleRequest } from './shared/ipx.cc3515c9.mjs';
2
2
  import 'defu';
3
3
  import 'image-meta';
4
4
  import 'ufo';
@@ -336,8 +336,8 @@ const median = {
336
336
  };
337
337
  const blur = {
338
338
  args: [VArg, VArg, VArg],
339
- apply: (_context, pipe) => {
340
- return pipe.blur();
339
+ apply: (_context, pipe, sigma) => {
340
+ return pipe.blur(sigma);
341
341
  }
342
342
  };
343
343
  const flatten = {
@@ -346,8 +346,8 @@ const median = {
346
346
  };
347
347
  const blur = {
348
348
  args: [VArg, VArg, VArg],
349
- apply: (_context, pipe) => {
350
- return pipe.blur();
349
+ apply: (_context, pipe, sigma) => {
350
+ return pipe.blur(sigma);
351
351
  }
352
352
  };
353
353
  const flatten = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ipx",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "repository": "unjs/ipx",
5
5
  "license": "MIT",
6
6
  "exports": {
@@ -28,7 +28,7 @@
28
28
  "test": "pnpm lint && vitest run --coverage"
29
29
  },
30
30
  "dependencies": {
31
- "consola": "^3.0.1",
31
+ "consola": "^3.1.0",
32
32
  "defu": "^6.1.2",
33
33
  "destr": "^1.2.2",
34
34
  "etag": "^1.8.1",
@@ -36,25 +36,24 @@
36
36
  "listhen": "^1.0.4",
37
37
  "node-fetch-native": "^1.1.0",
38
38
  "pathe": "^1.1.0",
39
- "sharp": "^0.32.0",
40
- "ufo": "^1.1.1",
39
+ "sharp": "^0.32.1",
40
+ "ufo": "^1.1.2",
41
41
  "xss": "^1.0.14"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/etag": "^1.8.1",
45
45
  "@types/is-valid-path": "^0.1.0",
46
- "@types/sharp": "^0.31.1",
47
- "@vitest/coverage-c8": "^0.30.1",
48
- "changelogen": "^0.5.2",
49
- "eslint": "^8.38.0",
46
+ "@vitest/coverage-c8": "^0.31.0",
47
+ "changelogen": "^0.5.3",
48
+ "eslint": "^8.39.0",
50
49
  "eslint-config-unjs": "^0.1.0",
51
50
  "jiti": "^1.18.2",
52
51
  "nodemon": "^2.0.22",
53
- "prettier": "^2.8.7",
52
+ "prettier": "^2.8.8",
54
53
  "serve-handler": "^6.1.5",
55
54
  "typescript": "^5.0.4",
56
- "unbuild": "^1.2.0",
57
- "vitest": "^0.30.1"
55
+ "unbuild": "^1.2.1",
56
+ "vitest": "^0.31.0"
58
57
  },
59
- "packageManager": "pnpm@8.2.0"
58
+ "packageManager": "pnpm@8.4.0"
60
59
  }