This commit is contained in:
vgoma 2020-04-05 18:28:49 +03:00
parent 889213670e
commit 1f452c4ca0
17 changed files with 25 additions and 25 deletions

View File

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

4
dist/crypto-pro.js vendored
View File

@ -692,7 +692,7 @@ exports.createSignature = _afterPluginsLoaded_1._afterPluginsLoaded(function (th
return [4 /*yield*/, _getCadesCert_1._getCadesCert(thumbprint)];
case 1:
cadesCertificate = _a.sent();
return [2 /*return*/, eval(_generateCadesFn_1._generateCadesFn(function signData() {
return [2 /*return*/, eval(_generateCadesFn_1._generateCadesFn(function createSignature() {
var cadesAttrs;
var cadesSignedData;
var cadesSigner;
@ -899,7 +899,7 @@ exports.getUserCertificates = _afterPluginsLoaded_1._afterPluginsLoaded(function
if (!resetCache && certificatesCache) {
return certificatesCache;
}
return eval(_generateCadesFn_1._generateCadesFn(function getCertsList() {
return eval(_generateCadesFn_1._generateCadesFn(function getUserCertificates() {
var cadesStore;
try {
cadesStore = _generateCadesFn_1.__cadesAsyncToken__ + _generateCadesFn_1.__createCadesPluginObject__('CAdESCOM.Store');

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": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.0.3.tgz",
"integrity": "sha512-mvs9QMkaFFBALl4R+gfZgExyHwmRA2RosC9DF1DRfI6MSFoglnkQsJ8qNmc1S8YtgWs+T855ppMH3tue/+ywUw=="
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.0.4.tgz",
"integrity": "sha512-fR8RE7iApGdvb0Z6vKV4yeaapKZyzZf/98ShA7i4Y2Mn1p3iwpL22X6gQWlFc/VGvz29dKomvvWiXiVYmOryfw=="
},
"css": {
"version": "2.2.4",

View File

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

View File

@ -3712,9 +3712,9 @@
}
},
"crypto-pro": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.0.3.tgz",
"integrity": "sha512-mvs9QMkaFFBALl4R+gfZgExyHwmRA2RosC9DF1DRfI6MSFoglnkQsJ8qNmc1S8YtgWs+T855ppMH3tue/+ywUw=="
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.0.4.tgz",
"integrity": "sha512-fR8RE7iApGdvb0Z6vKV4yeaapKZyzZf/98ShA7i4Y2Mn1p3iwpL22X6gQWlFc/VGvz29dKomvvWiXiVYmOryfw=="
},
"css": {
"version": "2.2.4",

View File

@ -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.0.3",
"crypto-pro": "2.0.4",
"react": "^16.13.1",
"react-app-polyfill": "1.0.6",
"react-dom": "^16.13.1",

View File

@ -42,9 +42,9 @@
"dev": true
},
"crypto-pro": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.0.3.tgz",
"integrity": "sha512-mvs9QMkaFFBALl4R+gfZgExyHwmRA2RosC9DF1DRfI6MSFoglnkQsJ8qNmc1S8YtgWs+T855ppMH3tue/+ywUw=="
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/crypto-pro/-/crypto-pro-2.0.4.tgz",
"integrity": "sha512-fR8RE7iApGdvb0Z6vKV4yeaapKZyzZf/98ShA7i4Y2Mn1p3iwpL22X6gQWlFc/VGvz29dKomvvWiXiVYmOryfw=="
},
"fs.realpath": {
"version": "1.0.0",

View File

@ -13,6 +13,6 @@
"symlink-dir": "3.1.2"
},
"dependencies": {
"crypto-pro": "2.0.3"
"crypto-pro": "2.0.4"
}
}

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

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

View File

@ -541,7 +541,7 @@ const _getDateObj_1 = __webpack_require__(/*! ../helpers/_getDateObj */ "./helpe
exports.createSignature = _afterPluginsLoaded_1._afterPluginsLoaded((thumbprint, dataBase64, detachedSignature = true) => __awaiter(void 0, void 0, void 0, function* () {
const { cadesplugin } = window;
const cadesCertificate = yield _getCadesCert_1._getCadesCert(thumbprint);
return eval(_generateCadesFn_1._generateCadesFn(function signData() {
return eval(_generateCadesFn_1._generateCadesFn(function createSignature() {
let cadesAttrs;
let cadesSignedData;
let cadesSigner;
@ -709,7 +709,7 @@ exports.getUserCertificates = _afterPluginsLoaded_1._afterPluginsLoaded((resetCa
if (!resetCache && certificatesCache) {
return certificatesCache;
}
return eval(_generateCadesFn_1._generateCadesFn(function getCertsList() {
return eval(_generateCadesFn_1._generateCadesFn(function getUserCertificates() {
let cadesStore;
try {
cadesStore = _generateCadesFn_1.__cadesAsyncToken__ + _generateCadesFn_1.__createCadesPluginObject__('CAdESCOM.Store');

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",
"version": "2.0.3",
"version": "2.0.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

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

View File

@ -19,7 +19,7 @@ export const createSignature = _afterPluginsLoaded(
const cadesCertificate = await _getCadesCert(thumbprint);
return eval(
_generateCadesFn(function signData(): string {
_generateCadesFn(function createSignature(): string {
let cadesAttrs;
let cadesSignedData;
let cadesSigner;

View File

@ -21,7 +21,7 @@ export const getUserCertificates = _afterPluginsLoaded((resetCache: boolean = fa
}
return eval(
_generateCadesFn(function getCertsList(): Certificate[] {
_generateCadesFn(function getUserCertificates(): Certificate[] {
let cadesStore;
try {