@xyo-network/crypto-nft-score-model
Advanced tools
Comparing version 2.73.4 to 2.74.0
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
3
38
25463
176
1
+ Added@xylabs/assert@3.6.12(transitive)
+ Added@xylabs/error@3.6.12(transitive)
+ Added@xylabs/logger@3.6.12(transitive)
+ Added@xylabs/object@3.6.12(transitive)
+ Added@xylabs/promise@3.6.12(transitive)
+ Added@xyo-network/object@2.111.3(transitive)
+ Added@xyo-network/payload-model@2.74.5(transitive)
- Removed@xyo-network/payload-model@2.73.4(transitive)