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

advanced-cropper

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advanced-cropper - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

algorithms.d.ts

11

algorithms.js

@@ -214,3 +214,3 @@ 'use strict';

if (preserveRatio) {
var multiplier_1 = Math.min.apply(Math, constants.ALL_DIRECTIONS.map(function (direction) { return maxResize[direction]; }));
var multiplier_1 = 0;
if (multiplier_1 !== Infinity) {

@@ -378,2 +378,5 @@ constants.ALL_DIRECTIONS.forEach(function (direction) {

if (ratioBroken && Math.abs(ratioBroken - currentWidth / currentHeight) > 1e-3) {
{
console.error("Something went wrong and ratio was broken: " + currentWidth / currentHeight + " instead of " + ratioBroken);
}
constants.ALL_DIRECTIONS.forEach(function (direction) {

@@ -838,2 +841,5 @@ if (!allowedDirections[direction]) {

if (restrictions.minWidth > restrictions.maxWidth) {
{
console.warn("Warning: maximum width (" + restrictions.maxWidth + "px) fewer that the minimum width (" + restrictions.minWidth + "px). It is set equal to the minimum width and width resizing was blocked");
}
restrictions.maxWidth = restrictions.minWidth;

@@ -843,2 +849,5 @@ restrictions.widthFrozen = true;

if (restrictions.minHeight > restrictions.maxHeight) {
{
console.warn("Warning: maximum height (" + restrictions.maxHeight + "px) fewer that the minimum height (" + restrictions.minHeight + "px). It is set equal to the minimum height and height resizing was blocked");
}
restrictions.maxHeight = restrictions.minHeight;

@@ -845,0 +854,0 @@ restrictions.heightFrozen = true;

6

package.json
{
"name": "advanced-cropper",
"version": "0.1.1",
"version": "0.1.2",
"description": "Advanced cropper algorithms",

@@ -28,3 +28,4 @@ "author": "Norserium",

"lint:fix": "eslint --fix src/**/*.{js,vue}",
"publish:dist": "copyfiles package.json dist && npm publish dist"
"prepare:dist": "copyfiles package.json dist",
"publish:dist": "npm run prepare:dist && npm publish dist"
},

@@ -64,2 +65,3 @@ "dependencies": {

],
"types": [],
"lint-staged": {

@@ -66,0 +68,0 @@ "*.{js,ts}": [

@@ -77,3 +77,3 @@ 'use strict';

function replacedProp(value, oldName, currentName) {
if (!isEmpty(value) && "production" !== 'production') {
if (!isEmpty(value) && "build" !== 'production') {
console.warn("Warning: prop \"" + oldName + "\" is deprecated, use \"" + currentName + "\" instead. Value:", value);

@@ -80,0 +80,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