From 27e2ee07a8d6ac88c3d77c68a5c5cee9296bbea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 29 Apr 2022 10:15:13 +0200 Subject: [PATCH] fix(giphy,privacy) disable pingback --- patches/@giphy+js-analytics+4.0.7.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/@giphy+js-analytics+4.0.7.patch diff --git a/patches/@giphy+js-analytics+4.0.7.patch b/patches/@giphy+js-analytics+4.0.7.patch new file mode 100644 index 000000000..27e87ac2a --- /dev/null +++ b/patches/@giphy+js-analytics+4.0.7.patch @@ -0,0 +1,14 @@ +diff --git a/node_modules/@giphy/js-analytics/dist/send-pingback.js b/node_modules/@giphy/js-analytics/dist/send-pingback.js +index 001345a..f303443 100644 +--- a/node_modules/@giphy/js-analytics/dist/send-pingback.js ++++ b/node_modules/@giphy/js-analytics/dist/send-pingback.js +@@ -10,6 +10,9 @@ var global_1 = __importDefault(require("./global")); + var environment = (global_1.default === null || global_1.default === void 0 ? void 0 : global_1.default.GIPHY_PINGBACK_URL) || 'https://pingback.giphy.com'; + var pingBackUrl = environment + "/v2/pingback?apikey=l0HlIwPWyBBUDAUgM"; + var sendPingback = function (events) { ++ // Disabled. ++ return Promise.resolve(); ++ + var headers = js_util_1.getGiphySDKRequestHeaders(); + /* istanbul ignore next */ + headers === null || headers === void 0 ? void 0 : headers.set('Content-Type', 'application/json');