Comparing version 2.0.2 to 2.1.0
export default JSON.parse(`{ | ||
"res.cloudinary.com": "cloudinary", | ||
"images.ctfassets.net": "contentful", | ||
"cdn.builder.io": "builder.io", | ||
"images.prismic.io": "imgix", | ||
@@ -5,0 +6,0 @@ "www.datocms-assets.com": "imgix", |
import { getImageCdnForUrl } from "./detect.js"; | ||
import { parse as contentful } from "./transformers/contentful.js"; | ||
import { parse as builder } from "./transformers/builder.js"; | ||
import { parse as imgix } from "./transformers/imgix.js"; | ||
@@ -13,2 +14,3 @@ import { parse as shopify } from "./transformers/shopify.js"; | ||
contentful, | ||
"builder.io": builder, | ||
shopify, | ||
@@ -15,0 +17,0 @@ wordpress, |
import { getImageCdnForUrl } from "./detect.js"; | ||
import { transform as contentful } from "./transformers/contentful.js"; | ||
import { transform as builder } from "./transformers/builder.js"; | ||
import { transform as imgix } from "./transformers/imgix.js"; | ||
@@ -13,2 +14,3 @@ import { transform as shopify } from "./transformers/shopify.js"; | ||
contentful, | ||
"builder.io": builder, | ||
shopify, | ||
@@ -15,0 +17,0 @@ wordpress, |
@@ -6,3 +6,3 @@ { | ||
"name": "unpic", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "Universal image CDN translator", | ||
@@ -9,0 +9,0 @@ "license": "MIT", |
@@ -102,2 +102,3 @@ # 🖼 Unpic | ||
- Contentful | ||
- Builder.io | ||
- Cloudinary | ||
@@ -116,3 +117,3 @@ - Shopify | ||
compression, etc. This includes dedicated image CDNs such as Imgix and | ||
Cloudinary, CMSs such as Contentful and Sanity, general CDNs such as Bunny.net | ||
Cloudinary, CMSs such as Contentful, Builder.io and Sanity, general CDNs such as Bunny.net | ||
that provide an image API, but also other service providers such as Shopify. | ||
@@ -119,0 +120,0 @@ The CMSs and other service providers often use a dedicated image CDN to |
@@ -6,2 +6,3 @@ "use strict"; | ||
"images.ctfassets.net": "contentful", | ||
"cdn.builder.io": "builder.io", | ||
"images.prismic.io": "imgix", | ||
@@ -8,0 +9,0 @@ "www.datocms-assets.com": "imgix", |
@@ -6,2 +6,3 @@ "use strict"; | ||
const contentful_js_1 = require("./transformers/contentful.js"); | ||
const builder_js_1 = require("./transformers/builder.js"); | ||
const imgix_js_1 = require("./transformers/imgix.js"); | ||
@@ -17,2 +18,3 @@ const shopify_js_1 = require("./transformers/shopify.js"); | ||
contentful: contentful_js_1.parse, | ||
"builder.io": builder_js_1.parse, | ||
shopify: shopify_js_1.parse, | ||
@@ -19,0 +21,0 @@ wordpress: wordpress_js_1.parse, |
@@ -6,2 +6,3 @@ "use strict"; | ||
const contentful_js_1 = require("./transformers/contentful.js"); | ||
const builder_js_1 = require("./transformers/builder.js"); | ||
const imgix_js_1 = require("./transformers/imgix.js"); | ||
@@ -17,2 +18,3 @@ const shopify_js_1 = require("./transformers/shopify.js"); | ||
contentful: contentful_js_1.transform, | ||
"builder.io": builder_js_1.transform, | ||
shopify: shopify_js_1.transform, | ||
@@ -19,0 +21,0 @@ wordpress: wordpress_js_1.transform, |
@@ -7,2 +7,6 @@ import { ImageCdn, ParsedUrl, UrlParser } from "./types.js"; | ||
}>; | ||
"builder.io": UrlParser<{ | ||
fit?: string | undefined; | ||
quality?: number | undefined; | ||
}>; | ||
shopify: UrlParser<{ | ||
@@ -9,0 +13,0 @@ crop?: string | undefined; |
@@ -5,2 +5,3 @@ import { ImageCdn, UrlTransformer } from "./types.js"; | ||
contentful: UrlTransformer; | ||
"builder.io": UrlTransformer; | ||
shopify: UrlTransformer; | ||
@@ -7,0 +8,0 @@ wordpress: UrlTransformer; |
@@ -48,3 +48,3 @@ /** | ||
} | ||
export declare type ImageCdn = "contentful" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok"; | ||
export declare type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok"; | ||
export declare 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
60357
59
1463
171