@appsemble/node-utils 0.34.8 → 0.34.9

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.34.8/config/assets/logo.svg) Appsemble Node Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.34.9/config/assets/logo.svg) Appsemble Node Utilities
2
2
 
3
3
  > NodeJS utilities used by Appsemble internally.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/node-utils)](https://www.npmjs.com/package/@appsemble/node-utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.34.8/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.34.8)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.34.9/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.34.9)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -26,5 +26,5 @@ compatibility is not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.34.8/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.34.9/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/node-utils",
3
- "version": "0.34.8",
3
+ "version": "0.34.9",
4
4
  "description": "NodeJS utilities used by Appsemble internally.",
5
5
  "keywords": [
6
6
  "app",
@@ -40,9 +40,9 @@
40
40
  "test": "vitest"
41
41
  },
42
42
  "dependencies": {
43
- "@appsemble/types": "0.34.8",
44
- "@appsemble/utils": "0.34.8",
45
- "@appsemble/lang-sdk": "0.34.8",
43
+ "@appsemble/types": "0.34.9",
44
+ "@appsemble/utils": "0.34.9",
45
+ "@appsemble/lang-sdk": "0.34.9",
46
46
  "@formatjs/fast-memoize": "^2.0.0",
47
47
  "@fortawesome/fontawesome-free": "^6.0.0",
48
48
  "@kubernetes/client-node": "^0.22.2",
package/server/types.d.ts CHANGED
@@ -311,6 +311,7 @@ export interface SendNotificationsParams {
311
311
  to: string;
312
312
  title: string;
313
313
  body: string;
314
+ link: string;
314
315
  }
315
316
  export interface AppDetails {
316
317
  appPath: string;
@@ -36,7 +36,8 @@ export async function handleNotify(ctx, app, action, options) {
36
36
  const to = remap(action.to, data, remapperContext);
37
37
  const title = remap(action.title, data, remapperContext);
38
38
  const body = remap(action.body, data, remapperContext);
39
- await sendNotifications({ app, to, title, body });
39
+ const link = remap(action.link, data, remapperContext);
40
+ await sendNotifications({ app, to, title, body, link });
40
41
  ctx.status = 204;
41
42
  }
42
43
  function deserializeResource(data) {