ipx 3.0.0 → 3.0.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/dist/cli.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const listhen = require('listhen');
|
|
4
4
|
const citty = require('citty');
|
|
5
5
|
const cli = require('listhen/cli');
|
|
6
|
-
const nodeFs = require('./shared/ipx.
|
|
6
|
+
const nodeFs = require('./shared/ipx.f2a173e6.cjs');
|
|
7
7
|
require('defu');
|
|
8
8
|
require('ufo');
|
|
9
9
|
require('h3');
|
|
@@ -15,7 +15,7 @@ require('ofetch');
|
|
|
15
15
|
require('pathe');
|
|
16
16
|
|
|
17
17
|
const name = "ipx";
|
|
18
|
-
const version = "3.0.0";
|
|
18
|
+
const version = "3.0.1-0";
|
|
19
19
|
const description = "High performance, secure and easy-to-use image optimizer.";
|
|
20
20
|
|
|
21
21
|
const serve = citty.defineCommand({
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { listen } from 'listhen';
|
|
2
2
|
import { defineCommand, runMain } from 'citty';
|
|
3
3
|
import { getArgs, parseArgs } from 'listhen/cli';
|
|
4
|
-
import { c as createIPX, g as ipxFSStorage, i as ipxHttpStorage, e as createIPXNodeServer } from './shared/ipx.
|
|
4
|
+
import { c as createIPX, g as ipxFSStorage, i as ipxHttpStorage, e as createIPXNodeServer } from './shared/ipx.90a2d420.mjs';
|
|
5
5
|
import 'defu';
|
|
6
6
|
import 'ufo';
|
|
7
7
|
import 'h3';
|
|
@@ -13,7 +13,7 @@ import 'ofetch';
|
|
|
13
13
|
import 'pathe';
|
|
14
14
|
|
|
15
15
|
const name = "ipx";
|
|
16
|
-
const version = "3.0.0";
|
|
16
|
+
const version = "3.0.1-0";
|
|
17
17
|
const description = "High performance, secure and easy-to-use image optimizer.";
|
|
18
18
|
|
|
19
19
|
const serve = defineCommand({
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as createIPX, b as createIPXH3App, a as createIPXH3Handler, e as createIPXNodeServer, f as createIPXPlainServer, d as createIPXWebServer, g as ipxFSStorage, i as ipxHttpStorage } from './shared/ipx.
|
|
1
|
+
export { c as createIPX, b as createIPXH3App, a as createIPXH3Handler, e as createIPXNodeServer, f as createIPXPlainServer, d as createIPXWebServer, g as ipxFSStorage, i as ipxHttpStorage } from './shared/ipx.90a2d420.mjs';
|
|
2
2
|
import { createError } from 'h3';
|
|
3
3
|
import 'defu';
|
|
4
4
|
import 'ufo';
|
|
@@ -633,7 +633,7 @@ function ipxHttpStorage(_options = {}) {
|
|
|
633
633
|
}
|
|
634
634
|
function parseResponse(response) {
|
|
635
635
|
let maxAge = defaultMaxAge;
|
|
636
|
-
if (_options.ignoreCacheControl) {
|
|
636
|
+
if (_options.ignoreCacheControl !== true) {
|
|
637
637
|
const _cacheControl = response.headers.get("cache-control");
|
|
638
638
|
if (_cacheControl) {
|
|
639
639
|
const m = _cacheControl.match(/max-age=(\d+)/);
|
|
@@ -640,7 +640,7 @@ function ipxHttpStorage(_options = {}) {
|
|
|
640
640
|
}
|
|
641
641
|
function parseResponse(response) {
|
|
642
642
|
let maxAge = defaultMaxAge;
|
|
643
|
-
if (_options.ignoreCacheControl) {
|
|
643
|
+
if (_options.ignoreCacheControl !== true) {
|
|
644
644
|
const _cacheControl = response.headers.get("cache-control");
|
|
645
645
|
if (_cacheControl) {
|
|
646
646
|
const m = _cacheControl.match(/max-age=(\d+)/);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ipx",
|
|
3
|
-
"version": "3.0.0",
|
|
3
|
+
"version": "3.0.1-0",
|
|
4
4
|
"repository": "unjs/ipx",
|
|
5
5
|
"description": "High performance, secure and easy-to-use image optimizer.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,30 +43,30 @@
|
|
|
43
43
|
"defu": "^6.1.4",
|
|
44
44
|
"destr": "^2.0.2",
|
|
45
45
|
"etag": "^1.8.1",
|
|
46
|
-
"h3": "^1.10.
|
|
46
|
+
"h3": "^1.10.1",
|
|
47
47
|
"image-meta": "^0.2.0",
|
|
48
|
-
"listhen": "^1.
|
|
48
|
+
"listhen": "^1.6.0",
|
|
49
49
|
"ofetch": "^1.3.3",
|
|
50
50
|
"pathe": "^1.1.2",
|
|
51
|
-
"sharp": "^0.33.
|
|
51
|
+
"sharp": "^0.33.2",
|
|
52
52
|
"svgo": "^3.2.0",
|
|
53
|
-
"ufo": "^1.
|
|
53
|
+
"ufo": "^1.4.0",
|
|
54
54
|
"unstorage": "^1.10.1",
|
|
55
55
|
"xss": "^1.0.14"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/etag": "^1.8.3",
|
|
59
59
|
"@types/is-valid-path": "^0.1.2",
|
|
60
|
-
"@vitest/coverage-v8": "^1.
|
|
60
|
+
"@vitest/coverage-v8": "^1.2.2",
|
|
61
61
|
"changelogen": "^0.5.5",
|
|
62
62
|
"eslint": "^8.56.0",
|
|
63
63
|
"eslint-config-unjs": "^0.2.1",
|
|
64
64
|
"jiti": "^1.21.0",
|
|
65
|
-
"prettier": "^3.
|
|
65
|
+
"prettier": "^3.2.5",
|
|
66
66
|
"serve-handler": "^6.1.5",
|
|
67
67
|
"typescript": "^5.3.3",
|
|
68
68
|
"unbuild": "^2.0.0",
|
|
69
|
-
"vitest": "^1.
|
|
69
|
+
"vitest": "^1.2.2"
|
|
70
70
|
},
|
|
71
|
-
"packageManager": "pnpm@8.
|
|
71
|
+
"packageManager": "pnpm@8.15.2"
|
|
72
72
|
}
|