chore: security support >= 3.0.0 (#732)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated the "Supported Versions" section in the SECURITY.md file to reflect that security updates are now provided for versions 3.0.0 and above. - Minor formatting adjustments made in the "Disclosure Policy" section for consistency. - **Chores** - Simplified debugger configurations by removing explicit protocol and port settings from the `.vscode/launch.json` file. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: elrrrrrrr <elrrrrrrr@gmail.com>
This commit is contained in:
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -17,8 +17,6 @@
|
||||
],
|
||||
"console": "integratedTerminal",
|
||||
"restart": true,
|
||||
"protocol": "auto",
|
||||
"port": 9229,
|
||||
"autoAttachChildProcesses": true
|
||||
},
|
||||
{
|
||||
@@ -32,8 +30,6 @@
|
||||
"--",
|
||||
"--inspect-brk"
|
||||
],
|
||||
"protocol": "auto",
|
||||
"port": 9229,
|
||||
"autoAttachChildProcesses": true
|
||||
}
|
||||
]
|
||||
|
||||
@@ -6,7 +6,7 @@ Currently being supported with security updates.
|
||||
|
||||
| Version | Supported |
|
||||
| -------- | ------------------ |
|
||||
| >= 1.0.0 | :white_check_mark: |
|
||||
| >= 3.0.0 | :white_check_mark: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { SingletonProto, AccessLevel, Inject } from '@eggjs/tegg';
|
||||
import { SearchAdapter } from '../common/typing';
|
||||
import { AuthorType, CnpmcorePatchInfo, PackageManifestType } from './PackageRepository';
|
||||
import { estypes } from '@elastic/elasticsearch';
|
||||
|
||||
export type SearchJSONPickKey = '_rev' | 'name' | 'description' | 'keywords' | 'license' | 'maintainers' | 'dist-tags' | '_source_registry_name';
|
||||
|
||||
@@ -34,7 +35,7 @@ export class SearchRepository {
|
||||
private readonly searchAdapter: SearchAdapter;
|
||||
|
||||
|
||||
async searchPackage(query) {
|
||||
async searchPackage(query): Promise<estypes.SearchHitsMetadata<SearchManifestType>> {
|
||||
return await this.searchAdapter.search<SearchManifestType>(query);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user