fix(TapNodeTools): Default parameter added to createHttpsCert method
This commit is contained in:
parent
f53e5bcc83
commit
d7c3752dfa
@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## 2024-09-18 - 5.1.2 - fix(TapNodeTools)
|
||||
Default parameter added to createHttpsCert method
|
||||
|
||||
- Updated createHttpsCert method to provide a default value for the parameter commonName.
|
||||
|
||||
## 2024-09-18 - 5.1.1 - fix(ts_node)
|
||||
Fixed createHttpsCert interface
|
||||
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/tapbundle',
|
||||
version: '5.1.1',
|
||||
version: '5.1.2',
|
||||
description: 'A test automation library bundling utilities and tools for TAP (Test Anything Protocol) based testing, specifically tailored for tapbuffer.'
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ class TapNodeTools {
|
||||
return result;
|
||||
}
|
||||
|
||||
public async createHttpsCert(commonName: string): Promise<{ key: string, cert: string }> {
|
||||
public async createHttpsCert(commonName: string = 'localhost'): Promise<{ key: string, cert: string }> {
|
||||
const key = plugins.crypto.generateKeyPairSync('rsa', {
|
||||
modulusLength: 2048,
|
||||
publicExponent: 65537,
|
||||
|
Loading…
Reference in New Issue
Block a user