Skip to content

Commit

Permalink
bumped version to 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
slippyex committed Apr 19, 2024
1 parent e373289 commit becca88
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/example-usage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AssetBase, IEquationOptions } from '../src/@types';
import { AssetBase, IEquationOptions } from '../src';
import { calculateRanking } from '../src';

const assets: AssetBase[] = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lsp8.app.rarity-lib",
"version": "1.0.1",
"version": "1.0.4",
"description": "Tiny, zero-dependencies, package which tries to calculate rarity and rankings for a given NFT 2.0 LSP8 asset collection",
"main": ".build/src/index.js",
"files": [
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './lib/RarityScorer';
export { calculateRanking } from './lib/calculateRanking';
export * from './@types';
2 changes: 1 addition & 1 deletion src/lib/RarityScorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class RarityScorer {
}, 0);
}

private assignRanks(rarityScores: IRarityScore[]): IRarityScore[] {
public assignRanks(rarityScores: IRarityScore[]): IRarityScore[] {
rarityScores.sort((a, b) => b.score - a.score);

if (!this.nonUniqueRanking) {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"sourceMap": true,
"outDir": ".build/src",
"outDir": ".build",
"baseUrl": ".",
"paths": {
"*": ["node_modules/*", "src/@types/*"]
Expand Down

0 comments on commit becca88

Please sign in to comment.