Comparing version 3.12.0 to 3.13.0
@@ -10,3 +10,4 @@ declare const _default: { | ||
"imgeng.in": string; | ||
"imagekit.io": string; | ||
}; | ||
export default _default; |
@@ -9,3 +9,4 @@ export default { | ||
"kxcdn.com": "keycdn", | ||
"imgeng.in": "imageengine" | ||
"imgeng.in": "imageengine", | ||
"imagekit.io": "imagekit" | ||
}; |
@@ -20,3 +20,4 @@ declare const _default: { | ||
netlify: string[]; | ||
imagekit: string[]; | ||
}; | ||
export default _default; |
@@ -43,2 +43,3 @@ import { ImageCdn, ParsedUrl, UrlParser } from "./types.js"; | ||
netlify: UrlParser<Record<string, unknown>>; | ||
imagekit: UrlParser<Record<string, unknown>>; | ||
}; | ||
@@ -45,0 +46,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn; |
@@ -22,2 +22,3 @@ import { getImageCdnForUrl } from "./detect.js"; | ||
import { parse as netlify } from "./transformers/netlify.js"; | ||
import { parse as imagekit } from "./transformers/imagekit.js"; | ||
export const parsers = { | ||
@@ -44,2 +45,3 @@ imgix, | ||
netlify, | ||
imagekit | ||
}; | ||
@@ -46,0 +48,0 @@ export const cdnIsSupportedForParse = (cdn) => cdn && cdn in parsers; |
@@ -22,2 +22,3 @@ import { getImageCdnForUrl } from "./detect.js"; | ||
import { transform as netlify } from "./transformers/netlify.js"; | ||
import { transform as imagekit } from "./transformers/imagekit.js"; | ||
import { getCanonicalCdnForUrl } from "./canonical.js"; | ||
@@ -45,2 +46,3 @@ export const getTransformer = (cdn) => ({ | ||
netlify, | ||
imagekit | ||
}[cdn]); | ||
@@ -47,0 +49,0 @@ /** |
@@ -69,3 +69,3 @@ /** | ||
} | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images" | "ipx" | "netlify"; | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images" | "ipx" | "netlify" | "imagekit"; | ||
export type SupportedImageCdn = ImageCdn; |
@@ -5,3 +5,3 @@ { | ||
"name": "unpic", | ||
"version": "3.12.0", | ||
"version": "3.13.0", | ||
"description": "Universal image CDN translator", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -10,3 +10,4 @@ declare const _default: { | ||
"imgeng.in": string; | ||
"imagekit.io": string; | ||
}; | ||
export default _default; |
@@ -11,3 +11,4 @@ "use strict"; | ||
"kxcdn.com": "keycdn", | ||
"imgeng.in": "imageengine" | ||
"imgeng.in": "imageengine", | ||
"imagekit.io": "imagekit" | ||
}; |
@@ -20,3 +20,4 @@ declare const _default: { | ||
netlify: string[]; | ||
imagekit: string[]; | ||
}; | ||
export default _default; |
@@ -43,2 +43,3 @@ import { ImageCdn, ParsedUrl, UrlParser } from "./types.js"; | ||
netlify: UrlParser<Record<string, unknown>>; | ||
imagekit: UrlParser<Record<string, unknown>>; | ||
}; | ||
@@ -45,0 +46,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn; |
@@ -25,2 +25,3 @@ "use strict"; | ||
const netlify_js_1 = require("./transformers/netlify.js"); | ||
const imagekit_js_1 = require("./transformers/imagekit.js"); | ||
exports.parsers = { | ||
@@ -47,2 +48,3 @@ imgix: imgix_js_1.parse, | ||
netlify: netlify_js_1.parse, | ||
imagekit: imagekit_js_1.parse | ||
}; | ||
@@ -49,0 +51,0 @@ const cdnIsSupportedForParse = (cdn) => cdn && cdn in exports.parsers; |
@@ -25,2 +25,3 @@ "use strict"; | ||
const netlify_js_1 = require("./transformers/netlify.js"); | ||
const imagekit_js_1 = require("./transformers/imagekit.js"); | ||
const canonical_js_1 = require("./canonical.js"); | ||
@@ -48,2 +49,3 @@ const getTransformer = (cdn) => ({ | ||
netlify: netlify_js_1.transform, | ||
imagekit: imagekit_js_1.transform | ||
}[cdn]); | ||
@@ -50,0 +52,0 @@ exports.getTransformer = getTransformer; |
@@ -69,3 +69,3 @@ /** | ||
} | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images" | "ipx" | "netlify"; | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack" | "cloudflare_images" | "ipx" | "netlify" | "imagekit"; | ||
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
182935
190
5121