fixed issue testing in browser

This commit is contained in:
Juanra Dikal 2022-08-01 04:40:02 +02:00
parent a545f2c59c
commit a8ae97b888
4 changed files with 868 additions and 9 deletions

View File

@ -31,7 +31,8 @@ jobs:
- name: build
run: npm run build:js
- name: docs
- if: matrix.node-version == '16.x'
name: docs
run: npm run docs
- name: node tests

View File

@ -60,6 +60,11 @@ export default [
...sourcemapOutputOptions,
format: 'es'
},
{
file: join(dstDir, 'bundles/esm.js'),
...sourcemapOutputOptions,
format: 'es'
},
{
file: join(dstDir, 'bundles/esm.min.js'),
format: 'es',

853
dist/bundles/esm.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -155,7 +155,7 @@ A promise that resolves to a boolean that is either true (a probably prime numbe
#### Defined in
[src/ts/isProbablyPrime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/995b7b6/src/ts/isProbablyPrime.ts#L21)
[src/ts/isProbablyPrime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/isProbablyPrime.ts#L21)
___
@ -322,7 +322,7 @@ A promise that resolves to a bigint probable prime of bitLength bits.
#### Defined in
[src/ts/prime.ts:25](https://github.com/juanelas/bigint-crypto-utils/blob/995b7b6/src/ts/prime.ts#L25)
[src/ts/prime.ts:25](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/prime.ts#L25)
___
@ -352,7 +352,7 @@ A bigint probable prime of bitLength bits.
#### Defined in
[src/ts/prime.ts:102](https://github.com/juanelas/bigint-crypto-utils/blob/995b7b6/src/ts/prime.ts#L102)
[src/ts/prime.ts:102](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/prime.ts#L102)
___
@ -381,7 +381,7 @@ A cryptographically secure random bigint between [min,max]
#### Defined in
[src/ts/randBetween.ts:15](https://github.com/juanelas/bigint-crypto-utils/blob/995b7b6/src/ts/randBetween.ts#L15)
[src/ts/randBetween.ts:15](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBetween.ts#L15)
___
@ -410,7 +410,7 @@ A Promise that resolves to a UInt8Array/Buffer (Browser/Node.js) filled with cry
#### Defined in
[src/ts/randBits.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/995b7b6/src/ts/randBits.ts#L14)
[src/ts/randBits.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBits.ts#L14)
___
@ -439,7 +439,7 @@ A Uint8Array/Buffer (Browser/Node.js) filled with cryptographically secure rando
#### Defined in
[src/ts/randBits.ts:45](https://github.com/juanelas/bigint-crypto-utils/blob/995b7b6/src/ts/randBits.ts#L45)
[src/ts/randBits.ts:45](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBits.ts#L45)
___
@ -468,7 +468,7 @@ A promise that resolves to a UInt8Array/Buffer (Browser/Node.js) filled with cry
#### Defined in
[src/ts/randBytes.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/995b7b6/src/ts/randBytes.ts#L14)
[src/ts/randBytes.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBytes.ts#L14)
___
@ -497,7 +497,7 @@ A UInt8Array/Buffer (Browser/Node.js) filled with cryptographically secure rando
#### Defined in
[src/ts/randBytes.ts:47](https://github.com/juanelas/bigint-crypto-utils/blob/995b7b6/src/ts/randBytes.ts#L47)
[src/ts/randBytes.ts:47](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBytes.ts#L47)
___