Comparing version 3.16.1 to 3.17.0
@@ -13,3 +13,4 @@ declare const _default: { | ||
"images.contentstack.io": string; | ||
"ucarecdn.com": string; | ||
}; | ||
export default _default; |
@@ -12,3 +12,4 @@ export default { | ||
"assets.caisy.io": "bunny", | ||
"images.contentstack.io": "contentstack" | ||
"images.contentstack.io": "contentstack", | ||
"ucarecdn.com": "uploadcare" | ||
}; |
@@ -12,3 +12,4 @@ declare const _default: { | ||
"cloudimg.io": string; | ||
"ucarecdn.com": string; | ||
}; | ||
export default _default; |
@@ -11,3 +11,4 @@ export default { | ||
"imagekit.io": "imagekit", | ||
"cloudimg.io": "cloudimage" | ||
"cloudimg.io": "cloudimage", | ||
"ucarecdn.com": "uploadcare" | ||
}; |
@@ -22,3 +22,4 @@ declare const _default: { | ||
cloudimage: string[]; | ||
uploadcare: string[]; | ||
}; | ||
export default _default; |
@@ -46,2 +46,3 @@ import { ImageCdn, ParsedUrl, UrlParser } from "./types.js"; | ||
imagekit: UrlParser<Record<string, unknown>>; | ||
uploadcare: UrlParser<import("./transformers/uploadcare.js").UploadcareParams>; | ||
}; | ||
@@ -48,0 +49,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn; |
@@ -25,2 +25,3 @@ import { getImageCdnForUrl } from "./detect.js"; | ||
import { parse as imagekit } from "./transformers/imagekit.js"; | ||
import { parse as uploadcare } from "./transformers/uploadcare.js"; | ||
export const parsers = { | ||
@@ -50,2 +51,3 @@ imgix, | ||
imagekit, | ||
uploadcare, | ||
}; | ||
@@ -52,0 +54,0 @@ export const cdnIsSupportedForParse = (cdn) => cdn && cdn in parsers; |
@@ -25,2 +25,3 @@ import { getImageCdnForUrl } from "./detect.js"; | ||
import { transform as imagekit } from "./transformers/imagekit.js"; | ||
import { transform as uploadcare } from "./transformers/uploadcare.js"; | ||
import { getCanonicalCdnForUrl } from "./canonical.js"; | ||
@@ -51,2 +52,3 @@ export const getTransformer = (cdn) => ({ | ||
imagekit, | ||
uploadcare, | ||
}[cdn]); | ||
@@ -53,0 +55,0 @@ /** |
@@ -69,3 +69,3 @@ /** | ||
} | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudimage" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images" | "ipx" | "astro" | "netlify" | "imagekit"; | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudimage" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images" | "ipx" | "astro" | "netlify" | "imagekit" | "uploadcare"; | ||
export type SupportedImageCdn = ImageCdn; |
@@ -5,3 +5,3 @@ { | ||
"name": "unpic", | ||
"version": "3.16.1", | ||
"version": "3.17.0", | ||
"description": "Universal image CDN translator", | ||
@@ -121,2 +121,6 @@ "license": "MIT", | ||
}, | ||
"./transformers/uploadcare": { | ||
"import": "./esm/src/transformers/uploadcare.js", | ||
"require": "./script/src/transformers/uploadcare.js" | ||
}, | ||
"./transformers/directus": { | ||
@@ -123,0 +127,0 @@ "import": "./esm/src/transformers/directus.js", |
@@ -13,3 +13,4 @@ declare const _default: { | ||
"images.contentstack.io": string; | ||
"ucarecdn.com": string; | ||
}; | ||
export default _default; |
@@ -14,3 +14,4 @@ "use strict"; | ||
"assets.caisy.io": "bunny", | ||
"images.contentstack.io": "contentstack" | ||
"images.contentstack.io": "contentstack", | ||
"ucarecdn.com": "uploadcare" | ||
}; |
@@ -12,3 +12,4 @@ declare const _default: { | ||
"cloudimg.io": string; | ||
"ucarecdn.com": string; | ||
}; | ||
export default _default; |
@@ -13,3 +13,4 @@ "use strict"; | ||
"imagekit.io": "imagekit", | ||
"cloudimg.io": "cloudimage" | ||
"cloudimg.io": "cloudimage", | ||
"ucarecdn.com": "uploadcare" | ||
}; |
@@ -22,3 +22,4 @@ declare const _default: { | ||
cloudimage: string[]; | ||
uploadcare: string[]; | ||
}; | ||
export default _default; |
@@ -46,2 +46,3 @@ import { ImageCdn, ParsedUrl, UrlParser } from "./types.js"; | ||
imagekit: UrlParser<Record<string, unknown>>; | ||
uploadcare: UrlParser<import("./transformers/uploadcare.js").UploadcareParams>; | ||
}; | ||
@@ -48,0 +49,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn; |
@@ -28,2 +28,3 @@ "use strict"; | ||
const imagekit_js_1 = require("./transformers/imagekit.js"); | ||
const uploadcare_js_1 = require("./transformers/uploadcare.js"); | ||
exports.parsers = { | ||
@@ -53,2 +54,3 @@ imgix: imgix_js_1.parse, | ||
imagekit: imagekit_js_1.parse, | ||
uploadcare: uploadcare_js_1.parse, | ||
}; | ||
@@ -55,0 +57,0 @@ const cdnIsSupportedForParse = (cdn) => cdn && cdn in exports.parsers; |
@@ -28,2 +28,3 @@ "use strict"; | ||
const imagekit_js_1 = require("./transformers/imagekit.js"); | ||
const uploadcare_js_1 = require("./transformers/uploadcare.js"); | ||
const canonical_js_1 = require("./canonical.js"); | ||
@@ -54,2 +55,3 @@ const getTransformer = (cdn) => ({ | ||
imagekit: imagekit_js_1.transform, | ||
uploadcare: uploadcare_js_1.transform, | ||
}[cdn]); | ||
@@ -56,0 +58,0 @@ exports.getTransformer = getTransformer; |
@@ -69,3 +69,3 @@ /** | ||
} | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudimage" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images" | "ipx" | "astro" | "netlify" | "imagekit"; | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudimage" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images" | "ipx" | "astro" | "netlify" | "imagekit" | "uploadcare"; | ||
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
223058
208
6112