Comparing version 3.7.0 to 3.8.0
@@ -9,3 +9,4 @@ declare const _default: { | ||
"kxcdn.com": string; | ||
"imgeng.in": string; | ||
}; | ||
export default _default; |
@@ -8,3 +8,4 @@ export default { | ||
"cloudinary.com": "cloudinary", | ||
"kxcdn.com": "keycdn" | ||
"kxcdn.com": "keycdn", | ||
"imgeng.in": "imageengine" | ||
}; |
@@ -16,3 +16,4 @@ declare const _default: { | ||
directus: string[]; | ||
imageengine: string[]; | ||
}; | ||
export default _default; |
@@ -37,2 +37,3 @@ /// <reference types="node" /> | ||
directus: UrlParser<import("./transformers/directus.js").DirectusParams>; | ||
imageengine: UrlParser<import("./transformers/imageengine.js").ImageEngineParams>; | ||
}; | ||
@@ -39,0 +40,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn; |
@@ -17,2 +17,3 @@ import { getImageCdnForUrl } from "./detect.js"; | ||
import { parse as directus } from "./transformers/directus.js"; | ||
import { parse as imageengine } from "./transformers/imageengine.js"; | ||
export const parsers = { | ||
@@ -34,2 +35,3 @@ imgix, | ||
directus, | ||
imageengine | ||
}; | ||
@@ -36,0 +38,0 @@ export const cdnIsSupportedForParse = (cdn) => cdn && cdn in parsers; |
@@ -17,2 +17,3 @@ import { getImageCdnForUrl } from "./detect.js"; | ||
import { transform as directus } from "./transformers/directus.js"; | ||
import { transform as imageengine } from "./transformers/imageengine.js"; | ||
import { getCanonicalCdnForUrl } from "./canonical.js"; | ||
@@ -35,2 +36,3 @@ export const getTransformer = (cdn) => ({ | ||
directus, | ||
imageengine, | ||
}[cdn]); | ||
@@ -37,0 +39,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"; | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine"; | ||
export type SupportedImageCdn = ImageCdn; |
@@ -5,3 +5,3 @@ { | ||
"name": "unpic", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"description": "Universal image CDN translator", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -9,3 +9,4 @@ declare const _default: { | ||
"kxcdn.com": string; | ||
"imgeng.in": string; | ||
}; | ||
export default _default; |
@@ -10,3 +10,4 @@ "use strict"; | ||
"cloudinary.com": "cloudinary", | ||
"kxcdn.com": "keycdn" | ||
"kxcdn.com": "keycdn", | ||
"imgeng.in": "imageengine" | ||
}; |
@@ -16,3 +16,4 @@ declare const _default: { | ||
directus: string[]; | ||
imageengine: string[]; | ||
}; | ||
export default _default; |
@@ -37,2 +37,3 @@ /// <reference types="node" /> | ||
directus: UrlParser<import("./transformers/directus.js").DirectusParams>; | ||
imageengine: UrlParser<import("./transformers/imageengine.js").ImageEngineParams>; | ||
}; | ||
@@ -39,0 +40,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn; |
@@ -20,2 +20,3 @@ "use strict"; | ||
const directus_js_1 = require("./transformers/directus.js"); | ||
const imageengine_js_1 = require("./transformers/imageengine.js"); | ||
exports.parsers = { | ||
@@ -37,2 +38,3 @@ imgix: imgix_js_1.parse, | ||
directus: directus_js_1.parse, | ||
imageengine: imageengine_js_1.parse | ||
}; | ||
@@ -39,0 +41,0 @@ const cdnIsSupportedForParse = (cdn) => cdn && cdn in exports.parsers; |
@@ -20,2 +20,3 @@ "use strict"; | ||
const directus_js_1 = require("./transformers/directus.js"); | ||
const imageengine_js_1 = require("./transformers/imageengine.js"); | ||
const canonical_js_1 = require("./canonical.js"); | ||
@@ -38,2 +39,3 @@ const getTransformer = (cdn) => ({ | ||
directus: directus_js_1.transform, | ||
imageengine: imageengine_js_1.transform, | ||
}[cdn]); | ||
@@ -40,0 +42,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"; | ||
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine"; | ||
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
154727
160
4312