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
77 changes: 8 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
"mongodb-runner": "5.9.3",
"node-abort-controller": "3.1.1",
"node-fetch": "3.2.10",
"node-fetch": "3.3.2",
"nyc": "17.1.0",
"prettier": "3.8.1",
"semantic-release": "25.0.3",
Expand Down
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 });
});
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