Skip to content

Commit b808ebc

Browse files
fengmk2elrrrrrrr
andauthored
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 <[email protected]>
1 parent 71cc338 commit b808ebc

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.vscode/launch.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
],
1818
"console": "integratedTerminal",
1919
"restart": true,
20-
"protocol": "auto",
21-
"port": 9229,
2220
"autoAttachChildProcesses": true
2321
},
2422
{
@@ -32,8 +30,6 @@
3230
"--",
3331
"--inspect-brk"
3432
],
35-
"protocol": "auto",
36-
"port": 9229,
3733
"autoAttachChildProcesses": true
3834
}
3935
]

SECURITY.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Currently being supported with security updates.
66

77
| Version | Supported |
88
| -------- | ------------------ |
9-
| >= 1.0.0 | :white_check_mark: |
9+
| >= 3.0.0 | :white_check_mark: |
1010

1111
## Reporting a Vulnerability
1212

@@ -35,7 +35,7 @@ When the security team receives a security bug report, they will assign it
3535
to a primary handler. This person will coordinate the fix and release
3636
process, involving the following steps:
3737

38-
* Confirm the problem and determine the affected versions.
39-
* Audit code to find any potential similar problems.
40-
* Prepare fixes for all releases still under maintenance. These fixes
38+
* Confirm the problem and determine the affected versions.
39+
* Audit code to find any potential similar problems.
40+
* Prepare fixes for all releases still under maintenance. These fixes
4141
will be released as fast as possible to NPM.

app/repository/SearchRepository.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { SingletonProto, AccessLevel, Inject } from '@eggjs/tegg';
22
import { SearchAdapter } from '../common/typing';
33
import { AuthorType, CnpmcorePatchInfo, PackageManifestType } from './PackageRepository';
4+
import { estypes } from '@elastic/elasticsearch';
45

56
export type SearchJSONPickKey = '_rev' | 'name' | 'description' | 'keywords' | 'license' | 'maintainers' | 'dist-tags' | '_source_registry_name';
67

@@ -34,7 +35,7 @@ export class SearchRepository {
3435
private readonly searchAdapter: SearchAdapter;
3536

3637

37-
async searchPackage(query) {
38+
async searchPackage(query): Promise<estypes.SearchHitsMetadata<SearchManifestType>> {
3839
return await this.searchAdapter.search<SearchManifestType>(query);
3940
}
4041

0 commit comments

Comments
 (0)