Compare commits

...

2 Commits

Author SHA1 Message Date
7c450876f2 5.1.2 2024-09-18 00:46:53 +02:00
d7c3752dfa fix(TapNodeTools): Default parameter added to createHttpsCert method 2024-09-18 00:46:52 +02:00
4 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,10 @@
# Changelog # 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) ## 2024-09-18 - 5.1.1 - fix(ts_node)
Fixed createHttpsCert interface Fixed createHttpsCert interface

View File

@ -1,7 +1,7 @@
{ {
"name": "@push.rocks/tapbundle", "name": "@push.rocks/tapbundle",
"private": false, "private": false,
"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.", "description": "A test automation library bundling utilities and tools for TAP (Test Anything Protocol) based testing, specifically tailored for tapbuffer.",
"exports": { "exports": {
".": "./dist_ts/index.js", ".": "./dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/tapbundle', 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.' description: 'A test automation library bundling utilities and tools for TAP (Test Anything Protocol) based testing, specifically tailored for tapbuffer.'
} }

View File

@ -17,7 +17,7 @@ class TapNodeTools {
return result; 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', { const key = plugins.crypto.generateKeyPairSync('rsa', {
modulusLength: 2048, modulusLength: 2048,
publicExponent: 65537, publicExponent: 65537,