Skip to content

Commit 9a46d38

Browse files
committed
Node and package updates
1 parent 274e672 commit 9a46d38

File tree

7 files changed

+2231
-2095
lines changed

7 files changed

+2231
-2095
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v15.12.0
1+
v17.1.0

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: node_js
22
git:
33
submodules: false
44
node_js:
5-
- 15
5+
- 16
66
addons:
77
apt:
88
packages:

deploy

package.json

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,61 +15,63 @@
1515
"ci:unit": "yarn run test:unit"
1616
},
1717
"dependencies": {
18-
"@bugsnag/js": "^7.9.2",
19-
"@bugsnag/plugin-vue": "^7.9.2",
18+
"@bugsnag/js": "^7.14.0",
19+
"@bugsnag/plugin-vue": "^7.14.0",
2020
"cldr-data": "^36.0.0",
2121
"cldrjs": "^0.5.5",
22-
"core-js": "^3.12.1",
22+
"core-js": "^3.19.1",
23+
"cypress": "9.0.0",
2324
"lodash-es": "^4.17.21",
2425
"normalize.css": "^8.0.1",
2526
"vue": "^2.6.12",
2627
"vue-class-component": "^7.2.6",
27-
"vue-i18n": "^8.24.4",
28+
"vue-i18n": "^8.26.7",
2829
"vue-property-decorator": "^9.1.2",
2930
"vuex": "^3.6.2",
3031
"vuex-class": "^0.3.2"
3132
},
3233
"devDependencies": {
33-
"@cypress/webpack-preprocessor": "^5.7.0",
34-
"@types/chai": "^4.2.18",
34+
"@cypress/webpack-preprocessor": "^5.10.0",
35+
"@types/chai": "^4.2.22",
3536
"@types/chai-as-promised": "^7.1.4",
3637
"@types/cldrjs": "^0.4.22",
37-
"@types/lodash-es": "^4.17.4",
38-
"@types/mocha": "^8.2.2",
39-
"@typescript-eslint/eslint-plugin": "^4.23.0",
40-
"@typescript-eslint/parser": "^4.23.0",
41-
"@vue/cli-plugin-babel": "~4.5.13",
42-
"@vue/cli-plugin-e2e-cypress": "~4.5.13",
43-
"@vue/cli-plugin-eslint": "~4.5.13",
44-
"@vue/cli-plugin-router": "~4.5.13",
45-
"@vue/cli-plugin-typescript": "^4.5.13",
46-
"@vue/cli-plugin-unit-mocha": "~4.5.13",
47-
"@vue/cli-plugin-vuex": "~4.5.13",
48-
"@vue/cli-service": "~4.5.13",
49-
"@vue/eslint-config-airbnb": "^5.3.0",
50-
"@vue/eslint-config-typescript": "^7.0.0",
51-
"@vue/test-utils": "1.2.0",
38+
"@types/lodash-es": "^4.17.5",
39+
"@types/mocha": "^9.0.0",
40+
"@typescript-eslint/eslint-plugin": "^5.4.0",
41+
"@typescript-eslint/parser": "^5.4.0",
42+
"@vue/cli-plugin-babel": "~4.5.15",
43+
"@vue/cli-plugin-e2e-cypress": "~4.5.15",
44+
"@vue/cli-plugin-eslint": "~4.5.15",
45+
"@vue/cli-plugin-router": "~4.5.15",
46+
"@vue/cli-plugin-typescript": "^4.5.15",
47+
"@vue/cli-plugin-unit-mocha": "~4.5.15",
48+
"@vue/cli-plugin-vuex": "~4.5.15",
49+
"@vue/cli-service": "~4.5.15",
50+
"@vue/eslint-config-airbnb": "^6.0.0",
51+
"@vue/eslint-config-typescript": "^9.1.0",
52+
"@vue/test-utils": "1.3.0",
5253
"chai": "^4.3.4",
5354
"chai-as-promised": "^7.1.1",
5455
"chai-each": "^0.0.1",
55-
"eslint": "^7.26.0",
56-
"eslint-plugin-chai-expect": "^2.2.0",
57-
"eslint-plugin-chai-friendly": "^0.7.1",
58-
"eslint-plugin-cypress": "^2.11.3",
59-
"eslint-plugin-import": "^2.22.1",
60-
"eslint-plugin-mocha": "^8.1.0",
61-
"eslint-plugin-vue": "^7.9.0",
62-
"lint-staged": "^11.0.0",
56+
"eslint": "^8.2.0",
57+
"eslint-plugin-chai-expect": "^3.0.0",
58+
"eslint-plugin-chai-friendly": "^0.7.2",
59+
"eslint-plugin-cypress": "^2.12.1",
60+
"eslint-plugin-import": "^2.25.3",
61+
"eslint-plugin-mocha": "^9.0.0",
62+
"eslint-plugin-vue": "^8.1.1",
63+
"eslint-plugin-vuejs-accessibility": "^1.1.0",
64+
"lint-staged": "^12.0.3",
6365
"null-loader": "^4.0.1",
64-
"sass": "^1.32.12",
66+
"sass": "^1.43.4",
6567
"sass-loader": "^10.2.0",
66-
"start-server-and-test": "^1.12.1",
67-
"stylelint": "^13.13.1",
68-
"stylelint-config-sass-guidelines": "^8.0.0",
69-
"stylelint-config-standard": "^22.0.0",
68+
"start-server-and-test": "^1.14.0",
69+
"stylelint": "^14.1.0",
70+
"stylelint-config-sass-guidelines": "^9.0.1",
71+
"stylelint-config-standard": "^24.0.0",
7072
"stylelint-processor-html": "^1.0.0",
71-
"typedoc": "^0.20.36",
72-
"typescript": "~4.2.4",
73+
"typedoc": "^0.22.9",
74+
"typescript": "~4.5.2",
7375
"vue-template-compiler": "^2.6.12"
7476
},
7577
"gitHooks": {

src/models/response/answer.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import {
22
cloneDeep, isEmpty, isPlainObject, isUndefined
33
} from 'lodash-es'
44

5+
export type EndNode = 'end'
6+
7+
/** Represents the end of a path in a response tree. */
8+
export const endNode = 'end'
9+
510
/** A node in a response tree representing a {@link Question} that was answered. */
611

712
export interface QuestionResponseNode {
@@ -11,6 +16,7 @@ export interface QuestionResponseNode {
1116
* ActionNode if the user chose that option, or `undefined` if not.
1217
*/
1318

19+
// eslint-disable-next-line no-use-before-define
1420
nodes: (ActionResponseNode | undefined)[];
1521
}
1622

@@ -29,11 +35,6 @@ export interface ActionResponseNode {
2935
next: QuestionResponseNode | EndNode;
3036
}
3137

32-
export type EndNode = 'end'
33-
34-
/** Represents the end of a path in a response tree. */
35-
export const endNode = 'end'
36-
3738
export type ResponseNode = QuestionResponseNode | ActionResponseNode | EndNode
3839

3940
/**

tests/unit/store/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ describe('Vuex store', () => {
9595
choices: [false, true, true]
9696
})
9797
expect.fail() // should have thrown an error by now
98-
} catch (e) {
99-
expect(e.message).to.eql('Path ended prematurely')
98+
} catch (e: unknown) {
99+
expect((<Error>e).message).to.eql('Path ended prematurely')
100100
}
101101
})
102102
})

0 commit comments

Comments
 (0)