@things-factory/integration-notification 7.0.1-alpha.9 → 7.0.1-alpha.92

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-notification",
3
- "version": "7.0.1-alpha.9",
3
+ "version": "7.0.1-alpha.92",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -23,8 +23,8 @@
23
23
  "clean": "npm run clean:server"
24
24
  },
25
25
  "dependencies": {
26
- "@things-factory/integration-base": "^7.0.1-alpha.9",
27
- "@things-factory/notification": "^7.0.1-alpha.9"
26
+ "@things-factory/integration-base": "^7.0.1-alpha.92",
27
+ "@things-factory/notification": "^7.0.1-alpha.92"
28
28
  },
29
- "gitHead": "e77082517f5483704f1e884cbc81b7f94c0eec15"
29
+ "gitHead": "9cd59ab35277b7c8ac1e3677beb4bdca89a97980"
30
30
  }
@@ -12,9 +12,7 @@ async function Notification(step, { logger, domain, user, data, variables }) {
12
12
  } = step
13
13
 
14
14
  if (!receivers || !title || !body) {
15
- throw Error(
16
- `receivers, title and body should be defined: receivers - '${receivers}', title - '${title}', body - '${body}'`
17
- )
15
+ throw Error(`receivers, title and body should be defined: receivers - '${receivers}', title - '${title}', body - '${body}'`)
18
16
  }
19
17
 
20
18
  const repository = getRepository(User)
@@ -113,7 +111,11 @@ Notification.parameterSpec = [
113
111
  name: 'body',
114
112
  label: 'message-body',
115
113
  property: {
116
- language: 'text'
114
+ language: 'text',
115
+ showLineNumbers: true
116
+ },
117
+ styles: {
118
+ flex: '1'
117
119
  }
118
120
  },
119
121
  {