Browse Source

uninstall request-filtering-agent

jam411 3 years ago
parent
commit
341213e32d
3 changed files with 0 additions and 16 deletions
  1. 0 1
      packages/app/package.json
  2. 0 3
      packages/app/src/server/service/plugin.ts
  3. 0 12
      yarn.lock

+ 0 - 1
packages/app/package.json

@@ -181,7 +181,6 @@
     "remark-gfm": "^3.0.1",
     "remark-gfm": "^3.0.1",
     "remark-math": "^5.1.1",
     "remark-math": "^5.1.1",
     "remark-wiki-link": "^1.0.4",
     "remark-wiki-link": "^1.0.4",
-    "request-filtering-agent": "^1.1.2",
     "rimraf": "^3.0.0",
     "rimraf": "^3.0.0",
     "simplebar-react": "^2.3.6",
     "simplebar-react": "^2.3.6",
     "socket.io": "^4.2.0",
     "socket.io": "^4.2.0",

+ 0 - 3
packages/app/src/server/service/plugin.ts

@@ -4,7 +4,6 @@ import path from 'path';
 // eslint-disable-next-line no-restricted-imports
 // eslint-disable-next-line no-restricted-imports
 import axios from 'axios';
 import axios from 'axios';
 import mongoose from 'mongoose';
 import mongoose from 'mongoose';
-import { useAgent } from 'request-filtering-agent';
 import unzipper from 'unzipper';
 import unzipper from 'unzipper';
 
 
 import type { GrowiPlugin, GrowiPluginOrigin } from '~/interfaces/plugin';
 import type { GrowiPlugin, GrowiPluginOrigin } from '~/interfaces/plugin';
@@ -58,8 +57,6 @@ export class PluginService {
         axios({
         axios({
           method: 'GET',
           method: 'GET',
           url: requestUrl,
           url: requestUrl,
-          httpAgent: useAgent(requestUrl, { stopPortScanningByUrlRedirection: true }),
-          httpsAgent: useAgent(requestUrl, { stopPortScanningByUrlRedirection: true }),
           responseType: 'stream',
           responseType: 'stream',
         })
         })
           .then((res) => {
           .then((res) => {

+ 0 - 12
yarn.lock

@@ -12248,11 +12248,6 @@ ipaddr.js@1.9.1:
   resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
   resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
   integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==
   integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==
 
 
-ipaddr.js@^2.0.0:
-  version "2.0.1"
-  resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.0.1.tgz#eca256a7a877e917aeb368b0a7497ddf42ef81c0"
-  integrity sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==
-
 irregular-plurals@^3.2.0:
 irregular-plurals@^3.2.0:
   version "3.3.0"
   version "3.3.0"
   resolved "https://registry.yarnpkg.com/irregular-plurals/-/irregular-plurals-3.3.0.tgz#67d0715d4361a60d9fd9ee80af3881c631a31ee2"
   resolved "https://registry.yarnpkg.com/irregular-plurals/-/irregular-plurals-3.3.0.tgz#67d0715d4361a60d9fd9ee80af3881c631a31ee2"
@@ -20379,13 +20374,6 @@ replacestream@^4.0.3:
     object-assign "^4.0.1"
     object-assign "^4.0.1"
     readable-stream "^2.0.2"
     readable-stream "^2.0.2"
 
 
-request-filtering-agent@^1.1.2:
-  version "1.1.2"
-  resolved "https://registry.yarnpkg.com/request-filtering-agent/-/request-filtering-agent-1.1.2.tgz#327deaff55dfee0b32efa0025ff9b8e6e121f2f4"
-  integrity sha512-v6uYIoey6rhe+nQXB5rlYEWJI+5SrnvM72XGeLUsykzu2omOEPoW4QmzEH+8/sheK4M/hwQ85L7aPj1cTJfPLg==
-  dependencies:
-    ipaddr.js "^2.0.0"
-
 request-progress@^3.0.0:
 request-progress@^3.0.0:
   version "3.0.0"
   version "3.0.0"
   resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-3.0.0.tgz#4ca754081c7fec63f505e4faa825aa06cd669dbe"
   resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-3.0.0.tgz#4ca754081c7fec63f505e4faa825aa06cd669dbe"