diff options
| author | Leyla Jähnig <[email protected]> | 2022-11-25 16:59:10 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-25 16:59:10 +0100 |
| commit | 7d4d99f00bf1e29c14346bd6a9fab33c8e7d5743 (patch) | |
| tree | 323754ca575c56ccf688539cfcca66d54c903602 /src/modules/image | |
| parent | 0af0fff4a410d7531368c709327ba0798a47091a (diff) | |
| download | faker-7d4d99f00bf1e29c14346bd6a9fab33c8e7d5743.tar.xz faker-7d4d99f00bf1e29c14346bd6a9fab33c8e7d5743.zip | |
feat(number): move methods to new module (#1122)
Co-authored-by: ST-DDT <[email protected]>
Co-authored-by: Eric Cheng <[email protected]>
Co-authored-by: Leyla Jähnig <[email protected]>
Co-authored-by: Shinigami92 <[email protected]>
Diffstat (limited to 'src/modules/image')
| -rw-r--r-- | src/modules/image/index.ts | 2 | ||||
| -rw-r--r-- | src/modules/image/providers/lorempixel.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts index 8113c1f6..e0dd9d22 100644 --- a/src/modules/image/index.ts +++ b/src/modules/image/index.ts @@ -111,7 +111,7 @@ export class ImageModule { } if (randomize) { - url += `?lock=${this.faker.datatype.number()}`; + url += `?lock=${this.faker.number.int()}`; } return url; diff --git a/src/modules/image/providers/lorempixel.ts b/src/modules/image/providers/lorempixel.ts index a172517b..f8bb81e5 100644 --- a/src/modules/image/providers/lorempixel.ts +++ b/src/modules/image/providers/lorempixel.ts @@ -60,7 +60,7 @@ export class Lorempixel { } if (randomize) { - url += `?${this.faker.datatype.number()}`; + url += `?${this.faker.number.int()}`; } return url; |
