@shushed/helpers 0.0.228 → 0.0.229

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -97,7 +97,7 @@ class Runtime {
97
97
  this.workflowId = opts.workflowId || opts.workflow?.id || '';
98
98
  if (opts.trigger?.label) {
99
99
  this.triggerId = opts.trigger.id || '00000000-0000-0000-0000-000000000000';
100
- this.triggerName = opts.trigger.label.split(/\sv\d/)[0].trim() || this.workflowId;
100
+ this.triggerName = opts.trigger?.label?.split(/\sv\d/)[0]?.trim() || this.workflowId;
101
101
  this.triggerVersion = buildSemver((opts.trigger.label.split(/\sv\d/)[1]?.trim() || 'v0').replace(/^v/, ''));
102
102
  this.triggerDataProperties = opts.trigger.data?.properties;
103
103
  this.triggerConfigProperties = opts.trigger.config?.properties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.228",
3
+ "version": "0.0.229",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",