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

@xyo-network/crypto-nft-score-model

Package Overview
Dependencies
Maintainers
7
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/crypto-nft-score-model - npm Package Compare versions

Comparing version 2.73.4 to 2.74.0

dist/increment.d.mts

31

dist/index.d.ts

@@ -1,25 +0,6 @@

import { EmptyPayload } from '@xyo-network/payload-model';
type PassFailScore = [total: number, possible: 1];
declare const PASS: PassFailScore;
declare const FAIL: PassFailScore;
type ScaledScore = [total: number, possible: number];
declare const SKIP: ScaledScore;
type Score = ScaledScore | PassFailScore;
declare const incrementTotal: (score: ScaledScore, by?: number) => ScaledScore;
declare const incrementPossible: (score: ScaledScore, by?: number) => ScaledScore;
declare const incrementTotalAndPossible: (score: ScaledScore, totalBy?: number, possibleBy?: number) => ScaledScore;
declare const normalize: (score: Score, maxScore: number) => Score;
type PassFailScoringFunction<T extends EmptyPayload = EmptyPayload> = (payload: T) => PassFailScore | Promise<PassFailScore>;
type ScaledScoringFunction<T extends EmptyPayload = EmptyPayload> = (payload: T) => Score | Promise<Score>;
type ScoringFunction<T extends EmptyPayload = EmptyPayload> = PassFailScoringFunction<T> | ScaledScoringFunction<T>;
interface WeightedScoringCriteria<T extends EmptyPayload = EmptyPayload> {
score: ScoringFunction<T>;
weight: number;
}
export { FAIL, PASS, PassFailScore, PassFailScoringFunction, SKIP, ScaledScore, ScaledScoringFunction, Score, ScoringFunction, WeightedScoringCriteria, incrementPossible, incrementTotal, incrementTotalAndPossible, normalize };
export * from './increment';
export * from './normalize';
export * from './score';
export * from './scoringFunction';
export * from './weighted';
//# sourceMappingURL=index.d.ts.map

@@ -13,15 +13,9 @@ {

"dependencies": {
"@xyo-network/payload-model": "~2.73.4"
"@xyo-network/payload-model": "~2.74.0"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^2.19.12",
"@xylabs/tsconfig": "^2.19.12",
"publint": "^0.2.2",
"tsup": "^7.2.0",
"@xylabs/ts-scripts-yarn3": "^3.0.27",
"@xylabs/tsconfig": "^3.0.27",
"typescript": "^5.2.2"
},
"scripts": {
"package-compile": "tsup && publint",
"package-recompile": "tsup && publint"
},
"description": "Primary SDK for using XYO Protocol 2.0",

@@ -40,14 +34,5 @@ "docs": "dist/docs.json",

},
"./dist/docs.json": {
"default": "./dist/docs.json"
},
"./cjs": {
"default": "./dist/index.js"
},
"./docs": {
"default": "./dist/docs.json"
},
"./esm": {
"default": "./dist/index.mjs"
},
"./package.json": "./package.json"

@@ -68,3 +53,3 @@ },

"types": "dist/index.d.ts",
"version": "2.73.4"
"version": "2.74.0"
}

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