Skip to content

Commit

Permalink
2.5.0
Browse files Browse the repository at this point in the history
Signed-off-by: vgoma <[email protected]>
  • Loading branch information
vgoma committed Jun 22, 2023
1 parent 498301e commit 67e932b
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 28 deletions.
9 changes: 8 additions & 1 deletion dist/api/createHash.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/// <reference types="node" />
import { TranscodeEncoding } from 'buffer';
declare type Options = {
hashedAlgorithm?: number;
encoding?: TranscodeEncoding;
};
/**
* Создает хеш сообщения по ГОСТ Р 34.11-2012 (по умолчанию 256 бит)
* https://ru.wikipedia.org/wiki/%D0%A1%D1%82%D1%80%D0%B8%D0%B1%D0%BE%D0%B3_(%D1%85%D0%B5%D1%88-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D1%8F)
Expand All @@ -7,4 +13,5 @@
*
* @returns хеш
*/
export declare const createHash: (unencryptedMessage: string | ArrayBuffer, hashedAlgorithm?: number) => Promise<string>;
export declare const createHash: (unencryptedMessage: string | ArrayBuffer, options?: Options) => Promise<string>;
export {};
2 changes: 1 addition & 1 deletion dist/crypto-pro.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for crypto-pro 2.4.0
// Type definitions for crypto-pro 2.5.0
// Project: crypto-pro
// Definitions by: Vitalii Goma https://github.com/vgoma

Expand Down
12 changes: 9 additions & 3 deletions dist/crypto-pro.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/crypto-pro.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/crypto-pro.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/crypto-pro.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/angular/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@angular/platform-browser": "^15.0.0",
"@angular/platform-browser-dynamic": "^15.0.0",
"@angular/router": "^15.0.0",
"crypto-pro": "^2.4.0",
"crypto-pro": "^2.5.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.12.0"
Expand Down
6 changes: 3 additions & 3 deletions examples/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@testing-library/jest-dom": "4.2.4",
"@testing-library/react": "9.5.0",
"@testing-library/user-event": "7.2.1",
"crypto-pro": "^2.4.0",
"crypto-pro": "^2.5.0",
"react": "^16.13.1",
"react-app-polyfill": "1.0.6",
"react-dom": "^16.13.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/script-tag/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/script-tag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"symlink-dir": "3.1.2"
},
"dependencies": {
"crypto-pro": "^2.4.0"
"crypto-pro": "^2.5.0"
}
}
9 changes: 8 additions & 1 deletion lib/api/createHash.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/// <reference types="node" />
import { TranscodeEncoding } from 'buffer';
declare type Options = {
hashedAlgorithm?: number;
encoding?: TranscodeEncoding;
};
/**
* Создает хеш сообщения по ГОСТ Р 34.11-2012 (по умолчанию 256 бит)
* https://ru.wikipedia.org/wiki/%D0%A1%D1%82%D1%80%D0%B8%D0%B1%D0%BE%D0%B3_(%D1%85%D0%B5%D1%88-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D1%8F)
Expand All @@ -7,4 +13,5 @@
*
* @returns хеш
*/
export declare const createHash: (unencryptedMessage: string | ArrayBuffer, hashedAlgorithm?: number) => Promise<string>;
export declare const createHash: (unencryptedMessage: string | ArrayBuffer, options?: Options) => Promise<string>;
export {};
2 changes: 1 addition & 1 deletion lib/crypto-pro.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for crypto-pro 2.4.0
// Type definitions for crypto-pro 2.5.0
// Project: crypto-pro
// Definitions by: Vitalii Goma https://github.com/vgoma

Expand Down
12 changes: 9 additions & 3 deletions lib/crypto-pro.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/crypto-pro.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crypto-pro",
"version": "2.4.0",
"version": "2.5.0",
"description": "API для взаимодействия с КриптоПро",
"main": "./lib/crypto-pro.js",
"types": "./lib/crypto-pro.d.ts",
Expand Down

0 comments on commit 67e932b

Please sign in to comment.