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 2.2.1 to 2.2.2

1

esm/data/domains.js
export default JSON.parse(`{
"res.cloudinary.com": "cloudinary",
"images.ctfassets.net": "contentful",

@@ -4,0 +3,0 @@ "cdn.builder.io": "builder.io",

3

esm/data/subdomains.js

@@ -6,4 +6,5 @@ export default JSON.parse(`{

"storyblok.com": "storyblok",
"kc-usercontent.com": "kontent.ai"
"kc-usercontent.com": "kontent.ai",
"cloudinary.com": "cloudinary"
}
`);

@@ -33,3 +33,3 @@ import { roundIfNumeric } from "../utils.js";

const group = matches[0].groups || {};
const { transformations: transformString, format: originalFormat, ...baseParams } = group;
const { transformations: transformString = "", format: originalFormat, ...baseParams } = group;
const { w, h, f, ...transformations } = parseTransforms(transformString);

@@ -61,2 +61,4 @@ const format = (f && f !== "auto") ? f : originalFormat;

}
// Default crop to fill without upscaling
props.transformations.c ||= "lfill";
return new URL(formatUrl(props));

@@ -63,0 +65,0 @@ };

@@ -6,3 +6,3 @@ {

"name": "unpic",
"version": "2.2.1",
"version": "2.2.2",
"description": "Universal image CDN translator",

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = JSON.parse(`{
"res.cloudinary.com": "cloudinary",
"images.ctfassets.net": "contentful",

@@ -6,0 +5,0 @@ "cdn.builder.io": "builder.io",

@@ -8,4 +8,5 @@ "use strict";

"storyblok.com": "storyblok",
"kc-usercontent.com": "kontent.ai"
"kc-usercontent.com": "kontent.ai",
"cloudinary.com": "cloudinary"
}
`);

@@ -36,3 +36,3 @@ "use strict";

const group = matches[0].groups || {};
const { transformations: transformString, format: originalFormat, ...baseParams } = group;
const { transformations: transformString = "", format: originalFormat, ...baseParams } = group;
const { w, h, f, ...transformations } = parseTransforms(transformString);

@@ -65,2 +65,4 @@ const format = (f && f !== "auto") ? f : originalFormat;

}
// Default crop to fill without upscaling
props.transformations.c ||= "lfill";
return new URL(formatUrl(props));

@@ -67,0 +69,0 @@ };

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