From cf9a3657cca2efd41dc3297e5ca12344b9124750 Mon Sep 17 00:00:00 2001 From: Vladimir Gorej Date: Mon, 19 Jul 2021 10:22:30 +0200 Subject: [PATCH] chore(deps): replace @kyleshockey/* deps with originals @kyleshockey/object-assign-deep - replaced by lodash/merge. If behavior not be compatible well use lodash/mergeWith. @kyleshockey/xml - by installing stream library directly, we can use origin xml library without the fork. Refs #7341 --- package-lock.json | 18 +++++------------- package.json | 4 ++-- src/core/plugins/samples/fn.js | 2 +- src/core/system.js | 4 ++-- 4 files changed, 10 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 19ff51f0..192766eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2815,19 +2815,6 @@ "vary": "^1.1.2" } }, - "@kyleshockey/object-assign-deep": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@kyleshockey/object-assign-deep/-/object-assign-deep-0.4.2.tgz", - "integrity": "sha1-hJAPDu/DcnmPR1G1JigwuCCJIuw=" - }, - "@kyleshockey/xml": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@kyleshockey/xml/-/xml-1.0.2.tgz", - "integrity": "sha512-iMo32MPLcI9cPxs3YL5kmKxKgDmkSZDCFEqIT5eRk7d/Ll8r4X3SwGYSigzALd6+RHWlFEmjL1QyaQ15xDZFlw==", - "requires": { - "stream": "^0.0.2" - } - }, "@nicolo-ribaudo/chokidar-2": { "version": "2.1.8-no-fsevents.2", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.2.tgz", @@ -27096,6 +27083,11 @@ "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", "dev": true }, + "xml": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz", + "integrity": "sha1-eLpyAgApxbyHuKgaPPzXS0ovweU=" + }, "xml-but-prettier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/xml-but-prettier/-/xml-but-prettier-1.0.1.tgz", diff --git a/package.json b/package.json index 59ac303b..f5bed0ef 100644 --- a/package.json +++ b/package.json @@ -60,8 +60,6 @@ "dependencies": { "@babel/runtime-corejs3": "^7.14.7", "@braintree/sanitize-url": "^5.0.2", - "@kyleshockey/object-assign-deep": "^0.4.2", - "@kyleshockey/xml": "^1.0.2", "base64-js": "^1.5.1", "classnames": "^2.3.1", "css.escape": "1.5.1", @@ -90,8 +88,10 @@ "reselect": "^4.0.0", "serialize-error": "^8.1.0", "sha.js": "^2.4.11", + "stream": "=0.0.2", "swagger-client": "^3.13.6", "url-parse": "^1.5.1", + "xml": "=1.0.1", "xml-but-prettier": "^1.0.1", "zenscroll": "^4.0.2" }, diff --git a/src/core/plugins/samples/fn.js b/src/core/plugins/samples/fn.js index aec6f28d..8e9921cd 100644 --- a/src/core/plugins/samples/fn.js +++ b/src/core/plugins/samples/fn.js @@ -1,5 +1,5 @@ import { objectify, isFunc, normalizeArray, deeplyStripKey } from "core/utils" -import XML from "@kyleshockey/xml" +import XML from "xml" import memoizee from "memoizee" import isEmpty from "lodash/isEmpty" diff --git a/src/core/system.js b/src/core/system.js index 3179b43f..a1d55082 100644 --- a/src/core/system.js +++ b/src/core/system.js @@ -4,7 +4,7 @@ import Im, { fromJS, Map } from "immutable" import deepExtend from "deep-extend" import { combineReducers } from "redux-immutable" import { serializeError } from "serialize-error" -import assignDeep from "@kyleshockey/object-assign-deep" +import merge from "lodash/merge" import { NEW_THROWN_ERR } from "corePlugins/err/actions" import win from "core/window" @@ -313,7 +313,7 @@ export default class Store { function combinePlugins(plugins, toolbox, pluginOptions) { if(isObject(plugins) && !isArray(plugins)) { - return assignDeep({}, plugins) + return merge({}, plugins) } if(isFunc(plugins)) {