@poprank/rankings
Advanced tools
Comparing version 1.1.12 to 1.1.13
@@ -246,3 +246,3 @@ "use strict"; | ||
// Square number | ||
var isSquare = id > 0 && Number.isInteger(Math.pow(id, 1 / 2)); | ||
var isSquare = id > 0 && Number.isInteger(Math.sqrt(id)); | ||
if (isSquare) { | ||
@@ -257,3 +257,3 @@ outTraits.push({ | ||
// Cube number | ||
var isCube = id > 0 && Number.isInteger(Math.pow(id, 1 / 3)); | ||
var isCube = id > 0 && Number.isInteger(Math.cbrt(id)); | ||
if (isCube) { | ||
@@ -260,0 +260,0 @@ outTraits.push({ |
{ | ||
"name": "@poprank/rankings", | ||
"version": "1.1.12", | ||
"version": "1.1.13", | ||
"description": "PopRank's NFT rarity and aesthetic ranking logic", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59449