@astrojs/cloudflare 12.5.1 → 12.5.3
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { joinPaths } from "@astrojs/internal-helpers/path";
|
|
2
2
|
import { baseService } from "astro/assets";
|
|
3
|
-
import { isESMImportedImage
|
|
3
|
+
import { isESMImportedImage } from "astro/assets/utils";
|
|
4
|
+
import { isRemoteAllowed } from "../utils/assets.js";
|
|
4
5
|
const service = {
|
|
5
6
|
...baseService,
|
|
6
7
|
getURL: (options, imageConfig) => {
|
package/dist/utils/assets.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { AstroConfig
|
|
2
|
-
export declare function isESMImportedImage(src: ImageMetadata | string): src is ImageMetadata;
|
|
1
|
+
import type { AstroConfig } from 'astro';
|
|
3
2
|
export declare function isRemoteAllowed(src: string, { domains, remotePatterns, }: Partial<Pick<AstroConfig['image'], 'domains' | 'remotePatterns'>>): boolean;
|
package/dist/utils/assets.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { isRemotePath } from "@astrojs/internal-helpers/path";
|
|
2
|
-
function isESMImportedImage(src) {
|
|
3
|
-
return typeof src === "object";
|
|
4
|
-
}
|
|
5
2
|
function matchHostname(url, hostname, allowWildcard) {
|
|
6
3
|
if (!hostname) {
|
|
7
4
|
return true;
|
|
@@ -56,6 +53,5 @@ function isRemoteAllowed(src, {
|
|
|
56
53
|
return domains.some((domain) => matchHostname(url, domain)) || remotePatterns.some((remotePattern) => matchPattern(url, remotePattern));
|
|
57
54
|
}
|
|
58
55
|
export {
|
|
59
|
-
isESMImportedImage,
|
|
60
56
|
isRemoteAllowed
|
|
61
57
|
};
|
|
@@ -12,7 +12,7 @@ export declare function setImageConfig(service: string, config: AstroConfig['ima
|
|
|
12
12
|
hostname?: string | undefined;
|
|
13
13
|
pathname?: string | undefined;
|
|
14
14
|
}[];
|
|
15
|
-
experimentalLayout?: "none" | "fixed" | "
|
|
15
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
16
16
|
experimentalObjectFit?: string | undefined;
|
|
17
17
|
experimentalObjectPosition?: string | undefined;
|
|
18
18
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -28,7 +28,7 @@ export declare function setImageConfig(service: string, config: AstroConfig['ima
|
|
|
28
28
|
hostname?: string | undefined;
|
|
29
29
|
pathname?: string | undefined;
|
|
30
30
|
}[];
|
|
31
|
-
experimentalLayout?: "none" | "fixed" | "
|
|
31
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
32
32
|
experimentalObjectFit?: string | undefined;
|
|
33
33
|
experimentalObjectPosition?: string | undefined;
|
|
34
34
|
experimentalBreakpoints?: number[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/cloudflare",
|
|
3
3
|
"description": "Deploy your site to Cloudflare Workers/Pages",
|
|
4
|
-
"version": "12.5.
|
|
4
|
+
"version": "12.5.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cloudflare/workers-types": "^4.
|
|
33
|
-
"tinyglobby": "^0.2.
|
|
34
|
-
"vite": "^6.
|
|
35
|
-
"wrangler": "^4.
|
|
32
|
+
"@cloudflare/workers-types": "^4.20250507.0",
|
|
33
|
+
"tinyglobby": "^0.2.13",
|
|
34
|
+
"vite": "^6.3.5",
|
|
35
|
+
"wrangler": "^4.14.1",
|
|
36
36
|
"@astrojs/internal-helpers": "0.6.1",
|
|
37
37
|
"@astrojs/underscore-redirects": "0.6.1"
|
|
38
38
|
},
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"cheerio": "1.0.0",
|
|
44
44
|
"devalue": "^5.1.1",
|
|
45
45
|
"execa": "^8.0.1",
|
|
46
|
-
"rollup": "^4.
|
|
47
|
-
"astro
|
|
48
|
-
"astro": "
|
|
46
|
+
"rollup": "^4.40.2",
|
|
47
|
+
"astro": "5.7.13",
|
|
48
|
+
"astro-scripts": "0.0.14"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"provenance": true
|