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

squishjs

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

squishjs - npm Package Compare versions

Comparing version 0.7.61 to 0.7.62

2

package.json
{
"name": "squishjs",
"version": "0.7.61",
"version": "0.7.62",
"description": "squish & unsquish stuff",

@@ -5,0 +5,0 @@ "scripts": {

@@ -13,2 +13,20 @@ const Physics = {

if (newX < 0 || newX > endX || newY < 0 || newY > endY) {
let _newX = newX;
let _newY = newY;
if (newX < 0) {
_newX = 0;
} else if (newX > endX) {
_newX = endX;
}
if (newY < 0) {
_newY = 0;
} else if (newY > endY) {
_newY = endY;
}
if (!(path[path.length - 1][0] === _newX || path[path.length - 1][1] === _newY)) {
path.push([_newX, _newY]);
}
withinEdges = false;

@@ -15,0 +33,0 @@ } else {

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