From 27653589a2da0a81de1a525b4cdc69c4f7742625 Mon Sep 17 00:00:00 2001 From: Tom McGuire Date: Wed, 12 Jan 2022 02:40:46 -0800 Subject: [PATCH] Replace faker with @faker-js/faker (1732) ### Description Replaces `faker` with `@faker-js/faker` some context around this change can be [read here](https://github.com/faker-js/faker#faq---what-happened-to-the-original-fakerjs). ### Other changes N/A ### Tested N/A ### How others should test N/A ### Related issues N/A ### Backwards compatibility Yes --- packages/mobile/e2e/src/usecases/SecureSend.js | 2 +- packages/mobile/e2e/src/usecases/Send.js | 2 +- packages/mobile/e2e/src/usecases/Settings.js | 2 +- packages/mobile/package.json | 2 +- yarn.lock | 10 +++++----- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/mobile/e2e/src/usecases/SecureSend.js b/packages/mobile/e2e/src/usecases/SecureSend.js index 540958e0d27..208fc7d93fe 100644 --- a/packages/mobile/e2e/src/usecases/SecureSend.js +++ b/packages/mobile/e2e/src/usecases/SecureSend.js @@ -1,7 +1,7 @@ import { enterPinUiIfNecessary, inputNumberKeypad, sleep } from '../utils/utils' import { dismissBanners } from '../utils/banners' import { reloadReactNative } from '../utils/retries' -const faker = require('faker') +const faker = require('@faker-js/faker') const PHONE_NUMBER = '+12057368924' const LAST_ACCEOUNT_CHARACTERS = 'FD08' diff --git a/packages/mobile/e2e/src/usecases/Send.js b/packages/mobile/e2e/src/usecases/Send.js index 7df7049bc24..c9e1c490fad 100644 --- a/packages/mobile/e2e/src/usecases/Send.js +++ b/packages/mobile/e2e/src/usecases/Send.js @@ -2,7 +2,7 @@ import { enterPinUiIfNecessary, inputNumberKeypad, sleep } from '../utils/utils' import { DEFAULT_RECIPIENT_ADDRESS } from '../utils/consts' import { dismissBanners } from '../utils/banners' import { reloadReactNative } from '../utils/retries' -const faker = require('faker') +const faker = require('@faker-js/faker') const AMOUNT_TO_SEND = '0.1' const AMOUNT_TO_REQUEST = '0.1' diff --git a/packages/mobile/e2e/src/usecases/Settings.js b/packages/mobile/e2e/src/usecases/Settings.js index 3eac94cf3b7..9eb0a0d7ee2 100644 --- a/packages/mobile/e2e/src/usecases/Settings.js +++ b/packages/mobile/e2e/src/usecases/Settings.js @@ -1,7 +1,7 @@ import { dismissBanners } from '../utils/banners' import { scrollIntoView, sleep } from '../utils/utils' import { reloadReactNative } from '../utils/retries' -const faker = require('faker') +const faker = require('@faker-js/faker') export default Settings = () => { beforeEach(async () => { diff --git a/packages/mobile/package.json b/packages/mobile/package.json index dcd8a7be287..9b23cddb3a4 100644 --- a/packages/mobile/package.json +++ b/packages/mobile/package.json @@ -217,7 +217,7 @@ "eslint-plugin-react": "^7.23.2", "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-react-native": "^3.11.0", - "faker": "^5.5.3", + "@faker-js/faker": "^5.5.3", "jest-fetch-mock": "^3.0.3", "metro-react-native-babel-preset": "^0.59.0", "mocha": "^7.1.1", diff --git a/yarn.lock b/yarn.lock index 79764374502..d3db7dff5a5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2731,6 +2731,11 @@ unique-filename "^1.1.1" which "^1.3.1" +"@faker-js/faker@^5.5.3": + version "5.5.3" + resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-5.5.3.tgz#18e3af6b8eae7984072bbeb0c0858474d7c4cefe" + integrity sha512-R11tGE6yIFwqpaIqcfkcg7AICXzFg14+5h5v0TfF/9+RMDL6jhzCy/pxHVOfbALGdtVYdt6JdR21tuxEgl34dw== + "@google-cloud/common@^3.8.1": version "3.8.1" resolved "https://registry.yarnpkg.com/@google-cloud/common/-/common-3.8.1.tgz#1313c55bb66df88f69bf7c828135fae25fbd2036" @@ -10400,11 +10405,6 @@ extsprintf@^1.2.0: resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= -faker@^5.5.3: - version "5.5.3" - resolved "https://registry.yarnpkg.com/faker/-/faker-5.5.3.tgz#c57974ee484431b25205c2c8dc09fda861e51e0e" - integrity sha512-wLTv2a28wjUyWkbnX7u/ABZBkUkIF2fCd73V6P2oFqEGEktDfzWx4UxrSqtPRw0xPRAcjeAOIiJWqZm3pP4u3g== - fancy-log@^1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-1.3.2.tgz#f41125e3d84f2e7d89a43d06d958c8f78be16be1"