ipx 1.0.0-0 → 1.0.0-1

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/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.dd1c1144.cjs');
5
+ const middleware = require('./shared/ipx.3f4cd42a.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.d659cb77.mjs';
3
+ import { c as createIPX, a as createIPXMiddleware } from './shared/ipx.b3753e41.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.dd1c1144.cjs');
3
+ const middleware = require('./shared/ipx.3f4cd42a.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.d659cb77.mjs';
1
+ export { c as createIPX, a as createIPXMiddleware, h as handleRequest } from './shared/ipx.b3753e41.mjs';
2
2
  import 'defu';
3
3
  import 'image-meta';
4
4
  import 'ufo';
@@ -397,7 +397,7 @@ function createIPX(userOptions) {
397
397
  maxAge: getEnv("IPX_MAX_AGE", 300),
398
398
  sharp: {}
399
399
  };
400
- const options = defu(userOptions, defaults);
400
+ const options = defu.defu(userOptions, defaults);
401
401
  options.alias = Object.fromEntries(Object.entries(options.alias).map((e) => [ufo.withLeadingSlash(e[0]), e[1]]));
402
402
  const context = {
403
403
  sources: {}
@@ -1,4 +1,4 @@
1
- import defu from 'defu';
1
+ import { defu } from 'defu';
2
2
  import { imageMeta } from 'image-meta';
3
3
  import { withLeadingSlash, hasProtocol, joinURL, decode } from 'ufo';
4
4
  import { promises } from 'node:fs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ipx",
3
- "version": "1.0.0-0",
3
+ "version": "1.0.0-1",
4
4
  "repository": "unjs/ipx",
5
5
  "license": "MIT",
6
6
  "exports": {