From c606fd7d212a494a7f4e9160235d7790084153a1 Mon Sep 17 00:00:00 2001 From: Dratwas Date: Thu, 5 Dec 2019 15:44:36 +0100 Subject: [PATCH] remove underscore --- package-lock.json | 25 +++++++------------ .../__device-tests__/helpers/utils.js | 5 ++-- packages/react-native-editor/package.json | 4 +-- 3 files changed, 12 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 383bcb355fece..f7ff8e017f76d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7885,16 +7885,7 @@ "showdown": "^1.8.6", "tannin": "^1.0.1", "tinycolor2": "^1.4.1", - "traverse": "^0.6.6", - "turbo-combine-reducers": "^1.0.2", - "underscore": "^1.9.1" - }, - "dependencies": { - "underscore": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", - "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" - } + "traverse": "^0.6.6" } }, "@wordpress/redux-routine": { @@ -37265,6 +37256,14 @@ "requires": { "colors": "0.5.x", "underscore": "~1.4.4" + }, + "dependencies": { + "underscore": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz", + "integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ=", + "dev": true + } } }, "nopt": { @@ -46722,12 +46721,6 @@ "integrity": "sha1-8pzr8B31F5ErtY/5xOUP3o4zMg0=", "dev": true }, - "underscore": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz", - "integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ=", - "dev": true - }, "unfetch": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/unfetch/-/unfetch-4.1.0.tgz", diff --git a/packages/react-native-editor/__device-tests__/helpers/utils.js b/packages/react-native-editor/__device-tests__/helpers/utils.js index c7fe76e0fecc5..ca0926efed5e4 100644 --- a/packages/react-native-editor/__device-tests__/helpers/utils.js +++ b/packages/react-native-editor/__device-tests__/helpers/utils.js @@ -17,7 +17,6 @@ import path from 'path'; import serverConfigs from './serverConfigs'; import { ios12, android8 } from './caps'; import AppiumLocal from './appium-local'; -import _ from 'underscore'; // Platform setup const defaultPlatform = 'android'; @@ -73,7 +72,7 @@ const setupDriver = async () => { let desiredCaps; if ( isAndroid() ) { - desiredCaps = _.clone( android8 ); + desiredCaps = { ...android8 }; if ( isLocalEnvironment() ) { desiredCaps.app = path.resolve( localAndroidAppPath ); try { @@ -92,7 +91,7 @@ const setupDriver = async () => { desiredCaps.app = `sauce-storage:Gutenberg-${ safeBranchName }.apk`; // App should be preloaded to sauce storage, this can also be a URL } } else { - desiredCaps = _.clone( ios12 ); + desiredCaps = { ...ios12 }; if ( isLocalEnvironment() ) { desiredCaps.app = path.resolve( localIOSAppPath ); } else { diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json index 48c7efb074283..472bf92ea220a 100644 --- a/packages/react-native-editor/package.json +++ b/packages/react-native-editor/package.json @@ -72,9 +72,7 @@ "showdown": "^1.8.6", "tannin": "^1.0.1", "tinycolor2": "^1.4.1", - "traverse": "^0.6.6", - "turbo-combine-reducers": "^1.0.2", - "underscore": "^1.9.1" + "traverse": "^0.6.6" }, "resolutions": { "@react-native-community/cli": "^1.5.2"