From 79858fea203bce7ada9e9bcc7751f6ab25123977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leyla=20J=C3=A4hnig?= Date: Tue, 18 Oct 2022 19:29:43 +0200 Subject: feat(string): move methods to new module (#1155) Co-authored-by: Eric Cheng Co-authored-by: ST-DDT Co-authored-by: Shinigami92 --- src/modules/git/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/git') diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts index cd9e7de0..78cf0c68 100644 --- a/src/modules/git/index.ts +++ b/src/modules/git/index.ts @@ -100,9 +100,9 @@ export class GitModule { * @since 5.0.0 */ commitSha(): string { - return this.faker.datatype.hexadecimal({ + return this.faker.string.hexadecimal({ length: 40, - case: 'lower', + casing: 'lower', prefix: '', }); } @@ -116,9 +116,9 @@ export class GitModule { * @since 5.0.0 */ shortSha(): string { - return this.faker.datatype.hexadecimal({ + return this.faker.string.hexadecimal({ length: 7, - case: 'lower', + casing: 'lower', prefix: '', }); } -- cgit v1.2.3