Comparing version 3.9.0 to 3.10.0
declare const _default: { | ||
"/cdn-cgi/image/": string; | ||
"/cdn-cgi/imagedelivery/": string; | ||
"/_next/image": string; | ||
@@ -4,0 +5,0 @@ "/_next/static": string; |
export default { | ||
"/cdn-cgi/image/": "cloudflare", | ||
"/cdn-cgi/imagedelivery/": "cloudflare_images", | ||
"/_next/image": "nextjs", | ||
@@ -4,0 +5,0 @@ "/_next/static": "nextjs", |
@@ -15,6 +15,6 @@ declare const _default: { | ||
keycdn: string[]; | ||
directus: string[]; | ||
imageengine: string[]; | ||
contentstack: string[]; | ||
cloudflare_images: string[]; | ||
}; | ||
export default _default; |
@@ -41,2 +41,3 @@ /// <reference types="node" /> | ||
}>; | ||
cloudflare_images: UrlParser<import("./transformers/cloudflareimages.js").CloudflareImagesParams>; | ||
}; | ||
@@ -43,0 +44,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn; |
@@ -19,2 +19,3 @@ import { getImageCdnForUrl } from "./detect.js"; | ||
import { parse as contentstack } from "./transformers/contentstack.js"; | ||
import { parse as cloudflareImages } from "./transformers/cloudflareimages.js"; | ||
export const parsers = { | ||
@@ -38,2 +39,3 @@ imgix, | ||
contentstack, | ||
"cloudflare_images": cloudflareImages, | ||
}; | ||
@@ -40,0 +42,0 @@ export const cdnIsSupportedForParse = (cdn) => cdn && cdn in parsers; |
@@ -19,2 +19,3 @@ import { getImageCdnForUrl } from "./detect.js"; | ||
import { transform as contentstack } from "./transformers/contentstack.js"; | ||
import { transform as cloudflareImages } from "./transformers/cloudflareimages.js"; | ||
import { getCanonicalCdnForUrl } from "./canonical.js"; | ||
@@ -39,2 +40,3 @@ export const getTransformer = (cdn) => ({ | ||
contentstack, | ||
"cloudflare_images": cloudflareImages, | ||
}[cdn]); | ||
@@ -41,0 +43,0 @@ /** |
@@ -70,3 +70,3 @@ /// <reference types="node" /> | ||
} | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack"; | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images"; | ||
export type SupportedImageCdn = ImageCdn; |
@@ -5,3 +5,3 @@ { | ||
"name": "unpic", | ||
"version": "3.9.0", | ||
"version": "3.10.0", | ||
"description": "Universal image CDN translator", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
declare const _default: { | ||
"/cdn-cgi/image/": string; | ||
"/cdn-cgi/imagedelivery/": string; | ||
"/_next/image": string; | ||
@@ -4,0 +5,0 @@ "/_next/static": string; |
@@ -5,2 +5,3 @@ "use strict"; | ||
"/cdn-cgi/image/": "cloudflare", | ||
"/cdn-cgi/imagedelivery/": "cloudflare_images", | ||
"/_next/image": "nextjs", | ||
@@ -7,0 +8,0 @@ "/_next/static": "nextjs", |
@@ -15,6 +15,6 @@ declare const _default: { | ||
keycdn: string[]; | ||
directus: string[]; | ||
imageengine: string[]; | ||
contentstack: string[]; | ||
cloudflare_images: string[]; | ||
}; | ||
export default _default; |
@@ -41,2 +41,3 @@ /// <reference types="node" /> | ||
}>; | ||
cloudflare_images: UrlParser<import("./transformers/cloudflareimages.js").CloudflareImagesParams>; | ||
}; | ||
@@ -43,0 +44,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn; |
@@ -22,2 +22,3 @@ "use strict"; | ||
const contentstack_js_1 = require("./transformers/contentstack.js"); | ||
const cloudflareimages_js_1 = require("./transformers/cloudflareimages.js"); | ||
exports.parsers = { | ||
@@ -41,2 +42,3 @@ imgix: imgix_js_1.parse, | ||
contentstack: contentstack_js_1.parse, | ||
"cloudflare_images": cloudflareimages_js_1.parse, | ||
}; | ||
@@ -43,0 +45,0 @@ const cdnIsSupportedForParse = (cdn) => cdn && cdn in exports.parsers; |
@@ -22,2 +22,3 @@ "use strict"; | ||
const contentstack_js_1 = require("./transformers/contentstack.js"); | ||
const cloudflareimages_js_1 = require("./transformers/cloudflareimages.js"); | ||
const canonical_js_1 = require("./canonical.js"); | ||
@@ -42,2 +43,3 @@ const getTransformer = (cdn) => ({ | ||
contentstack: contentstack_js_1.transform, | ||
"cloudflare_images": cloudflareimages_js_1.transform, | ||
}[cdn]); | ||
@@ -44,0 +46,0 @@ exports.getTransformer = getTransformer; |
@@ -70,3 +70,3 @@ /// <reference types="node" /> | ||
} | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack"; | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images"; | ||
export type SupportedImageCdn = ImageCdn; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165101
172
4585