We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7584ed8 commit aeabaeeCopy full SHA for aeabaee
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "talkops",
3
"description": "TalkOps SDK",
4
- "version": "2.13.0",
+ "version": "2.13.1",
5
"author": "bierdok",
6
"license": "MIT",
7
"main": "index.mjs",
parameter.js
@@ -69,8 +69,8 @@ export default class Parameter {
69
* @returns {Parameter} The updated parameter instance.
70
*/
71
setDefaultValue(defaultValue) {
72
- if (typeof defaultValue !== 'string' || defaultValue.trim() === '') {
73
- throw new Error('defaultValue must be a non-empty string.')
+ if (typeof defaultValue !== 'string') {
+ throw new Error('defaultValue must be a string.')
74
}
75
this.#defaultValue = defaultValue
76
return this
0 commit comments