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

@uxf/core

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxf/core - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

package.json
{
"name": "@uxf/core",
"version": "2.1.0",
"version": "2.1.1",
"description": "UXF Core",

@@ -5,0 +5,0 @@ "author": "Petr Vejvoda <vejvoda@uxf.cz>",

@@ -34,3 +34,2 @@ interface FileResponse {

export interface ResizerImageProps {
src?: FileResponse | null;
fit?: keyof typeof fitMapper;

@@ -41,6 +40,4 @@ position?: keyof typeof positionMapper;

toFormat?: "webp" | "png" | "avif" | string;
width: number;
height: number;
}
export declare const resizerImageUrl: (props: ResizerImageProps) => string | null;
export declare const resizerImageUrl: (src: FileResponse | null, width: number, height: number, props: ResizerImageProps) => string | null;
export {};

@@ -31,4 +31,4 @@ "use strict";

};
var resizerImageUrl = function (props) {
var src = props.src, _a = props.fit, fit = _a === void 0 ? "cover" : _a, _b = props.position, position = _b === void 0 ? "center" : _b, toFormat = props.toFormat, trim = props.trim, _c = props.background, background = _c === void 0 ? "FFF" : _c, width = props.width, height = props.height;
var resizerImageUrl = function (src, width, height, props) {
var _a = props.fit, fit = _a === void 0 ? "cover" : _a, _b = props.position, position = _b === void 0 ? "center" : _b, toFormat = props.toFormat, trim = props.trim, _c = props.background, background = _c === void 0 ? "FFF" : _c;
if (!src) {

@@ -50,2 +50,2 @@ return null;

exports.resizerImageUrl = resizerImageUrl;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9yZXNpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQU1BLElBQU0sU0FBUyxHQUFHO0lBQ2QsS0F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BQUc7UUFDYixHQUFHLENBQUMsSUFBSTtRQUNSLEtBQUs7UUFDTCxNQUFNO1FBQ04sU0FBUyxDQUFDLEdBQUcsQ0FBQztRQUNkLGNBQWMsQ0FBQyxRQUFRLENBQUM7UUFDeEIsVUFBVSxLQUFLLGFBQWEsQ0FBQyxDQUFDLENBQUMsZ0JBQWdCLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDLFVBQVU7UUFDeEUsSUFBSSxLQUFLLFVBQVUsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJO1FBQzdDLFVBQUcsR0FBRyxDQUFDLFNBQVMsY0FBSSxRQUFRLENBQUU7S0FDakMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUM7SUFFWixPQUFPLHFCQUFjLEdBQUcsQ0FBQyxTQUFTLGNBQUksR0FBRyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLGNBQUksR0FBRyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLGNBQUksUUFBUSxDQUFFLENBQUM7QUFDakcsQ0FBQyxDQUFDO0FBeEJXLFFBQUEsZUFBZSxtQkF3QjFCIn0=
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