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

@poprank/rankings

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poprank/rankings - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

34

lib/rarity/rarity.meta.js

@@ -26,3 +26,3 @@ "use strict";

'ens': 10000,
'100kclub': 100000
'100kclub': 100000,
};

@@ -246,2 +246,34 @@ exports.DAYS_IN_MONTH = {

}
// Square number
var isSquare = Number.isInteger(Math.pow(id, 1 / 2));
if (isSquare) {
outTraits.push({
value: 'Square (^2)',
category: 'Meta',
typeValue: 'Special',
displayType: null,
});
}
// Cube number
var isCube = Number.isInteger(Math.pow(id, 1 / 3));
if (isCube) {
outTraits.push({
value: 'Cube (^3)',
category: 'Meta',
typeValue: 'Special',
displayType: null,
});
}
// Was the ENS registered before the punk mint date
// In future will attempt to look at first mint date instead
var registrationDate = nftTraits.find(function (t) { return t.typeValue === 'Registration Date'; });
var isPrePunk = registrationDate && (new Date(+registrationDate.value * 1000)) < new Date('2017-06-23T00:00:00.000Z');
if (isPrePunk) {
outTraits.push({
value: 'Pre Punk',
category: 'Meta',
typeValue: 'Special',
displayType: null,
});
}
return outTraits;

@@ -248,0 +280,0 @@ };

2

package.json
{
"name": "@poprank/rankings",
"version": "1.1.10",
"version": "1.1.11",
"description": "PopRank's NFT rarity and aesthetic ranking logic",

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

Sorry, the diff of this file is not supported yet

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