aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-08-29 15:56:31 +0800
committerGitHub <[email protected]>2022-08-29 07:56:31 +0000
commit8dae00d510776cfd8dd6d2316f6611c302a6f9c4 (patch)
treed3b3631d36a88235d90b95f4f1e1a79d5e0dfb60 /src/modules
parent8e34c4beafc987e18a9bac177c2c1928019c4a24 (diff)
downloadfaker-8dae00d510776cfd8dd6d2316f6611c302a6f9c4.tar.xz
faker-8dae00d510776cfd8dd6d2316f6611c302a6f9c4.zip
refactor(address): update deprecation warning (#1314)
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/address/index.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/address/index.ts b/src/modules/address/index.ts
index 96572cba..967962ff 100644
--- a/src/modules/address/index.ts
+++ b/src/modules/address/index.ts
@@ -75,7 +75,7 @@ export class Address {
if (format != null) {
deprecated({
deprecated: 'faker.address.city(format)',
- proposed: 'faker.address.city() or faker.fake(format)',
+ proposed: 'faker.address.city() or faker.helpers.fake(format)',
since: '7.0',
until: '8.0',
});
@@ -126,7 +126,8 @@ export class Address {
citySuffix(): string {
deprecated({
deprecated: 'faker.address.citySuffix()',
- proposed: "faker.address.city() or faker.fake('{{address.city_suffix}}')",
+ proposed:
+ "faker.address.city() or faker.helpers.fake('{{address.city_suffix}}')",
since: '7.2',
until: '8.0',
});