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.8.1 to 3.9.0

esm/src/transformers/contentstack.d.ts

1

esm/data/domains.d.ts

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

"assets.caisy.io": string;
"images.contentstack.io": string;
};
export default _default;

3

esm/data/domains.js

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

"ip.keycdn.com": "keycdn",
"assets.caisy.io": "bunny"
"assets.caisy.io": "bunny",
"images.contentstack.io": "contentstack"
};

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

imageengine: string[];
contentstack: string[];
};
export default _default;

@@ -38,2 +38,5 @@ /// <reference types="node" />

imageengine: UrlParser<import("./transformers/imageengine.js").ImageEngineParams>;
contentstack: UrlParser<{
fit?: string | undefined;
}>;
};

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

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

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

@@ -35,3 +36,4 @@ imgix,

directus,
imageengine
imageengine,
contentstack,
};

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

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

import { transform as imageengine } from "./transformers/imageengine.js";
import { transform as contentstack } from "./transformers/contentstack.js";
import { getCanonicalCdnForUrl } from "./canonical.js";

@@ -37,2 +38,3 @@ export const getTransformer = (cdn) => ({

imageengine,
contentstack,
}[cdn]);

@@ -39,0 +41,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" | "imageengine";
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack";
export type SupportedImageCdn = ImageCdn;

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

"name": "unpic",
"version": "3.8.1",
"version": "3.9.0",
"description": "Universal image CDN translator",

@@ -8,0 +8,0 @@ "license": "MIT",

@@ -105,2 +105,3 @@ # 🖼 Unpic

- Contentful
- Contentstack
- Cloudinary

@@ -107,0 +108,0 @@ - Directus

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

"assets.caisy.io": string;
"images.contentstack.io": string;
};
export default _default;

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

"ip.keycdn.com": "keycdn",
"assets.caisy.io": "bunny"
"assets.caisy.io": "bunny",
"images.contentstack.io": "contentstack"
};

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

imageengine: string[];
contentstack: string[];
};
export default _default;

@@ -38,2 +38,5 @@ /// <reference types="node" />

imageengine: UrlParser<import("./transformers/imageengine.js").ImageEngineParams>;
contentstack: UrlParser<{
fit?: string | undefined;
}>;
};

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

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

const imageengine_js_1 = require("./transformers/imageengine.js");
const contentstack_js_1 = require("./transformers/contentstack.js");
exports.parsers = {

@@ -38,3 +39,4 @@ imgix: imgix_js_1.parse,

directus: directus_js_1.parse,
imageengine: imageengine_js_1.parse
imageengine: imageengine_js_1.parse,
contentstack: contentstack_js_1.parse,
};

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

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

const imageengine_js_1 = require("./transformers/imageengine.js");
const contentstack_js_1 = require("./transformers/contentstack.js");
const canonical_js_1 = require("./canonical.js");

@@ -40,2 +41,3 @@ const getTransformer = (cdn) => ({

imageengine: imageengine_js_1.transform,
contentstack: contentstack_js_1.transform,
}[cdn]);

@@ -42,0 +44,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" | "imageengine";
export type ImageCdn = "contentful" | "builder.io" | "cloudinary" | "cloudflare" | "imgix" | "shopify" | "wordpress" | "bunny" | "storyblok" | "kontent.ai" | "vercel" | "nextjs" | "scene7" | "keycdn" | "directus" | "imageengine" | "contentstack";
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