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
0
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 3.0.3 to 3.0.4

dist/neutral/increment.d.ts

32

dist/neutral/index.d.ts

@@ -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 @@ },

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