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

jscoord

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscoord - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

2

package.json
{
"name": "jscoord",
"version": "0.0.15",
"version": "0.0.16",
"description": "A simple Map coordinate system for NodeJS and potentially the browser.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -38,3 +38,3 @@ class JSCoord {

decrX (amount = 1) {
if (this.map && this.map.x && (this.x + amount > this.map.x || this.x + amount < 0 - this.map.x)) { throw new Error("New amount does not exceed minimum map size.") } else {
if (this.map && this.map.x && (this.x - amount > this.map.x || this.x - amount < 0 - this.map.x)) { throw new Error("New amount does not exceed minimum map size.") } else {
this.x -= amount

@@ -59,3 +59,3 @@ return this

decrY (amount = 1) {
if (this.map && this.map.y && (this.y + amount > this.map.y || this.y + amount < 0 - this.map.y)) { throw new Error("New amount does not exceed minimum map size.") } else {
if (this.map && this.map.y && (this.y - amount > this.map.y || this.y - amount < 0 - this.map.y)) { throw new Error("New amount does not exceed minimum map size.") } else {
this.y -= amount

@@ -80,3 +80,3 @@ return this

decrZ (amount = 1) {
if (this.map && this.map.z && (this.z + amount > this.map.z || this.z + amount < 0 - this.map.z)) { throw new Error("New amount does not exceed minimum map size.") } else {
if (this.map && this.map.z && (this.z - amount > this.map.z || this.z - amount < 0 - this.map.z)) { throw new Error("New amount does not exceed minimum map size.") } else {
this.z -= amount

@@ -83,0 +83,0 @@ return this

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