Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion spec/GraphQLQueryComplexity.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

const http = require('http');
const express = require('express');
const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const fetch = (...args) =>
import('node-fetch').then(({ default: fetch }) => {
const [url, options = {}] = args;
return fetch(url, { agent: new http.Agent({ keepAlive: false }), ...options });
});
require('./helper');
const { ParseGraphQLServer } = require('../lib/GraphQL/ParseGraphQLServer');

Expand Down
6 changes: 5 additions & 1 deletion spec/ParseGraphQLServer.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const http = require('http');
const express = require('express');
const req = require('../lib/request');
const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const fetch = (...args) =>
import('node-fetch').then(({ default: fetch }) => {
const [url, options = {}] = args;
return fetch(url, { agent: new http.Agent({ keepAlive: false }), ...options });
});
Comment thread
mtrezza marked this conversation as resolved.
const FormData = require('form-data');
require('./helper');
const { updateCLP } = require('./support/dev');
Expand Down
6 changes: 5 additions & 1 deletion spec/vulnerabilities.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const http = require('http');
const express = require('express');
const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const fetch = (...args) =>
import('node-fetch').then(({ default: fetch }) => {
const [url, options = {}] = args;
return fetch(url, { agent: new http.Agent({ keepAlive: false }), ...options });
});
const ws = require('ws');
const request = require('../lib/request');
const Config = require('../lib/Config');
Expand Down
Loading