New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aptoma/aoi-smart-crop

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptoma/aoi-smart-crop - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

lib/index.test.js

5

lib/index.js

@@ -18,5 +18,6 @@ 'use strict';

* @param {String} transformToken
* @param {Object} params extra GET params
* @return {String}
*/
exports.getResizedImageUrl = (imageUrl, targetSize, actions, transformToken) => {
exports.getResizedImageUrl = (imageUrl, targetSize, actions, transformToken, params = {}) => {
normalizeActions(actions);

@@ -39,3 +40,3 @@ const baseUrl = imageUrl.split('?')[0];

function actionsToQueryParam(actions) {
return decodeURI(qs.stringify({t: actions}));
return decodeURI(qs.stringify(Object.assign({}, params, {t: actions})));
}

@@ -42,0 +43,0 @@

2

package.json

@@ -7,3 +7,3 @@ {

},
"version": "0.2.1",
"version": "0.3.0",
"description": "Helper library for doing smart crops of images based on area of interest data",

@@ -10,0 +10,0 @@ "main": "lib/index.js",

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