@xyo-network/crypto-nft-score-model
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -1,26 +0,6 @@ | ||
import { EmptyObject, AnyObject } from '@xylabs/object'; | ||
import { Payload } 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 EmptyObject = AnyObject> = (payload: T) => PassFailScore | Promise<PassFailScore>; | ||
type ScaledScoringFunction<T extends EmptyObject = AnyObject> = (payload: T) => Score | Promise<Score>; | ||
type ScoringFunction<T extends EmptyObject = AnyObject> = PassFailScoringFunction<T> | ScaledScoringFunction<T>; | ||
interface WeightedScoringCriteria<T extends Payload = Payload<AnyObject>> { | ||
score: ScoringFunction<T>; | ||
weight: number; | ||
} | ||
export { FAIL, PASS, type PassFailScore, type PassFailScoringFunction, SKIP, type ScaledScore, type ScaledScoringFunction, type Score, type ScoringFunction, type WeightedScoringCriteria, incrementPossible, incrementTotal, incrementTotalAndPossible, normalize }; | ||
export * from './increment.ts'; | ||
export * from './normalize.ts'; | ||
export * from './score.ts'; | ||
export * from './scoringFunction.ts'; | ||
export * from './weighted.ts'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@xyo-network/crypto-nft-score-model", | ||
"version": "3.0.4", | ||
"description": "Typescript/Javascript Plugins for XYO Platform", | ||
"homepage": "https://xyo.network", | ||
"bugs": { | ||
"url": "git+https://github.com/XYOracleNetwork/plugins/issues", | ||
"email": "support@xyo.network" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/XYOracleNetwork/plugins.git" | ||
}, | ||
"license": "LGPL-3.0-only", | ||
"author": { | ||
"name": "XYO Development Team", | ||
"email": "support@xyo.network", | ||
"name": "XYO Development Team", | ||
"url": "https://xyo.network" | ||
}, | ||
"bugs": { | ||
"email": "support@xyo.network", | ||
"url": "git+https://github.com/XYOracleNetwork/plugins/issues" | ||
}, | ||
"dependencies": { | ||
"@xylabs/object": "^4.0.2", | ||
"@xyo-network/payload-model": "^3.0.3" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20", | ||
"@xylabs/tsconfig": "^4.0.0-rc.20", | ||
"typescript": "^5.5.4" | ||
}, | ||
"description": "Typescript/Javascript Plugins for XYO Platform", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
@@ -31,14 +31,14 @@ ".": { | ||
"types": "dist/neutral/index.d.ts", | ||
"homepage": "https://xyo.network", | ||
"license": "LGPL-3.0-only", | ||
"dependencies": { | ||
"@xylabs/object": "^4.0.4", | ||
"@xyo-network/payload-model": "^3.0.10" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^4.0.7", | ||
"@xylabs/tsconfig": "^4.0.7", | ||
"typescript": "^5.5.4" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/XYOracleNetwork/plugins.git" | ||
}, | ||
"sideEffects": false, | ||
"version": "3.0.3", | ||
"type": "module" | ||
} | ||
} |
@@ -5,5 +5,3 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3' | ||
browser: {}, | ||
neutral: { | ||
src: true, | ||
}, | ||
neutral: { src: true }, | ||
node: {}, | ||
@@ -10,0 +8,0 @@ }, |
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
18090
25
121
Updated@xylabs/object@^4.0.4