fixed bug in node ESM

This commit is contained in:
Juanra Dikal 2022-08-01 22:21:29 +02:00
parent 13829b78b0
commit c158f4dceb
3 changed files with 13 additions and 13 deletions

View File

@ -162,8 +162,8 @@ export default [
plugins: [ plugins: [
replace({ replace({
IS_BROWSER: false, IS_BROWSER: false,
__filename: `'${join(rootDir, exports['.'].node.import)}'`, __filename: `'${exports['.'].node.import}'`,
__dirname: `'${dirname(join(rootDir, exports['.'].node.import))}'`, __dirname: `'${dirname(exports['.'].node.import)}'`,
preventAssignment: true preventAssignment: true
}), }),
typescriptPlugin(tsBundleOptions), typescriptPlugin(tsBundleOptions),

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 #### Defined in
[src/ts/isProbablyPrime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/0fd1912/src/ts/isProbablyPrime.ts#L21) [src/ts/isProbablyPrime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/13829b7/src/ts/isProbablyPrime.ts#L21)
___ ___
@ -322,7 +322,7 @@ A promise that resolves to a bigint probable prime of bitLength bits.
#### Defined in #### Defined in
[src/ts/prime.ts:29](https://github.com/juanelas/bigint-crypto-utils/blob/0fd1912/src/ts/prime.ts#L29) [src/ts/prime.ts:29](https://github.com/juanelas/bigint-crypto-utils/blob/13829b7/src/ts/prime.ts#L29)
___ ___
@ -352,7 +352,7 @@ A bigint probable prime of bitLength bits.
#### Defined in #### Defined in
[src/ts/prime.ts:107](https://github.com/juanelas/bigint-crypto-utils/blob/0fd1912/src/ts/prime.ts#L107) [src/ts/prime.ts:107](https://github.com/juanelas/bigint-crypto-utils/blob/13829b7/src/ts/prime.ts#L107)
___ ___
@ -381,7 +381,7 @@ A cryptographically secure random bigint between [min,max]
#### Defined in #### Defined in
[src/ts/randBetween.ts:15](https://github.com/juanelas/bigint-crypto-utils/blob/0fd1912/src/ts/randBetween.ts#L15) [src/ts/randBetween.ts:15](https://github.com/juanelas/bigint-crypto-utils/blob/13829b7/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 #### Defined in
[src/ts/randBits.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/0fd1912/src/ts/randBits.ts#L14) [src/ts/randBits.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/13829b7/src/ts/randBits.ts#L14)
___ ___
@ -439,7 +439,7 @@ A Uint8Array/Buffer (Browser/Node.js) filled with cryptographically secure rando
#### Defined in #### Defined in
[src/ts/randBits.ts:45](https://github.com/juanelas/bigint-crypto-utils/blob/0fd1912/src/ts/randBits.ts#L45) [src/ts/randBits.ts:45](https://github.com/juanelas/bigint-crypto-utils/blob/13829b7/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 #### Defined in
[src/ts/randBytes.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/0fd1912/src/ts/randBytes.ts#L14) [src/ts/randBytes.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/13829b7/src/ts/randBytes.ts#L14)
___ ___
@ -497,7 +497,7 @@ A UInt8Array/Buffer (Browser/Node.js) filled with cryptographically secure rando
#### Defined in #### Defined in
[src/ts/randBytes.ts:46](https://github.com/juanelas/bigint-crypto-utils/blob/0fd1912/src/ts/randBytes.ts#L46) [src/ts/randBytes.ts:46](https://github.com/juanelas/bigint-crypto-utils/blob/13829b7/src/ts/randBytes.ts#L46)
___ ___