@hedia/recommendation-screen 2.1.18-alpha.8 → 2.1.18

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.
Files changed (43) hide show
  1. package/.github/workflows/post-merge.yaml +37 -14
  2. package/.github/workflows/publish-alpha.yaml +5 -9
  3. package/README.md +7 -0
  4. package/alpha-release.sh +0 -1
  5. package/coverage/clover.xml +2 -2
  6. package/coverage/lcov-report/index.html +1 -1
  7. package/coverage/lcov-report/src/RecommendationScreen.tsx.html +1 -1
  8. package/coverage/lcov-report/src/__tests__/index.html +1 -1
  9. package/coverage/lcov-report/src/__tests__/utils.tsx.html +1 -1
  10. package/coverage/lcov-report/src/components/Header.tsx.html +1 -1
  11. package/coverage/lcov-report/src/components/InfoBars.tsx.html +1 -1
  12. package/coverage/lcov-report/src/components/InvisibleNumberInput.tsx.html +1 -1
  13. package/coverage/lcov-report/src/components/LimitationMessage.tsx.html +1 -1
  14. package/coverage/lcov-report/src/components/LineSeparator.tsx.html +1 -1
  15. package/coverage/lcov-report/src/components/RecentInsulin.tsx.html +1 -1
  16. package/coverage/lcov-report/src/components/RecommendationModal.tsx.html +1 -1
  17. package/coverage/lcov-report/src/components/RecommendedCarbs.tsx.html +1 -1
  18. package/coverage/lcov-report/src/components/RecommendedInsulin.tsx.html +1 -1
  19. package/coverage/lcov-report/src/components/Remeasure.tsx.html +1 -1
  20. package/coverage/lcov-report/src/components/TransferToLogbook.tsx.html +1 -1
  21. package/coverage/lcov-report/src/components/TwoOptionModal.tsx.html +1 -1
  22. package/coverage/lcov-report/src/components/activity/Activity.tsx.html +1 -1
  23. package/coverage/lcov-report/src/components/activity/ActivityIcon.tsx.html +1 -1
  24. package/coverage/lcov-report/src/components/activity/ActivityIntensity.tsx.html +1 -1
  25. package/coverage/lcov-report/src/components/activity/index.html +1 -1
  26. package/coverage/lcov-report/src/components/index.html +1 -1
  27. package/coverage/lcov-report/src/components/mood/Emotion.tsx.html +1 -1
  28. package/coverage/lcov-report/src/components/mood/MoodIcon.tsx.html +1 -1
  29. package/coverage/lcov-report/src/components/mood/index.html +1 -1
  30. package/coverage/lcov-report/src/index.html +1 -1
  31. package/coverage/lcov-report/src/locale/i18nUtils.ts.html +1 -1
  32. package/coverage/lcov-report/src/locale/index.html +1 -1
  33. package/coverage/lcov-report/src/utils/AttentionMessages.tsx.html +1 -1
  34. package/coverage/lcov-report/src/utils/Constants.ts.html +1 -1
  35. package/coverage/lcov-report/src/utils/RecommendationError.tsx.html +1 -1
  36. package/coverage/lcov-report/src/utils/RecommendationUtils.ts.html +1 -1
  37. package/coverage/lcov-report/src/utils/Translations.ts.html +1 -1
  38. package/coverage/lcov-report/src/utils/Utils.ts.html +1 -1
  39. package/coverage/lcov-report/src/utils/Validations.ts.html +1 -1
  40. package/coverage/lcov-report/src/utils/index.html +1 -1
  41. package/package.json +3 -2
  42. package/.github/workflows/publish.yml +0 -51
  43. package/.github/workflows/version-check.yml +0 -45
@@ -1,4 +1,4 @@
1
- name: Post-merge master - Update release number
1
+ name: Post-merge - Publish & Update package version
2
2
 
3
3
  on:
4
4
  pull_request:
@@ -9,29 +9,52 @@ on:
9
9
  env:
10
10
  SSH_PRIVATE_KEY: ${{ secrets.HEDIA_BOT_PRIVATE_SSH_KEY }}
11
11
  NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
12
- GITHUB_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
13
-
14
- permissions:
15
- pull-requests: read
16
- contents: write
17
12
 
18
13
  jobs:
19
- create-release:
20
- if: startsWith(github.head_ref, 'master/') && github.event.pull_request.merged == true
14
+ publish-package-push-master:
15
+ if: github.event.pull_request.merged == true
21
16
 
22
17
  runs-on: ubuntu-latest
23
18
 
19
+ strategy:
20
+ matrix:
21
+ node-version: [14.15]
22
+
24
23
  steps:
25
- - uses: actions/checkout@master
26
- with:
27
- persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
28
- fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
24
+ - uses: actions/checkout@v2
29
25
 
30
- - name: Removing alpha tag from package json
26
+ - name: Use Node.js ${{ matrix.node-version }}
27
+ uses: actions/setup-node@v2
28
+ with:
29
+ node-version: ${{ matrix.node-version }}
30
+
31
+ - name: Register ssh keys
32
+ uses: webfactory/ssh-agent@v0.5.3
33
+ with:
34
+ ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
35
+
36
+ - name: Register NPM access token
37
+ run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
38
+
39
+ - name: Removing alpha tag from package json
31
40
  run: chmod +x ./pre-release.sh && ./pre-release.sh
41
+
42
+ - name: Installing dependencies
43
+ run: npm ci
44
+
45
+ - id: publish
46
+ uses: JS-DevTools/npm-publish@v1
47
+ with:
48
+ token: ${{ env.NPM_TOKEN }}
49
+
50
+ - if: steps.publish.outputs.type == 'none'
51
+ run: |
52
+ echo "Failed to publish on npm, version already exists"
53
+ exit 1
32
54
 
33
55
  - name: Commit & Push changes
34
56
  uses: actions-js/push@master
35
57
  with:
36
58
  github_token: ${{ secrets.GITHUB_TOKEN }}
37
- message: 'chore: Post-publish master - ${date}'
59
+ branch: 'master'
60
+ message: 'Post-publish master package version update'
@@ -12,18 +12,16 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
14
  - uses: actions/checkout@v2
15
-
16
- - name: Use Node.js ${{ matrix.node-version }}
17
- uses: actions/setup-node@v1.4.4
15
+ - uses: actions/setup-node@v2
18
16
  with:
19
17
  node-version: ${{ matrix.node-version }}
20
18
 
21
19
  - name: Register ssh keys
22
- uses: webfactory/ssh-agent@v0.4.1
20
+ uses: webfactory/ssh-agent@v0.5.3
23
21
  with:
24
22
  ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
25
23
 
26
- - name: Register NPM access token and in
24
+ - name: Register NPM access token
27
25
  run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
28
26
 
29
27
  - name: Installing dependencies
@@ -39,7 +37,6 @@ jobs:
39
37
  run: |
40
38
  echo "Package JSON version is already published, please bump the version!"
41
39
  exit 1
42
- - name: Create comment
43
40
 
44
41
  - if: steps.publish-alpha.outputs.type != 'none'
45
42
  uses: izhangzhihao/delete-comment@master
@@ -53,6 +50,5 @@ jobs:
53
50
  with:
54
51
  issue-number: ${{ github.event.pull_request.number }}
55
52
  body: |
56
- 🎉Successfully released alpha version🎉
57
- ✅${{ steps.publish-alpha.outputs.version }}
58
-
53
+ 🎉 Successfully released alpha version 🎉
54
+ ✅ ${{ steps.publish-alpha.outputs.version }}
package/README.md CHANGED
@@ -1,3 +1,10 @@
1
1
  # **Recommendation Screen**
2
2
 
3
3
  ### **Usage**
4
+
5
+ ### **Auto-publishing to npm as an alpha-version package**
6
+
7
+ In order to easily test our npm packages, auto-publishing of an alpha version to npm has been implemented.
8
+ This will allow testers to easily install and test npm packages as they’ll be automatically published to npm at the moment of creating a Pull Request on GitHub.
9
+
10
+ More detailed information can be found here: <https://hedia.atlassian.net/wiki/spaces/DT/pages/2118811649/npm+packages+-+alpha+version+auto-publishing>
package/alpha-release.sh CHANGED
@@ -1,4 +1,3 @@
1
- #alias bingo = "$OSTYPE" == "linux-gnu" ? "sed" : "sed"
2
1
  alphaNumber="$(sed -n 's/\("version": "[0-9]\+\.[0-9]\+\.[0-9]\+\-alpha\.\)\([0-9]\+\)\("\)\(,\)/\2/p' package.json)"
3
2
  bumped="$((alphaNumber+1))"
4
3
  if [ "$alphaNumber" = "" ];
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1629121363650" clover="3.2.0">
3
- <project timestamp="1629121363650" name="All files">
2
+ <coverage generated="1629969497111" clover="3.2.0">
3
+ <project timestamp="1629969497112" name="All files">
4
4
  <metrics statements="608" coveredstatements="608" conditionals="366" coveredconditionals="366" methods="197" coveredmethods="197" elements="1171" coveredelements="1171" complexity="0" loc="608" ncloc="608" packages="7" files="27" classes="27"/>
5
5
  <package name="src">
6
6
  <metrics statements="105" coveredstatements="105" conditionals="47" coveredconditionals="47" methods="35" coveredmethods="35"/>
@@ -185,7 +185,7 @@
185
185
  <div class='footer quiet pad2 space-top1 center small'>
186
186
  Code coverage generated by
187
187
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
188
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
188
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
189
189
  </div>
190
190
  </div>
191
191
  <script src="prettify.js"></script>
@@ -2467,7 +2467,7 @@ const containerStyles = StyleSheet.create({
2467
2467
  <div class='footer quiet pad2 space-top1 center small'>
2468
2468
  Code coverage generated by
2469
2469
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
2470
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
2470
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
2471
2471
  </div>
2472
2472
  </div>
2473
2473
  <script src="../prettify.js"></script>
@@ -95,7 +95,7 @@
95
95
  <div class='footer quiet pad2 space-top1 center small'>
96
96
  Code coverage generated by
97
97
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
98
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
99
99
  </div>
100
100
  </div>
101
101
  <script src="../../prettify.js"></script>
@@ -517,7 +517,7 @@ export function getIcon(wrapper: RenderAPI, name: string, active: boolean): Reac
517
517
  <div class='footer quiet pad2 space-top1 center small'>
518
518
  Code coverage generated by
519
519
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
520
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
520
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
521
521
  </div>
522
522
  </div>
523
523
  <script src="../../prettify.js"></script>
@@ -340,7 +340,7 @@ const headerStyles = StyleSheet.create({
340
340
  <div class='footer quiet pad2 space-top1 center small'>
341
341
  Code coverage generated by
342
342
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
343
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
343
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
344
344
  </div>
345
345
  </div>
346
346
  <script src="../../prettify.js"></script>
@@ -502,7 +502,7 @@ export const infoStyles = StyleSheet.create({
502
502
  <div class='footer quiet pad2 space-top1 center small'>
503
503
  Code coverage generated by
504
504
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
505
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
505
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
506
506
  </div>
507
507
  </div>
508
508
  <script src="../../prettify.js"></script>
@@ -550,7 +550,7 @@ const inputStyles = StyleSheet.create({
550
550
  <div class='footer quiet pad2 space-top1 center small'>
551
551
  Code coverage generated by
552
552
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
553
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
553
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
554
554
  </div>
555
555
  </div>
556
556
  <script src="../../prettify.js"></script>
@@ -193,7 +193,7 @@ export default class LimitationMessage extends React.Component&lt;ILimitationMes
193
193
  <div class='footer quiet pad2 space-top1 center small'>
194
194
  Code coverage generated by
195
195
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
196
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
196
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
197
197
  </div>
198
198
  </div>
199
199
  <script src="../../prettify.js"></script>
@@ -145,7 +145,7 @@ const lineSeparatorStyles = StyleSheet.create({
145
145
  <div class='footer quiet pad2 space-top1 center small'>
146
146
  Code coverage generated by
147
147
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
148
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
148
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
149
149
  </div>
150
150
  </div>
151
151
  <script src="../../prettify.js"></script>
@@ -394,7 +394,7 @@ const recentInsulinStyles = StyleSheet.create({
394
394
  <div class='footer quiet pad2 space-top1 center small'>
395
395
  Code coverage generated by
396
396
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
397
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
397
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
398
398
  </div>
399
399
  </div>
400
400
  <script src="../../prettify.js"></script>
@@ -907,7 +907,7 @@ export const stylesModal = StyleSheet.create({
907
907
  <div class='footer quiet pad2 space-top1 center small'>
908
908
  Code coverage generated by
909
909
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
910
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
910
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
911
911
  </div>
912
912
  </div>
913
913
  <script src="../../prettify.js"></script>
@@ -1045,7 +1045,7 @@ const calculationStyles = StyleSheet.create({
1045
1045
  <div class='footer quiet pad2 space-top1 center small'>
1046
1046
  Code coverage generated by
1047
1047
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
1048
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
1048
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
1049
1049
  </div>
1050
1050
  </div>
1051
1051
  <script src="../../prettify.js"></script>
@@ -763,7 +763,7 @@ const recommendedInsulinStyles = StyleSheet.create({
763
763
  <div class='footer quiet pad2 space-top1 center small'>
764
764
  Code coverage generated by
765
765
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
766
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
766
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
767
767
  </div>
768
768
  </div>
769
769
  <script src="../../prettify.js"></script>
@@ -535,7 +535,7 @@ const variantStyles = StyleSheet.create({
535
535
  <div class='footer quiet pad2 space-top1 center small'>
536
536
  Code coverage generated by
537
537
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
538
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
538
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
539
539
  </div>
540
540
  </div>
541
541
  <script src="../../prettify.js"></script>
@@ -427,7 +427,7 @@ const addToLogbookStyles = StyleSheet.create({
427
427
  <div class='footer quiet pad2 space-top1 center small'>
428
428
  Code coverage generated by
429
429
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
430
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
430
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
431
431
  </div>
432
432
  </div>
433
433
  <script src="../../prettify.js"></script>
@@ -649,7 +649,7 @@ export const modalStyle = StyleSheet.create({
649
649
  <div class='footer quiet pad2 space-top1 center small'>
650
650
  Code coverage generated by
651
651
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
652
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
652
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
653
653
  </div>
654
654
  </div>
655
655
  <script src="../../prettify.js"></script>
@@ -355,7 +355,7 @@ const activityStyles = StyleSheet.create({
355
355
  <div class='footer quiet pad2 space-top1 center small'>
356
356
  Code coverage generated by
357
357
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
358
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
358
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
359
359
  </div>
360
360
  </div>
361
361
  <script src="../../../prettify.js"></script>
@@ -265,7 +265,7 @@ const activityIconStyles = StyleSheet.create({
265
265
  <div class='footer quiet pad2 space-top1 center small'>
266
266
  Code coverage generated by
267
267
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
268
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
268
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
269
269
  </div>
270
270
  </div>
271
271
  <script src="../../../prettify.js"></script>
@@ -265,7 +265,7 @@ const activityIntensityStyles = StyleSheet.create({
265
265
  <div class='footer quiet pad2 space-top1 center small'>
266
266
  Code coverage generated by
267
267
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
268
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
268
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
269
269
  </div>
270
270
  </div>
271
271
  <script src="../../../prettify.js"></script>
@@ -125,7 +125,7 @@
125
125
  <div class='footer quiet pad2 space-top1 center small'>
126
126
  Code coverage generated by
127
127
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
128
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
128
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
129
129
  </div>
130
130
  </div>
131
131
  <script src="../../../prettify.js"></script>
@@ -260,7 +260,7 @@
260
260
  <div class='footer quiet pad2 space-top1 center small'>
261
261
  Code coverage generated by
262
262
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
263
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
263
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
264
264
  </div>
265
265
  </div>
266
266
  <script src="../../prettify.js"></script>
@@ -337,7 +337,7 @@ const emotionStyles = StyleSheet.create({
337
337
  <div class='footer quiet pad2 space-top1 center small'>
338
338
  Code coverage generated by
339
339
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
340
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
340
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
341
341
  </div>
342
342
  </div>
343
343
  <script src="../../../prettify.js"></script>
@@ -319,7 +319,7 @@ const moodIconStyles = StyleSheet.create({
319
319
  <div class='footer quiet pad2 space-top1 center small'>
320
320
  Code coverage generated by
321
321
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
322
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
322
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
323
323
  </div>
324
324
  </div>
325
325
  <script src="../../../prettify.js"></script>
@@ -110,7 +110,7 @@
110
110
  <div class='footer quiet pad2 space-top1 center small'>
111
111
  Code coverage generated by
112
112
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
113
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
113
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
114
114
  </div>
115
115
  </div>
116
116
  <script src="../../../prettify.js"></script>
@@ -95,7 +95,7 @@
95
95
  <div class='footer quiet pad2 space-top1 center small'>
96
96
  Code coverage generated by
97
97
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
98
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
99
99
  </div>
100
100
  </div>
101
101
  <script src="../prettify.js"></script>
@@ -190,7 +190,7 @@ export function changeLanguage(language: Languages): I18n {
190
190
  <div class='footer quiet pad2 space-top1 center small'>
191
191
  Code coverage generated by
192
192
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
193
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
193
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
194
194
  </div>
195
195
  </div>
196
196
  <script src="../../prettify.js"></script>
@@ -95,7 +95,7 @@
95
95
  <div class='footer quiet pad2 space-top1 center small'>
96
96
  Code coverage generated by
97
97
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
98
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
99
99
  </div>
100
100
  </div>
101
101
  <script src="../../prettify.js"></script>
@@ -538,7 +538,7 @@ export class Messages {
538
538
  <div class='footer quiet pad2 space-top1 center small'>
539
539
  Code coverage generated by
540
540
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
541
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
541
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
542
542
  </div>
543
543
  </div>
544
544
  <script src="../../prettify.js"></script>
@@ -232,7 +232,7 @@ export const ACTIVITY_SETTINGS_INTERVAL_LIMITS: IInterval = { min: 0, max: 1 };
232
232
  <div class='footer quiet pad2 space-top1 center small'>
233
233
  Code coverage generated by
234
234
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
235
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
235
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
236
236
  </div>
237
237
  </div>
238
238
  <script src="../../prettify.js"></script>
@@ -604,7 +604,7 @@ export const BloodKetonePropsError = (): RecommendationError =&gt;
604
604
  <div class='footer quiet pad2 space-top1 center small'>
605
605
  Code coverage generated by
606
606
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
607
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
607
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
608
608
  </div>
609
609
  </div>
610
610
  <script src="../../prettify.js"></script>
@@ -748,7 +748,7 @@ export function getLimitationMessage(wasLimited: boolean, activityReduction: num
748
748
  <div class='footer quiet pad2 space-top1 center small'>
749
749
  Code coverage generated by
750
750
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
751
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
751
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
752
752
  </div>
753
753
  </div>
754
754
  <script src="../../prettify.js"></script>
@@ -115,7 +115,7 @@ export const ActivityIntensityTranslations: Record&lt;Activity.Enums.ActivityInt
115
115
  <div class='footer quiet pad2 space-top1 center small'>
116
116
  Code coverage generated by
117
117
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
118
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
118
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
119
119
  </div>
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
@@ -529,7 +529,7 @@ export class Utils {
529
529
  <div class='footer quiet pad2 space-top1 center small'>
530
530
  Code coverage generated by
531
531
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
532
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
532
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
533
533
  </div>
534
534
  </div>
535
535
  <script src="../../prettify.js"></script>
@@ -1528,7 +1528,7 @@ export function checkCarbohydrates(carbohydrates: number): void {
1528
1528
  <div class='footer quiet pad2 space-top1 center small'>
1529
1529
  Code coverage generated by
1530
1530
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
1531
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
1531
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
1532
1532
  </div>
1533
1533
  </div>
1534
1534
  <script src="../../prettify.js"></script>
@@ -185,7 +185,7 @@
185
185
  <div class='footer quiet pad2 space-top1 center small'>
186
186
  Code coverage generated by
187
187
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
188
- at Mon Aug 16 2021 13:42:43 GMT+0000 (Coordinated Universal Time)
188
+ at Thu Aug 26 2021 09:18:17 GMT+0000 (Coordinated Universal Time)
189
189
  </div>
190
190
  </div>
191
191
  <script src="../../prettify.js"></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/recommendation-screen",
3
- "version": "2.1.18-alpha.8",
3
+ "version": "2.1.18",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,7 +20,8 @@
20
20
  "extract": "lingui extract",
21
21
  "extract-clean": "lingui extract --clean",
22
22
  "compile": "npm run cleanLanguage && lingui compile",
23
- "cleanLanguage": "node ./src/locale/CleanLanguage.ts"
23
+ "cleanLanguage": "node ./src/locale/CleanLanguage.ts",
24
+ "bump-alpha": "chmod +x ./alpha-release.sh && ./alpha-release.sh"
24
25
  },
25
26
  "keywords": [
26
27
  "Hedia",
@@ -1,51 +0,0 @@
1
- name: NPM Publish Bot
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- - master
8
-
9
- env:
10
- SSH_PRIVATE_KEY: ${{ secrets.HEDIA_BOT_PRIVATE_SSH_KEY }}
11
- NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
12
-
13
- jobs:
14
- build:
15
- runs-on: ubuntu-latest
16
-
17
- strategy:
18
- matrix:
19
- node-version: [14.15] #[8.x, 10.x, 12.x]
20
-
21
- steps:
22
- - uses: actions/checkout@v2
23
-
24
- - name: Use Node.js ${{ matrix.node-version }}
25
- uses: actions/setup-node@v1.4.4
26
- with:
27
- node-version: ${{ matrix.node-version }}
28
-
29
- - name: Register ssh keys
30
- uses: webfactory/ssh-agent@v0.4.1
31
- with:
32
- ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
33
-
34
- - name: Register NPM access token and in
35
- run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
36
-
37
- - name: Removing alpha tag from package json
38
- run: chmod +x ./pre-release.sh && ./pre-release.sh
39
-
40
- - name: Installing dependencies
41
- run: npm ci
42
-
43
- - id: publish
44
- uses: JS-DevTools/npm-publish@v1
45
- with:
46
- token: ${{ env.NPM_TOKEN }}
47
-
48
- - if: steps.publish.outputs.type == 'none'
49
- run: |
50
- echo "Failed to publish on npm, version already exists"
51
- exit 1
@@ -1,45 +0,0 @@
1
- name: NPM Version Check
2
-
3
- on:
4
- pull_request:
5
-
6
- env:
7
- SSH_PRIVATE_KEY: ${{ secrets.HEDIA_BOT_PRIVATE_SSH_KEY }}
8
- NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
-
14
- strategy:
15
- matrix:
16
- node-version: [14.15] #[8.x, 10.x, 12.x]
17
-
18
- steps:
19
- - uses: actions/checkout@v2
20
- - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v1.4.4
22
- with:
23
- node-version: ${{ matrix.node-version }}
24
- - name: Register ssh keys
25
- uses: webfactory/ssh-agent@v0.4.1
26
- with:
27
- ssh-private-key: |
28
- ${{ env.SSH_PRIVATE_KEY }}
29
- - name: Register NPM access token
30
- run: |
31
- npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
32
- npm ci --ignore-scripts
33
- env:
34
- NPM_TOKEN: ${{ env.NPM_TOKEN }}
35
- - run: npm run prettier
36
- - id: publish
37
- uses: JS-DevTools/npm-publish@v1
38
- with:
39
- token: ${{ env.NPM_TOKEN }}
40
- dry-run: true
41
-
42
- - if: steps.publish.outputs.type == 'none'
43
- run: |
44
- echo "Package JSON version is already published, please bump the version!"
45
- exit 1