From b509665fdd420209bbb8a21c53f2f31de1fae613 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Mon, 20 Feb 2023 09:05:58 +0100 Subject: [PATCH] Replace remark-parse dependency with remark-parse-no-trim (#151431) (cherry picked from commit 6be491a12bf634f853a642db0527d4f277004284) --- package.json | 4 ++-- x-pack/plugins/cases/common/utils/markdown_plugins/utils.ts | 2 +- .../server/routes/live_query/create_live_query_route.ts | 2 +- .../public/detection_engine/rule_response_actions/utils.tsx | 2 +- yarn.lock | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 95c48b20bdb0d..62f618a16e920 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "**/globule/minimatch": "^3.1.2", "**/hoist-non-react-statics": "^3.3.2", "**/isomorphic-fetch/node-fetch": "^2.6.7", - "**/trim": "1.0.1", + "**/remark-parse/trim": "1.0.1", "**/typescript": "4.6.3", "globby/fast-glob": "^3.2.11" }, @@ -611,7 +611,7 @@ "redux-thunk": "^2.4.1", "redux-thunks": "^1.0.0", "remark-gfm": "1.0.0", - "remark-parse": "^8.0.3", + "remark-parse-no-trim": "^8.0.4", "remark-stringify": "^8.0.3", "require-in-the-middle": "^6.0.0", "reselect": "^4.1.6", diff --git a/x-pack/plugins/cases/common/utils/markdown_plugins/utils.ts b/x-pack/plugins/cases/common/utils/markdown_plugins/utils.ts index 0d25bbd3a2765..0790c7fef7947 100644 --- a/x-pack/plugins/cases/common/utils/markdown_plugins/utils.ts +++ b/x-pack/plugins/cases/common/utils/markdown_plugins/utils.ts @@ -7,7 +7,7 @@ import { filter } from 'lodash'; import type { Node } from 'unist'; -import markdown from 'remark-parse'; +import markdown from 'remark-parse-no-trim'; import remarkStringify from 'remark-stringify'; import unified from 'unified'; diff --git a/x-pack/plugins/osquery/server/routes/live_query/create_live_query_route.ts b/x-pack/plugins/osquery/server/routes/live_query/create_live_query_route.ts index 91f3594c5b72a..92ebddf7642e7 100644 --- a/x-pack/plugins/osquery/server/routes/live_query/create_live_query_route.ts +++ b/x-pack/plugins/osquery/server/routes/live_query/create_live_query_route.ts @@ -7,7 +7,7 @@ import type { IRouter } from '@kbn/core/server'; import unified from 'unified'; -import markdown from 'remark-parse'; +import markdown from 'remark-parse-no-trim'; import { some, filter } from 'lodash'; import deepEqual from 'fast-deep-equal'; import type { ECSMappingOrUndefined } from '@kbn/osquery-io-ts-types'; diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_response_actions/utils.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_response_actions/utils.tsx index 21beb2bf43a42..b19230668d416 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_response_actions/utils.tsx +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_response_actions/utils.tsx @@ -6,7 +6,7 @@ */ import unified from 'unified'; -import markdown from 'remark-parse'; +import markdown from 'remark-parse-no-trim'; import { filter, reduce } from 'lodash'; import type { ECSMapping } from '@kbn/osquery-io-ts-types'; diff --git a/yarn.lock b/yarn.lock index 634d6ab0f0b93..ff62e9db5dc0f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23740,7 +23740,7 @@ remark-parse-no-trim@^8.0.4: vfile-location "^3.0.0" xtend "^4.0.1" -remark-parse@8.0.3, remark-parse@^8.0.3: +remark-parse@8.0.3: version "8.0.3" resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-8.0.3.tgz#9c62aa3b35b79a486454c690472906075f40c7e1" integrity sha512-E1K9+QLGgggHxCQtLt++uXltxEprmWzNfg+MxpfHsZlrddKzZ/hZyWHDbK3/Ap8HJQqYJRXP+jHczdL6q6i85Q==