From 1159847a64671197a7d1a6206826588100a438f7 Mon Sep 17 00:00:00 2001 From: TheCodeAssassin Date: Fri, 5 Nov 2021 21:20:50 +0100 Subject: [PATCH] Fix deprecation warning Fixes: ``` Deprecation Warning: faker.random.uuid is now located in faker.datatype.uuid ``` --- src/fake.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fake.ts b/src/fake.ts index 1198040..9d58653 100644 --- a/src/fake.ts +++ b/src/fake.ts @@ -178,7 +178,7 @@ const fakeFunctions = { func: (min, max, precision) => faker.datatype.number({ min, max, precision }), }, - uuid: () => faker.random.uuid(), + uuid: () => faker.datatype.uuid(), word: () => faker.random.word(), words: () => faker.random.words(), locale: () => faker.random.locale(),