-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vgoma
committed
Nov 4, 2021
1 parent
c0566b7
commit c221132
Showing
33 changed files
with
519 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Функция кастомной реализации с доступом к Cades плагину напрямую | ||
* | ||
* @callback executeCallback | ||
* @param exposedAPI - API доступные для кастомной реализации | ||
* @param exposedAPI.cadesplugin - Cades плагин, предоставляемый КриптоПРО | ||
* @param exposedAPI._generateCadesFn - функция, компилирующая тело передаваемой javascript функции для текущей среды | ||
* @param exposedAPI.__cadesAsyncToken__ - синтетический маркер, подменяемый в рантайме | ||
* @param exposedAPI.__createCadesPluginObject__ - функция для создания синхронных/асинхронных Cades объектов | ||
* @param exposedAPI._extractMeaningfulErrorMessage - хелпер для извлечения текста ошибки | ||
* | ||
* @returns результат выполнения кастомной реализации | ||
*/ | ||
/** | ||
* Компилирует и выполняет переданную функцию для доступной браузерной среды (синхронной/асинхронной) | ||
* | ||
* @param {executeCallback} callback - функция, использующая низкоуровневый доступ к Cades плагину | ||
* | ||
* @returns асинхронный результат выполнения передаваемой функции | ||
*/ | ||
export declare const execute: (callback: (exposedAPI: { | ||
cadesplugin: any; | ||
_generateCadesFn: (callback: Function) => string; | ||
__cadesAsyncToken__: object; | ||
__createCadesPluginObject__: (...args: any[]) => any; | ||
_extractMeaningfulErrorMessage: (error: Error) => string; | ||
}) => any) => Promise<any>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.