This commit is contained in:
vgoma 2023-01-06 22:48:21 +03:00
parent 287969537a
commit c784890145
17 changed files with 25 additions and 25 deletions

View File

@ -1,4 +1,5 @@
import { TagTranslation } from '../../helpers/_parseCertInfo'; import { TagTranslation } from '../../helpers/_parseCertInfo';
import { AlgorithmInfo } from './getAlgorithm';
import { ExtendedKeysTranslations } from './getDecodedExtendedKeyUsage'; import { ExtendedKeysTranslations } from './getDecodedExtendedKeyUsage';
export declare type CadesCertificate = any; export declare type CadesCertificate = any;
export declare class Certificate { export declare class Certificate {
@ -14,7 +15,7 @@ export declare class Certificate {
getIssuerInfo(): Promise<TagTranslation[]>; getIssuerInfo(): Promise<TagTranslation[]>;
getExtendedKeyUsage(): Promise<string[]>; getExtendedKeyUsage(): Promise<string[]>;
getDecodedExtendedKeyUsage(): Promise<ExtendedKeysTranslations>; getDecodedExtendedKeyUsage(): Promise<ExtendedKeysTranslations>;
getAlgorithm(): Promise<string>; getAlgorithm(): Promise<AlgorithmInfo>;
getCadesProp(propName: any): Promise<any>; getCadesProp(propName: any): Promise<any>;
isValid(): Promise<boolean>; isValid(): Promise<boolean>;
exportBase64(): Promise<string>; exportBase64(): Promise<string>;

View File

@ -1,4 +1,4 @@
interface AlgorithmInfo { export interface AlgorithmInfo {
algorithm: string; algorithm: string;
oid: string; oid: string;
} }
@ -8,4 +8,3 @@ interface AlgorithmInfo {
* @returns информацию об алгоритме и его OID'е * @returns информацию об алгоритме и его OID'е
*/ */
export declare const getAlgorithm: () => Promise<AlgorithmInfo>; export declare const getAlgorithm: () => Promise<AlgorithmInfo>;
export {};

View File

@ -1,4 +1,4 @@
// Type definitions for crypto-pro 2.3.0 // Type definitions for crypto-pro 2.3.1
// Project: crypto-pro // Project: crypto-pro
// Definitions by: Vitalii Goma https://github.com/vgoma // Definitions by: Vitalii Goma https://github.com/vgoma

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3308,9 +3308,9 @@
} }
}, },
"crypto-pro": { "crypto-pro": {
"version": "2.3.0", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.3.0.tgz", "resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.3.1.tgz",
"integrity": "sha512-cppYuMRRijEaZ0UKAOW5L1CQIvzQA3DTRp4pARINl6K8Pp1JMhlch5TyWwv6Z4Y3x677A9xxcW62okHD91Veqg==" "integrity": "sha512-Duv6qZr8ZHY1YT+yy4NnS/EBrVv9yLeQfeLyAAZlk1rUtKTBNW9xzjkC89pKctOUCvyP4hbWJF8CKKBch9N22w=="
}, },
"css": { "css": {
"version": "2.2.4", "version": "2.2.4",

View File

@ -21,7 +21,7 @@
"@angular/platform-browser": "~9.0.7", "@angular/platform-browser": "~9.0.7",
"@angular/platform-browser-dynamic": "~9.0.7", "@angular/platform-browser-dynamic": "~9.0.7",
"@angular/router": "~9.0.7", "@angular/router": "~9.0.7",
"crypto-pro": "^2.3.0", "crypto-pro": "^2.3.1",
"rxjs": "~6.5.4", "rxjs": "~6.5.4",
"tslib": "^1.10.0", "tslib": "^1.10.0",
"zone.js": "~0.10.2" "zone.js": "~0.10.2"

View File

@ -3712,9 +3712,9 @@
} }
}, },
"crypto-pro": { "crypto-pro": {
"version": "2.3.0", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.3.0.tgz", "resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.3.1.tgz",
"integrity": "sha512-cppYuMRRijEaZ0UKAOW5L1CQIvzQA3DTRp4pARINl6K8Pp1JMhlch5TyWwv6Z4Y3x677A9xxcW62okHD91Veqg==" "integrity": "sha512-Duv6qZr8ZHY1YT+yy4NnS/EBrVv9yLeQfeLyAAZlk1rUtKTBNW9xzjkC89pKctOUCvyP4hbWJF8CKKBch9N22w=="
}, },
"css": { "css": {
"version": "2.2.4", "version": "2.2.4",

View File

@ -7,7 +7,7 @@
"@testing-library/jest-dom": "4.2.4", "@testing-library/jest-dom": "4.2.4",
"@testing-library/react": "9.5.0", "@testing-library/react": "9.5.0",
"@testing-library/user-event": "7.2.1", "@testing-library/user-event": "7.2.1",
"crypto-pro": "^2.3.0", "crypto-pro": "^2.3.1",
"react": "^16.13.1", "react": "^16.13.1",
"react-app-polyfill": "1.0.6", "react-app-polyfill": "1.0.6",
"react-dom": "^16.13.1", "react-dom": "^16.13.1",

View File

@ -42,9 +42,9 @@
"dev": true "dev": true
}, },
"crypto-pro": { "crypto-pro": {
"version": "2.3.0", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.3.0.tgz", "resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.3.1.tgz",
"integrity": "sha512-cppYuMRRijEaZ0UKAOW5L1CQIvzQA3DTRp4pARINl6K8Pp1JMhlch5TyWwv6Z4Y3x677A9xxcW62okHD91Veqg==" "integrity": "sha512-Duv6qZr8ZHY1YT+yy4NnS/EBrVv9yLeQfeLyAAZlk1rUtKTBNW9xzjkC89pKctOUCvyP4hbWJF8CKKBch9N22w=="
}, },
"fs.realpath": { "fs.realpath": {
"version": "1.0.0", "version": "1.0.0",

View File

@ -13,6 +13,6 @@
"symlink-dir": "3.1.2" "symlink-dir": "3.1.2"
}, },
"dependencies": { "dependencies": {
"crypto-pro": "^2.3.0" "crypto-pro": "^2.3.1"
} }
} }

View File

@ -1,4 +1,5 @@
import { TagTranslation } from '../../helpers/_parseCertInfo'; import { TagTranslation } from '../../helpers/_parseCertInfo';
import { AlgorithmInfo } from './getAlgorithm';
import { ExtendedKeysTranslations } from './getDecodedExtendedKeyUsage'; import { ExtendedKeysTranslations } from './getDecodedExtendedKeyUsage';
export declare type CadesCertificate = any; export declare type CadesCertificate = any;
export declare class Certificate { export declare class Certificate {
@ -14,7 +15,7 @@ export declare class Certificate {
getIssuerInfo(): Promise<TagTranslation[]>; getIssuerInfo(): Promise<TagTranslation[]>;
getExtendedKeyUsage(): Promise<string[]>; getExtendedKeyUsage(): Promise<string[]>;
getDecodedExtendedKeyUsage(): Promise<ExtendedKeysTranslations>; getDecodedExtendedKeyUsage(): Promise<ExtendedKeysTranslations>;
getAlgorithm(): Promise<string>; getAlgorithm(): Promise<AlgorithmInfo>;
getCadesProp(propName: any): Promise<any>; getCadesProp(propName: any): Promise<any>;
isValid(): Promise<boolean>; isValid(): Promise<boolean>;
exportBase64(): Promise<string>; exportBase64(): Promise<string>;

View File

@ -1,4 +1,4 @@
interface AlgorithmInfo { export interface AlgorithmInfo {
algorithm: string; algorithm: string;
oid: string; oid: string;
} }
@ -8,4 +8,3 @@ interface AlgorithmInfo {
* @returns информацию об алгоритме и его OID'е * @returns информацию об алгоритме и его OID'е
*/ */
export declare const getAlgorithm: () => Promise<AlgorithmInfo>; export declare const getAlgorithm: () => Promise<AlgorithmInfo>;
export {};

2
lib/crypto-pro.d.ts vendored
View File

@ -1,4 +1,4 @@
// Type definitions for crypto-pro 2.3.0 // Type definitions for crypto-pro 2.3.1
// Project: crypto-pro // Project: crypto-pro
// Definitions by: Vitalii Goma https://github.com/vgoma // Definitions by: Vitalii Goma https://github.com/vgoma

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "crypto-pro", "name": "crypto-pro",
"version": "2.3.0", "version": "2.3.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "crypto-pro", "name": "crypto-pro",
"version": "2.3.0", "version": "2.3.1",
"description": "API для взаимодействия с КриптоПро", "description": "API для взаимодействия с КриптоПро",
"main": "./lib/crypto-pro.js", "main": "./lib/crypto-pro.js",
"types": "./lib/crypto-pro.d.ts", "types": "./lib/crypto-pro.d.ts",