lumia-plugin 0.3.2 → 0.3.4

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.
@@ -29,10 +29,9 @@ class ShowcasePluginTemplate extends Plugin {
29
29
  }
30
30
  }
31
31
 
32
- async actions(config = {}) {
33
- const actions = Array.isArray(config.actions) ? config.actions : [];
34
- for (const action of actions) {
35
- if (action?.type === "trigger_alert") {
32
+ async actions(config) {
33
+ for (const action of config.actions) {
34
+ if (action.type === "trigger_alert") {
36
35
  await this._triggerSampleAlert(action.value);
37
36
  }
38
37
  }
@@ -5,6 +5,6 @@
5
5
  "description": "Internal template illustrating settings, actions, variables, and alerts for Lumia Stream plugins.",
6
6
  "main": "main.js",
7
7
  "dependencies": {
8
- "@lumiastream/plugin": "^0.3.2"
8
+ "@lumiastream/plugin": "^0.3.4"
9
9
  }
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumia-plugin",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Command-line tools for creating, building, and validating Lumia Stream plugins.",
5
5
  "bin": {
6
6
  "lumia-plugin": "scripts/cli.js"
@@ -24,7 +24,7 @@
24
24
  "author": "Lumia Stream",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@lumiastream/plugin": "^0.3.2",
27
+ "@lumiastream/plugin": "^0.3.4",
28
28
  "jszip": "3.10.1"
29
29
  }
30
30
  }