update to working search

This commit is contained in:
2017-08-15 17:03:21 +02:00
parent d9573937d0
commit 8edb49d9fb
18 changed files with 412 additions and 36 deletions

25
ts/smartnpm.interfaces.ts Normal file
View File

@@ -0,0 +1,25 @@
export interface ISearchObject {
// name
name?: string
// metadata
author?: string
maintainer?: string
scope?: string
keywords?: string[]
// status
deprecated?: boolean
unstable?: boolean
insecure?: boolean
// search behaviour
boostExact?: boolean
scoreEffect?: number
// Analytics
qualityWeight?: number
popularityWeight?: number
maintenanceWeight?: number
}