소스 검색

fix(giphy,privacy) disable pingback

master
Saúl Ibarra Corretgé 3 년 전
부모
커밋
27e2ee07a8
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14
    0
      patches/@giphy+js-analytics+4.0.7.patch

+ 14
- 0
patches/@giphy+js-analytics+4.0.7.patch 파일 보기

@@ -0,0 +1,14 @@
1
+diff --git a/node_modules/@giphy/js-analytics/dist/send-pingback.js b/node_modules/@giphy/js-analytics/dist/send-pingback.js
2
+index 001345a..f303443 100644
3
+--- a/node_modules/@giphy/js-analytics/dist/send-pingback.js
4
++++ b/node_modules/@giphy/js-analytics/dist/send-pingback.js
5
+@@ -10,6 +10,9 @@ var global_1 = __importDefault(require("./global"));
6
+ var environment = (global_1.default === null || global_1.default === void 0 ? void 0 : global_1.default.GIPHY_PINGBACK_URL) || 'https://pingback.giphy.com';
7
+ var pingBackUrl = environment + "/v2/pingback?apikey=l0HlIwPWyBBUDAUgM";
8
+ var sendPingback = function (events) {
9
++    // Disabled.
10
++    return Promise.resolve();
11
++
12
+     var headers = js_util_1.getGiphySDKRequestHeaders();
13
+     /* istanbul ignore next */
14
+     headers === null || headers === void 0 ? void 0 : headers.set('Content-Type', 'application/json');

Loading…
취소
저장