@appsemble/utils 0.37.6 → 0.38.0

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.37.6/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.38.0/config/assets/logo.svg) Appsemble Utilities
2
2
 
3
3
  > Internal utility functions used across multiple Appsemble projects.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/utils)](https://www.npmjs.com/package/@appsemble/utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.37.6/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.37.6)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.38.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.38.0)
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 @@ not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.37.6/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.38.0/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
package/appMessages.js CHANGED
@@ -106,9 +106,12 @@ export function extractAppMessages(app, onBlock) {
106
106
  }
107
107
  }
108
108
  if (page.type === 'loop') {
109
- messages.app[`${prefix}.steps.first`] = 'first';
109
+ Object.assign(messages.messageIds, findMessageIds(page.start?.name), findMessageIds(page.end?.name));
110
+ messages.app[`${prefix}.steps.first`] =
111
+ (typeof page.start?.name === 'string' ? page.start.name : '') || 'first';
110
112
  messages.app[`${prefix}.steps`] = 'step';
111
- messages.app[`${prefix}.steps.last`] = 'last';
113
+ messages.app[`${prefix}.steps.last`] =
114
+ (typeof page.end?.name === 'string' ? page.end.name : '') || 'last';
112
115
  }
113
116
  },
114
117
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.37.6",
3
+ "version": "0.38.0",
4
4
  "description": "Utility functions used in Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -39,8 +39,8 @@
39
39
  "test": "vitest"
40
40
  },
41
41
  "dependencies": {
42
- "@appsemble/lang-sdk": "0.37.6",
43
- "@appsemble/types": "0.37.6",
42
+ "@appsemble/lang-sdk": "0.38.0",
43
+ "@appsemble/types": "0.38.0",
44
44
  "@fortawesome/fontawesome-common-types": "^6.0.0",
45
45
  "axios": "^1.0.0",
46
46
  "langmap": "^0.0.16",
@@ -52,7 +52,7 @@
52
52
  "@types/langmap": "0.0.3",
53
53
  "bulma": "=0.9.4",
54
54
  "koas-core": "0.7.0",
55
- "vitest": "4.1.10"
55
+ "vitest": "4.1.11"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=24"