Skip to content

Commit 1149996

Browse files
authored
Merge branch 'main' into docs-fix-usage
2 parents 9a988a7 + fa0a3d1 commit 1149996

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@
9494
"@algolia/client-search": "~4.13.0",
9595
"@types/markdown-it": "~12.2.3",
9696
"@types/node": "~17.0.31",
97-
"@types/prettier": "~2.6.0",
97+
"@types/prettier": "~2.6.1",
9898
"@types/react": "~17.0.45",
9999
"@types/sanitize-html": "~2.6.2",
100100
"@types/validator": "~13.7.2",
101101
"@typescript-eslint/eslint-plugin": "~5.23.0",
102102
"@typescript-eslint/parser": "~5.23.0",
103-
"@vitest/ui": "~0.12.4",
103+
"@vitest/ui": "~0.12.6",
104104
"c8": "~7.11.2",
105105
"conventional-changelog-cli": "~2.2.2",
106106
"cypress": "~9.6.1",
@@ -131,7 +131,7 @@
131131
"validator": "~13.7.0",
132132
"vite": "~2.9.9",
133133
"vitepress": "~0.22.4",
134-
"vitest": "~0.12.4"
134+
"vitest": "~0.12.6"
135135
},
136136
"packageManager": "[email protected]",
137137
"engines": {

pnpm-lock.yaml

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/address/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class Address {
268268
* faker.address.countryCode('alpha-3') // 'TJK'
269269
*/
270270
countryCode(alphaCode: 'alpha-2' | 'alpha-3' = 'alpha-2'): string {
271-
const key: keyof typeof this.faker.definitions.address =
271+
const key =
272272
alphaCode === 'alpha-3' ? 'country_code_alpha_3' : 'country_code';
273273

274274
return this.faker.helpers.arrayElement(this.faker.definitions.address[key]);

0 commit comments

Comments
 (0)