Skip to content

Commit bda70c9

Browse files
committed
Package updates
1 parent 274e672 commit bda70c9

File tree

6 files changed

+1672
-1377
lines changed

6 files changed

+1672
-1377
lines changed

.nvmrc

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

deploy

package.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,30 @@
1515
"ci:unit": "yarn run test:unit"
1616
},
1717
"dependencies": {
18-
"@bugsnag/js": "^7.9.2",
18+
"@bugsnag/js": "^7.10.5",
1919
"@bugsnag/plugin-vue": "^7.9.2",
2020
"cldr-data": "^36.0.0",
2121
"cldrjs": "^0.5.5",
22-
"core-js": "^3.12.1",
22+
"core-js": "^3.18.0",
23+
"cypress": "8.4.1",
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.25.1",
2829
"vue-property-decorator": "^9.1.2",
2930
"vuex": "^3.6.2",
3031
"vuex-class": "^0.3.2"
3132
},
3233
"devDependencies": {
3334
"@cypress/webpack-preprocessor": "^5.7.0",
34-
"@types/chai": "^4.2.18",
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",
38+
"@types/lodash-es": "^4.17.5",
39+
"@types/mocha": "^9.0.0",
40+
"@typescript-eslint/eslint-plugin": "^4.31.2",
41+
"@typescript-eslint/parser": "^4.31.2",
4142
"@vue/cli-plugin-babel": "~4.5.13",
4243
"@vue/cli-plugin-e2e-cypress": "~4.5.13",
4344
"@vue/cli-plugin-eslint": "~4.5.13",
@@ -48,28 +49,28 @@
4849
"@vue/cli-service": "~4.5.13",
4950
"@vue/eslint-config-airbnb": "^5.3.0",
5051
"@vue/eslint-config-typescript": "^7.0.0",
51-
"@vue/test-utils": "1.2.0",
52+
"@vue/test-utils": "1.2.2",
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": "^7.32.0",
5657
"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",
58+
"eslint-plugin-chai-friendly": "^0.7.2",
59+
"eslint-plugin-cypress": "^2.12.1",
60+
"eslint-plugin-import": "^2.24.2",
61+
"eslint-plugin-mocha": "^9.0.0",
62+
"eslint-plugin-vue": "^7.18.0",
63+
"lint-staged": "^11.1.2",
6364
"null-loader": "^4.0.1",
64-
"sass": "^1.32.12",
65+
"sass": "^1.42.0",
6566
"sass-loader": "^10.2.0",
66-
"start-server-and-test": "^1.12.1",
67+
"start-server-and-test": "^1.14.0",
6768
"stylelint": "^13.13.1",
6869
"stylelint-config-sass-guidelines": "^8.0.0",
6970
"stylelint-config-standard": "^22.0.0",
7071
"stylelint-processor-html": "^1.0.0",
71-
"typedoc": "^0.20.36",
72-
"typescript": "~4.2.4",
72+
"typedoc": "^0.22.4",
73+
"typescript": "~4.4.3",
7374
"vue-template-compiler": "^2.6.12"
7475
},
7576
"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)