hof 20.1.10 → 20.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ jobs:
16
16
  fetch-depth: 0
17
17
  - uses: actions/setup-node@v1
18
18
  with:
19
- node-version: 10
19
+ node-version: 14
20
20
  registry-url: https://registry.npmjs.org/
21
21
  - name: 'Get Previous tag'
22
22
  id: previoustag
@@ -7,7 +7,7 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- node-version: [10.x, 12.x, 14.x]
10
+ node-version: [14.x]
11
11
  redis-version: [4, 5, 6]
12
12
  steps:
13
13
  - uses: actions/checkout@v2.2.0
@@ -34,7 +34,7 @@ jobs:
34
34
  - uses: actions/checkout@v2.2.0
35
35
  - uses: actions/setup-node@v1
36
36
  with:
37
- node-version: 10
37
+ node-version: 14
38
38
  registry-url: https://registry.npmjs.org/
39
39
  - run: |
40
40
  git config --local user.email "$(git log --format='%ae' HEAD^!)"
@@ -52,7 +52,7 @@ jobs:
52
52
  - uses: actions/checkout@v2.2.0
53
53
  - uses: actions/setup-node@v1
54
54
  with:
55
- node-version: 10
55
+ node-version: 14
56
56
  registry-url: https://registry.npmjs.org/
57
57
  - run: |
58
58
  git config --local user.email "$(git log --format='%ae' HEAD^!)"
@@ -70,7 +70,7 @@ jobs:
70
70
  - uses: actions/checkout@v2.2.0
71
71
  - uses: actions/setup-node@v1
72
72
  with:
73
- node-version: 10
73
+ node-version: 14
74
74
  registry-url: https://registry.npmjs.org/
75
75
  - run: |
76
76
  git config --local user.email "$(git log --format='%ae' HEAD^!)"
@@ -39,3 +39,4 @@ Here are the fields you call this behaviour first to set config for it:
39
39
  `groupOptional`: (Optional) set this to true if you want to land on the radio button question if all records in the group are deleted after creation,
40
40
  `returnTo`: (Required) the next step if you want to add another object to this group
41
41
  ```
42
+ N.B. in the above example we use `continueOnEdit: true` on the individual record step (i.e. `/add-address`) to ensure we revisit the grouped fields page otherwise it will not be added to the group and the user will be returned to the 'Check Your Answers' page upon a field edit.
@@ -59,7 +59,7 @@ module.exports = SuperClass => class extends SuperClass {
59
59
  fieldData.value = fieldSpec.derivation ?
60
60
  this.runCombinerForDerivedField(fieldSpec, req) : fieldData.value;
61
61
  fieldData.value = (typeof fieldSpec.parse === 'function') ?
62
- fieldSpec.parse(fieldData.value) : fieldData.value;
62
+ fieldSpec.parse(fieldData.value, req) : fieldData.value;
63
63
  }
64
64
 
65
65
  return fieldData;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "20.1.10",
4
+ "version": "20.1.12",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -135,7 +135,7 @@
135
135
  "reporter": "spec",
136
136
  "require": "test/common.js",
137
137
  "recursive": "true",
138
- "timeout": "7000",
138
+ "timeout": "9000",
139
139
  "exit": "true"
140
140
  },
141
141
  "resolutions": {