update
This commit is contained in:
24
ts/smartnpm.classes.npmregistry.ts
Normal file
24
ts/smartnpm.classes.npmregistry.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as plugins from './smartnpm.plugins'
|
||||
|
||||
interface ISearchObject {
|
||||
// metadata
|
||||
author?: string
|
||||
maintainer: string
|
||||
scope?: string
|
||||
deprecated?: boolean
|
||||
unstable?: boolean
|
||||
insecure?: boolean
|
||||
boostExact: boolean
|
||||
scoreEffect: number
|
||||
|
||||
// Analytics
|
||||
qualityWeight: number
|
||||
popularityWeight: number
|
||||
maintenanceWeight: number
|
||||
}
|
||||
|
||||
export class NpmRegistry {
|
||||
search (searchObject: ISearchObject) {
|
||||
let response = await plugins.Smartrequest
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user