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.19.0 to 3.20.0

esm/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts.map

1

esm/data/subdomains.d.ts

@@ -14,4 +14,5 @@ declare const _default: {

"supabase.co": string;
"graphassets.com": string;
};
export default _default;
//# sourceMappingURL=subdomains.d.ts.map

3

esm/data/subdomains.js

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

"ucarecdn.com": "uploadcare",
"supabase.co": "supabase"
"supabase.co": "supabase",
"graphassets.com": "hygraph"
};

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

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

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

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

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

@@ -54,2 +55,3 @@ imgix,

supabase,
hygraph,
};

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

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

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

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

supabase,
hygraph,
}[cdn]);

@@ -57,0 +59,0 @@ /**

@@ -69,4 +69,4 @@ /**

}
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 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" | "hygraph";
export type SupportedImageCdn = ImageCdn;
//# sourceMappingURL=types.d.ts.map
{
"name": "unpic",
"version": "3.19.0",
"version": "3.20.0",
"description": "Universal image CDN translator",

@@ -57,2 +57,6 @@ "homepage": "https://unpic.pics/lib",

},
"./transformers/hygraph": {
"import": "./esm/src/transformers/hygraph.js",
"require": "./script/src/transformers/hygraph.js"
},
"./transformers/cloudflare_images": {

@@ -59,0 +63,0 @@ "import": "./esm/src/transformers/cloudflare_images.js",

@@ -14,4 +14,5 @@ declare const _default: {

"supabase.co": string;
"graphassets.com": string;
};
export default _default;
//# sourceMappingURL=subdomains.d.ts.map

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

"ucarecdn.com": "uploadcare",
"supabase.co": "supabase"
"supabase.co": "supabase",
"graphassets.com": "hygraph"
};

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

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

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

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

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

@@ -57,2 +58,3 @@ imgix: imgix_js_1.parse,

supabase: supabase_js_1.parse,
hygraph: hygraph_js_1.parse,
};

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

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

const supabase_js_1 = require("./transformers/supabase.js");
const hygraph_js_1 = require("./transformers/hygraph.js");
const canonical_js_1 = require("./canonical.js");

@@ -58,2 +59,3 @@ const getTransformer = (cdn) => ({

supabase: supabase_js_1.transform,
hygraph: hygraph_js_1.transform,
}[cdn]);

@@ -60,0 +62,0 @@ exports.getTransformer = getTransformer;

@@ -69,4 +69,4 @@ /**

}
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 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" | "hygraph";
export type SupportedImageCdn = ImageCdn;
//# sourceMappingURL=types.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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