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

unpic

Package Overview
Dependencies
Maintainers
0
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.21.0 to 3.22.0

3

esm/src/transformers/astro.js

@@ -1,2 +0,2 @@

import { getNumericParam, setParamIfDefined, toCanonicalUrlString, toUrl, } from "../utils.js";
import { getNumericParam, setParamIfDefined, setParamIfUndefined, toCanonicalUrlString, toUrl, } from "../utils.js";
import { getImageCdnForUrlByDomain } from "../detect.js";

@@ -50,4 +50,5 @@ export const delegateUrl = (url) => {

setParamIfDefined(url, "f", format);
setParamIfUndefined(url, "fit", "cover");
const endpoint = cdnOptions?.astro?.endpoint ?? "/_image";
return `${endpoint}?${url.searchParams.toString()}`;
};
{
"name": "unpic",
"version": "3.21.0",
"version": "3.22.0",
"description": "Universal image CDN translator",

@@ -5,0 +5,0 @@ "homepage": "https://unpic.pics/lib",

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

(0, utils_js_1.setParamIfDefined)(url, "f", format);
(0, utils_js_1.setParamIfUndefined)(url, "fit", "cover");
const endpoint = cdnOptions?.astro?.endpoint ?? "/_image";

@@ -57,0 +58,0 @@ return `${endpoint}?${url.searchParams.toString()}`;

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