Merge pull request #16 from kernusr/updates

updates
This commit is contained in:
Artem Vasilev 2021-06-04 13:56:32 +03:00 committed by GitHub
commit dcae2f3987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15535 additions and 2343 deletions

17864
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -74,7 +74,7 @@
"rimraf": "3.0.2",
"sinon": "9.0.1",
"tar": "6.0.1",
"ts-jest": "25.2.1",
"ts-jest": "^25.5.1",
"ts-loader": "6.2.2",
"typescript": "3.8.3",
"webpack": "4.42.1",

View File

@ -15,7 +15,8 @@ describe('_generateCadesFn', () => {
console.log('hello from named function');
}),
).toEqual(
`(function anonymous() {
`(function anonymous(
) {
console.log('hello from named function');
@ -25,7 +26,8 @@ describe('_generateCadesFn', () => {
test('generates function body from arrow function callback', () => {
expect(_generateCadesFn(() => console.log('hello from arrow function'))).toEqual(
`(function anonymous() {
`(function anonymous(
) {
return console.log('hello from arrow function');
})();//# sourceURL=crypto-pro_dynamicFn.js`,
);
@ -41,7 +43,8 @@ describe('_generateCadesFn', () => {
void (__cadesAsyncToken__ + cadesBarNoMatterWhat.whateverMethod(cadesFoo));
}),
).toEqual(
`(function anonymous() {
`(function anonymous(
) {
var cadesFoo = cadesplugin.CreateObject('CADESCOM.Foo');
var cadesBar = cadesplugin.CreateObject('CAdESCOM.Bar');
@ -69,7 +72,8 @@ describe('_generateCadesFn', () => {
void (__cadesAsyncToken__ + cadesBarNoMatterWhat.whateverMethod(cadesFoo));
}),
).toEqual(
`cadesplugin.async_spawn(function* anonymous() {
`cadesplugin.async_spawn(function* anonymous(
) {
var cadesFoo = yield cadesplugin.CreateObjectAsync('CADESCOM.Foo');
var cadesBar = yield cadesplugin.CreateObjectAsync('CAdESCOM.Bar');