Comparing version 3.13.0 to 3.14.0
@@ -40,3 +40,3 @@ import { ImageCdn, ParsedUrl, UrlParser } from "./types.js"; | ||
}>; | ||
cloudflare_images: UrlParser<import("./transformers/cloudflareimages.js").CloudflareImagesParams>; | ||
cloudflare_images: UrlParser<import("./transformers/cloudflare_images.js").CloudflareImagesParams>; | ||
ipx: UrlParser<Record<string, unknown>>; | ||
@@ -43,0 +43,0 @@ netlify: UrlParser<Record<string, unknown>>; |
import { getImageCdnForUrl } from "./detect.js"; | ||
import { parse as contentful } from "./transformers/contentful.js"; | ||
import { parse as builder } from "./transformers/builder.js"; | ||
import { parse as builder } from "./transformers/builder.io.js"; | ||
import { parse as imgix } from "./transformers/imgix.js"; | ||
@@ -11,3 +11,3 @@ import { parse as shopify } from "./transformers/shopify.js"; | ||
import { parse as storyblok } from "./transformers/storyblok.js"; | ||
import { parse as kontentai } from "./transformers/kontentai.js"; | ||
import { parse as kontentai } from "./transformers/kontent.ai.js"; | ||
import { parse as vercel } from "./transformers/vercel.js"; | ||
@@ -20,3 +20,3 @@ import { parse as nextjs } from "./transformers/nextjs.js"; | ||
import { parse as contentstack } from "./transformers/contentstack.js"; | ||
import { parse as cloudflareImages } from "./transformers/cloudflareimages.js"; | ||
import { parse as cloudflareImages } from "./transformers/cloudflare_images.js"; | ||
import { parse as ipx } from "./transformers/ipx.js"; | ||
@@ -46,3 +46,3 @@ import { parse as netlify } from "./transformers/netlify.js"; | ||
netlify, | ||
imagekit | ||
imagekit, | ||
}; | ||
@@ -49,0 +49,0 @@ export const cdnIsSupportedForParse = (cdn) => cdn && cdn in parsers; |
import { getImageCdnForUrl } from "./detect.js"; | ||
import { transform as contentful } from "./transformers/contentful.js"; | ||
import { transform as builder } from "./transformers/builder.js"; | ||
import { transform as builderio } from "./transformers/builder.io.js"; | ||
import { transform as imgix } from "./transformers/imgix.js"; | ||
@@ -11,3 +11,3 @@ import { transform as shopify } from "./transformers/shopify.js"; | ||
import { transform as storyblok } from "./transformers/storyblok.js"; | ||
import { transform as kontentai } from "./transformers/kontentai.js"; | ||
import { transform as kontentai } from "./transformers/kontent.ai.js"; | ||
import { transform as vercel } from "./transformers/vercel.js"; | ||
@@ -20,3 +20,3 @@ import { transform as nextjs } from "./transformers/nextjs.js"; | ||
import { transform as contentstack } from "./transformers/contentstack.js"; | ||
import { transform as cloudflareImages } from "./transformers/cloudflareimages.js"; | ||
import { transform as cloudflareImages } from "./transformers/cloudflare_images.js"; | ||
import { transform as ipx } from "./transformers/ipx.js"; | ||
@@ -29,3 +29,3 @@ import { transform as netlify } from "./transformers/netlify.js"; | ||
contentful, | ||
"builder.io": builder, | ||
"builder.io": builderio, | ||
shopify, | ||
@@ -48,3 +48,3 @@ wordpress, | ||
netlify, | ||
imagekit | ||
imagekit, | ||
}[cdn]); | ||
@@ -51,0 +51,0 @@ /** |
@@ -47,3 +47,3 @@ import { setParamIfDefined, setParamIfUndefined, toCanonicalUrlString, toUrl, } from "../utils.js"; | ||
setParamIfDefined(url, "fm", format); | ||
setParamIfUndefined(url, "fit", "crop"); | ||
setParamIfUndefined(url, "fit", "cover"); | ||
url.searchParams.set("url", base.toString()); | ||
@@ -50,0 +50,0 @@ return toCanonicalUrlString(url); |
@@ -5,6 +5,7 @@ { | ||
"name": "unpic", | ||
"version": "3.13.0", | ||
"version": "3.14.0", | ||
"description": "Universal image CDN translator", | ||
"license": "MIT", | ||
"homepage": "https://unpic.pics/lib", | ||
"sideEffects": false, | ||
"repository": { | ||
@@ -27,2 +28,90 @@ "type": "git", | ||
"require": "./script/mod.js" | ||
}, | ||
"./detect": { | ||
"import": "./esm/src/detect.js", | ||
"require": "./script/src/detect.js" | ||
}, | ||
"./transformers/builder.io": { | ||
"import": "./esm/src/transformers/builder.io.js", | ||
"require": "./script/src/transformers/builder.io.js" | ||
}, | ||
"./transformers/imageengine": { | ||
"import": "./esm/src/transformers/imageengine.js", | ||
"require": "./script/src/transformers/imageengine.js" | ||
}, | ||
"./transformers/wordpress": { | ||
"import": "./esm/src/transformers/wordpress.js", | ||
"require": "./script/src/transformers/wordpress.js" | ||
}, | ||
"./transformers/nextjs": { | ||
"import": "./esm/src/transformers/nextjs.js", | ||
"require": "./script/src/transformers/nextjs.js" | ||
}, | ||
"./transformers/vercel": { | ||
"import": "./esm/src/transformers/vercel.js", | ||
"require": "./script/src/transformers/vercel.js" | ||
}, | ||
"./transformers/imgix": { | ||
"import": "./esm/src/transformers/imgix.js", | ||
"require": "./script/src/transformers/imgix.js" | ||
}, | ||
"./transformers/storyblok": { | ||
"import": "./esm/src/transformers/storyblok.js", | ||
"require": "./script/src/transformers/storyblok.js" | ||
}, | ||
"./transformers/contentstack": { | ||
"import": "./esm/src/transformers/contentstack.js", | ||
"require": "./script/src/transformers/contentstack.js" | ||
}, | ||
"./transformers/scene7": { | ||
"import": "./esm/src/transformers/scene7.js", | ||
"require": "./script/src/transformers/scene7.js" | ||
}, | ||
"./transformers/ipx": { | ||
"import": "./esm/src/transformers/ipx.js", | ||
"require": "./script/src/transformers/ipx.js" | ||
}, | ||
"./transformers/bunny": { | ||
"import": "./esm/src/transformers/bunny.js", | ||
"require": "./script/src/transformers/bunny.js" | ||
}, | ||
"./transformers/cloudflare": { | ||
"import": "./esm/src/transformers/cloudflare.js", | ||
"require": "./script/src/transformers/cloudflare.js" | ||
}, | ||
"./transformers/cloudinary": { | ||
"import": "./esm/src/transformers/cloudinary.js", | ||
"require": "./script/src/transformers/cloudinary.js" | ||
}, | ||
"./transformers/imagekit": { | ||
"import": "./esm/src/transformers/imagekit.js", | ||
"require": "./script/src/transformers/imagekit.js" | ||
}, | ||
"./transformers/cloudflare_images": { | ||
"import": "./esm/src/transformers/cloudflare_images.js", | ||
"require": "./script/src/transformers/cloudflare_images.js" | ||
}, | ||
"./transformers/kontent.ai": { | ||
"import": "./esm/src/transformers/kontent.ai.js", | ||
"require": "./script/src/transformers/kontent.ai.js" | ||
}, | ||
"./transformers/directus": { | ||
"import": "./esm/src/transformers/directus.js", | ||
"require": "./script/src/transformers/directus.js" | ||
}, | ||
"./transformers/netlify": { | ||
"import": "./esm/src/transformers/netlify.js", | ||
"require": "./script/src/transformers/netlify.js" | ||
}, | ||
"./transformers/contentful": { | ||
"import": "./esm/src/transformers/contentful.js", | ||
"require": "./script/src/transformers/contentful.js" | ||
}, | ||
"./transformers/shopify": { | ||
"import": "./esm/src/transformers/shopify.js", | ||
"require": "./script/src/transformers/shopify.js" | ||
}, | ||
"./transformers/keycdn": { | ||
"import": "./esm/src/transformers/keycdn.js", | ||
"require": "./script/src/transformers/keycdn.js" | ||
} | ||
@@ -29,0 +118,0 @@ }, |
@@ -40,3 +40,3 @@ import { ImageCdn, ParsedUrl, UrlParser } from "./types.js"; | ||
}>; | ||
cloudflare_images: UrlParser<import("./transformers/cloudflareimages.js").CloudflareImagesParams>; | ||
cloudflare_images: UrlParser<import("./transformers/cloudflare_images.js").CloudflareImagesParams>; | ||
ipx: UrlParser<Record<string, unknown>>; | ||
@@ -43,0 +43,0 @@ netlify: UrlParser<Record<string, unknown>>; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const contentful_js_1 = require("./transformers/contentful.js"); | ||
const builder_js_1 = require("./transformers/builder.js"); | ||
const builder_io_js_1 = require("./transformers/builder.io.js"); | ||
const imgix_js_1 = require("./transformers/imgix.js"); | ||
@@ -15,3 +15,3 @@ const shopify_js_1 = require("./transformers/shopify.js"); | ||
const storyblok_js_1 = require("./transformers/storyblok.js"); | ||
const kontentai_js_1 = require("./transformers/kontentai.js"); | ||
const kontent_ai_js_1 = require("./transformers/kontent.ai.js"); | ||
const vercel_js_1 = require("./transformers/vercel.js"); | ||
@@ -24,3 +24,3 @@ const nextjs_js_1 = require("./transformers/nextjs.js"); | ||
const contentstack_js_1 = require("./transformers/contentstack.js"); | ||
const cloudflareimages_js_1 = require("./transformers/cloudflareimages.js"); | ||
const cloudflare_images_js_1 = require("./transformers/cloudflare_images.js"); | ||
const ipx_js_1 = require("./transformers/ipx.js"); | ||
@@ -32,3 +32,3 @@ const netlify_js_1 = require("./transformers/netlify.js"); | ||
contentful: contentful_js_1.parse, | ||
"builder.io": builder_js_1.parse, | ||
"builder.io": builder_io_js_1.parse, | ||
shopify: shopify_js_1.parse, | ||
@@ -40,3 +40,3 @@ wordpress: wordpress_js_1.parse, | ||
storyblok: storyblok_js_1.parse, | ||
"kontent.ai": kontentai_js_1.parse, | ||
"kontent.ai": kontent_ai_js_1.parse, | ||
vercel: vercel_js_1.parse, | ||
@@ -49,6 +49,6 @@ nextjs: nextjs_js_1.parse, | ||
contentstack: contentstack_js_1.parse, | ||
"cloudflare_images": cloudflareimages_js_1.parse, | ||
"cloudflare_images": cloudflare_images_js_1.parse, | ||
ipx: ipx_js_1.parse, | ||
netlify: netlify_js_1.parse, | ||
imagekit: imagekit_js_1.parse | ||
imagekit: imagekit_js_1.parse, | ||
}; | ||
@@ -55,0 +55,0 @@ const cdnIsSupportedForParse = (cdn) => cdn && cdn in exports.parsers; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const contentful_js_1 = require("./transformers/contentful.js"); | ||
const builder_js_1 = require("./transformers/builder.js"); | ||
const builder_io_js_1 = require("./transformers/builder.io.js"); | ||
const imgix_js_1 = require("./transformers/imgix.js"); | ||
@@ -15,3 +15,3 @@ const shopify_js_1 = require("./transformers/shopify.js"); | ||
const storyblok_js_1 = require("./transformers/storyblok.js"); | ||
const kontentai_js_1 = require("./transformers/kontentai.js"); | ||
const kontent_ai_js_1 = require("./transformers/kontent.ai.js"); | ||
const vercel_js_1 = require("./transformers/vercel.js"); | ||
@@ -24,3 +24,3 @@ const nextjs_js_1 = require("./transformers/nextjs.js"); | ||
const contentstack_js_1 = require("./transformers/contentstack.js"); | ||
const cloudflareimages_js_1 = require("./transformers/cloudflareimages.js"); | ||
const cloudflare_images_js_1 = require("./transformers/cloudflare_images.js"); | ||
const ipx_js_1 = require("./transformers/ipx.js"); | ||
@@ -33,3 +33,3 @@ const netlify_js_1 = require("./transformers/netlify.js"); | ||
contentful: contentful_js_1.transform, | ||
"builder.io": builder_js_1.transform, | ||
"builder.io": builder_io_js_1.transform, | ||
shopify: shopify_js_1.transform, | ||
@@ -44,3 +44,3 @@ wordpress: wordpress_js_1.transform, | ||
scene7: scene7_js_1.transform, | ||
"kontent.ai": kontentai_js_1.transform, | ||
"kontent.ai": kontent_ai_js_1.transform, | ||
keycdn: keycdn_js_1.transform, | ||
@@ -50,6 +50,6 @@ directus: directus_js_1.transform, | ||
contentstack: contentstack_js_1.transform, | ||
"cloudflare_images": cloudflareimages_js_1.transform, | ||
"cloudflare_images": cloudflare_images_js_1.transform, | ||
ipx: ipx_js_1.transform, | ||
netlify: netlify_js_1.transform, | ||
imagekit: imagekit_js_1.transform | ||
imagekit: imagekit_js_1.transform, | ||
}[cdn]); | ||
@@ -56,0 +56,0 @@ exports.getTransformer = getTransformer; |
@@ -51,3 +51,3 @@ "use strict"; | ||
(0, utils_js_1.setParamIfDefined)(url, "fm", format); | ||
(0, utils_js_1.setParamIfUndefined)(url, "fit", "crop"); | ||
(0, utils_js_1.setParamIfUndefined)(url, "fit", "cover"); | ||
url.searchParams.set("url", base.toString()); | ||
@@ -54,0 +54,0 @@ return (0, utils_js_1.toCanonicalUrlString)(url); |
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
186309