Merge pull request #83 from vese/master

Исправлен тип возвращаемого результата метода getAlgorithm
This commit is contained in:
Vitalii Goma 2023-01-06 22:35:30 +03:00 committed by GitHub
commit 287969537a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { ISSUER_TAGS_TRANSLATIONS, SUBJECT_TAGS_TRANSLATIONS } from '../../constants';
import { TagTranslation } from '../../helpers/_parseCertInfo';
import { exportBase64 } from './exportBase64';
import { getAlgorithm } from './getAlgorithm';
import { getAlgorithm, AlgorithmInfo } from './getAlgorithm';
import { getCadesProp } from './getCadesProp';
import { getDecodedExtendedKeyUsage, ExtendedKeysTranslations } from './getDecodedExtendedKeyUsage';
import { getExtendedKeyUsage } from './getExtendedKeyUsage';
@ -38,7 +38,7 @@ export class Certificate {
return getDecodedExtendedKeyUsage.call(this);
}
public getAlgorithm(): Promise<string> {
public getAlgorithm(): Promise<AlgorithmInfo> {
return getAlgorithm.call(this);
}

View File

@ -3,7 +3,7 @@ import { _extractMeaningfulErrorMessage } from '../../helpers/_extractMeaningful
import { __cadesAsyncToken__, _generateCadesFn } from '../../helpers/_generateCadesFn';
import { Certificate } from './certificate';
interface AlgorithmInfo {
export interface AlgorithmInfo {
algorithm: string;
oid: string;
}