Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unpic

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unpic - npm Package Compare versions

Comparing version 3.17.0 to 3.18.0

esm/src/transformers/supabase.d.ts

2

esm/data/paths.d.ts

@@ -11,3 +11,5 @@ declare const _default: {

"/.netlify/images": string;
"/storage/v1/object/public/": string;
"/storage/v1/render/image/public/": string;
};
export default _default;

4

esm/data/paths.js

@@ -10,3 +10,5 @@ export default {

"/_image": "astro",
"/.netlify/images": "netlify"
"/.netlify/images": "netlify",
"/storage/v1/object/public/": "supabase",
"/storage/v1/render/image/public/": "supabase"
};

@@ -13,3 +13,4 @@ declare const _default: {

"ucarecdn.com": string;
"supabase.co": string;
};
export default _default;

@@ -12,3 +12,4 @@ export default {

"cloudimg.io": "cloudimage",
"ucarecdn.com": "uploadcare"
"ucarecdn.com": "uploadcare",
"supabase.co": "supabase"
};

@@ -23,3 +23,4 @@ declare const _default: {

uploadcare: string[];
supabase: string[];
};
export default _default;

@@ -47,2 +47,3 @@ import { ImageCdn, ParsedUrl, UrlParser } from "./types.js";

uploadcare: UrlParser<import("./transformers/uploadcare.js").UploadcareParams>;
supabase: UrlParser<import("./transformers/supabase.js").SupabaseParams>;
};

@@ -49,0 +50,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn;

@@ -26,2 +26,3 @@ import { getImageCdnForUrl } from "./detect.js";

import { parse as uploadcare } from "./transformers/uploadcare.js";
import { parse as supabase } from "./transformers/supabase.js";
export const parsers = {

@@ -52,2 +53,3 @@ imgix,

uploadcare,
supabase,
};

@@ -54,0 +56,0 @@ export const cdnIsSupportedForParse = (cdn) => cdn && cdn in parsers;

@@ -26,2 +26,3 @@ import { getImageCdnForUrl } from "./detect.js";

import { transform as uploadcare } from "./transformers/uploadcare.js";
import { transform as supabase } from "./transformers/supabase.js";
import { getCanonicalCdnForUrl } from "./canonical.js";

@@ -53,2 +54,3 @@ export const getTransformer = (cdn) => ({

uploadcare,
supabase,
}[cdn]);

@@ -55,0 +57,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" | "uploadcare";
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" | "supabase";
export type SupportedImageCdn = ImageCdn;

@@ -5,3 +5,3 @@ {

"name": "unpic",
"version": "3.17.0",
"version": "3.18.0",
"description": "Universal image CDN translator",

@@ -33,6 +33,18 @@ "license": "MIT",

},
"./transformers/storyblok": {
"import": "./esm/src/transformers/storyblok.js",
"require": "./script/src/transformers/storyblok.js"
"./transformers/nextjs": {
"import": "./esm/src/transformers/nextjs.js",
"require": "./script/src/transformers/nextjs.js"
},
"./transformers/kontent.ai": {
"import": "./esm/src/transformers/kontent.ai.js",
"require": "./script/src/transformers/kontent.ai.js"
},
"./transformers/scene7": {
"import": "./esm/src/transformers/scene7.js",
"require": "./script/src/transformers/scene7.js"
},
"./transformers/cloudflare_images": {
"import": "./esm/src/transformers/cloudflare_images.js",
"require": "./script/src/transformers/cloudflare_images.js"
},
"./transformers/cloudinary": {

@@ -42,10 +54,22 @@ "import": "./esm/src/transformers/cloudinary.js",

},
"./transformers/imageengine": {
"import": "./esm/src/transformers/imageengine.js",
"require": "./script/src/transformers/imageengine.js"
"./transformers/netlify": {
"import": "./esm/src/transformers/netlify.js",
"require": "./script/src/transformers/netlify.js"
},
"./transformers/keycdn": {
"import": "./esm/src/transformers/keycdn.js",
"require": "./script/src/transformers/keycdn.js"
"./transformers/astro": {
"import": "./esm/src/transformers/astro.js",
"require": "./script/src/transformers/astro.js"
},
"./transformers/ipx": {
"import": "./esm/src/transformers/ipx.js",
"require": "./script/src/transformers/ipx.js"
},
"./transformers/storyblok": {
"import": "./esm/src/transformers/storyblok.js",
"require": "./script/src/transformers/storyblok.js"
},
"./transformers/builder.io": {
"import": "./esm/src/transformers/builder.io.js",
"require": "./script/src/transformers/builder.io.js"
},
"./transformers/cloudimage": {

@@ -55,6 +79,10 @@ "import": "./esm/src/transformers/cloudimage.js",

},
"./transformers/contentful": {
"import": "./esm/src/transformers/contentful.js",
"require": "./script/src/transformers/contentful.js"
"./transformers/imgix": {
"import": "./esm/src/transformers/imgix.js",
"require": "./script/src/transformers/imgix.js"
},
"./transformers/imageengine": {
"import": "./esm/src/transformers/imageengine.js",
"require": "./script/src/transformers/imageengine.js"
},
"./transformers/cloudflare": {

@@ -64,10 +92,14 @@ "import": "./esm/src/transformers/cloudflare.js",

},
"./transformers/kontent.ai": {
"import": "./esm/src/transformers/kontent.ai.js",
"require": "./script/src/transformers/kontent.ai.js"
"./transformers/uploadcare": {
"import": "./esm/src/transformers/uploadcare.js",
"require": "./script/src/transformers/uploadcare.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/keycdn": {
"import": "./esm/src/transformers/keycdn.js",
"require": "./script/src/transformers/keycdn.js"
},
"./transformers/shopify": {

@@ -77,14 +109,10 @@ "import": "./esm/src/transformers/shopify.js",

},
"./transformers/netlify": {
"import": "./esm/src/transformers/netlify.js",
"require": "./script/src/transformers/netlify.js"
"./transformers/supabase": {
"import": "./esm/src/transformers/supabase.js",
"require": "./script/src/transformers/supabase.js"
},
"./transformers/vercel": {
"import": "./esm/src/transformers/vercel.js",
"require": "./script/src/transformers/vercel.js"
"./transformers/contentful": {
"import": "./esm/src/transformers/contentful.js",
"require": "./script/src/transformers/contentful.js"
},
"./transformers/astro": {
"import": "./esm/src/transformers/astro.js",
"require": "./script/src/transformers/astro.js"
},
"./transformers/wordpress": {

@@ -94,22 +122,10 @@ "import": "./esm/src/transformers/wordpress.js",

},
"./transformers/bunny": {
"import": "./esm/src/transformers/bunny.js",
"require": "./script/src/transformers/bunny.js"
"./transformers/vercel": {
"import": "./esm/src/transformers/vercel.js",
"require": "./script/src/transformers/vercel.js"
},
"./transformers/imagekit": {
"import": "./esm/src/transformers/imagekit.js",
"require": "./script/src/transformers/imagekit.js"
"./transformers/directus": {
"import": "./esm/src/transformers/directus.js",
"require": "./script/src/transformers/directus.js"
},
"./transformers/imgix": {
"import": "./esm/src/transformers/imgix.js",
"require": "./script/src/transformers/imgix.js"
},
"./transformers/nextjs": {
"import": "./esm/src/transformers/nextjs.js",
"require": "./script/src/transformers/nextjs.js"
},
"./transformers/builder.io": {
"import": "./esm/src/transformers/builder.io.js",
"require": "./script/src/transformers/builder.io.js"
},
"./transformers/contentstack": {

@@ -119,17 +135,5 @@ "import": "./esm/src/transformers/contentstack.js",

},
"./transformers/scene7": {
"import": "./esm/src/transformers/scene7.js",
"require": "./script/src/transformers/scene7.js"
},
"./transformers/cloudflare_images": {
"import": "./esm/src/transformers/cloudflare_images.js",
"require": "./script/src/transformers/cloudflare_images.js"
},
"./transformers/uploadcare": {
"import": "./esm/src/transformers/uploadcare.js",
"require": "./script/src/transformers/uploadcare.js"
},
"./transformers/directus": {
"import": "./esm/src/transformers/directus.js",
"require": "./script/src/transformers/directus.js"
"./transformers/imagekit": {
"import": "./esm/src/transformers/imagekit.js",
"require": "./script/src/transformers/imagekit.js"
}

@@ -136,0 +140,0 @@ },

@@ -11,3 +11,5 @@ declare const _default: {

"/.netlify/images": string;
"/storage/v1/object/public/": string;
"/storage/v1/render/image/public/": string;
};
export default _default;

@@ -12,3 +12,5 @@ "use strict";

"/_image": "astro",
"/.netlify/images": "netlify"
"/.netlify/images": "netlify",
"/storage/v1/object/public/": "supabase",
"/storage/v1/render/image/public/": "supabase"
};

@@ -13,3 +13,4 @@ declare const _default: {

"ucarecdn.com": string;
"supabase.co": string;
};
export default _default;

@@ -14,3 +14,4 @@ "use strict";

"cloudimg.io": "cloudimage",
"ucarecdn.com": "uploadcare"
"ucarecdn.com": "uploadcare",
"supabase.co": "supabase"
};

@@ -23,3 +23,4 @@ declare const _default: {

uploadcare: string[];
supabase: string[];
};
export default _default;

@@ -47,2 +47,3 @@ import { ImageCdn, ParsedUrl, UrlParser } from "./types.js";

uploadcare: UrlParser<import("./transformers/uploadcare.js").UploadcareParams>;
supabase: UrlParser<import("./transformers/supabase.js").SupabaseParams>;
};

@@ -49,0 +50,0 @@ export declare const cdnIsSupportedForParse: (cdn: ImageCdn | false) => cdn is ImageCdn;

@@ -29,2 +29,3 @@ "use strict";

const uploadcare_js_1 = require("./transformers/uploadcare.js");
const supabase_js_1 = require("./transformers/supabase.js");
exports.parsers = {

@@ -55,2 +56,3 @@ imgix: imgix_js_1.parse,

uploadcare: uploadcare_js_1.parse,
supabase: supabase_js_1.parse,
};

@@ -57,0 +59,0 @@ const cdnIsSupportedForParse = (cdn) => cdn && cdn in exports.parsers;

@@ -29,2 +29,3 @@ "use strict";

const uploadcare_js_1 = require("./transformers/uploadcare.js");
const supabase_js_1 = require("./transformers/supabase.js");
const canonical_js_1 = require("./canonical.js");

@@ -56,2 +57,3 @@ const getTransformer = (cdn) => ({

uploadcare: uploadcare_js_1.transform,
supabase: supabase_js_1.transform,
}[cdn]);

@@ -58,0 +60,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" | "uploadcare";
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" | "supabase";
export type SupportedImageCdn = ImageCdn;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc