From 743ffaa9d456a5919bb8abc87034366607312c8a Mon Sep 17 00:00:00 2001 From: Miki Date: Fri, 8 Nov 2024 16:55:31 -0800 Subject: [PATCH] Patch @opensearch-project/opensearch to fix a typo Ref: https://github.com/opensearch-project/opensearch-js/pull/889 Signed-off-by: Miki --- scripts/postinstall.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 7865473ee494..59be50284dca 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -84,6 +84,15 @@ const run = async () => { }, ]) ); + //ToDo: Remove when opensearch-js is released to include https://github.com/opensearch-project/opensearch-js/pull/889 + promises.push( + patchFile('node_modules/@opensearch-project/opensearch/lib/Serializer.js', [ + { + from: 'val < Number.MAX_SAFE_INTEGER', + to: 'val < Number.MIN_SAFE_INTEGER', + }, + ]) + ); await Promise.all(promises); };