diff --git a/package.json b/package.json index 4361b39..be06fed 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "@koa/router": "^12.0.0", "@solid/access-token-verifier": "^2.0.5", "bcryptjs": "^2.4.3", + "cross-fetch": "^4.0.0", "dotenv": "^16.0.0", "koa": "^2.14.2", "koa-helmet": "^7.0.2", diff --git a/src/controllers/integration.ts b/src/controllers/integration.ts index ceef4b7..12027de 100644 --- a/src/controllers/integration.ts +++ b/src/controllers/integration.ts @@ -1,4 +1,5 @@ import { compare, hash } from 'bcryptjs' +import fetch from 'cross-fetch' import crypto from 'crypto' import { Middleware } from 'koa' import { pick } from 'lodash' diff --git a/src/helpers.ts b/src/helpers.ts index 1c36e4b..a7d11cc 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -4,6 +4,7 @@ import { generateDpopKeyPair, } from '@inrupt/solid-client-authn-core' import { expect } from 'chai' +import fetch from 'cross-fetch' import * as uuid from 'uuid' type Credentials = { email: string; password: string } diff --git a/src/test/integration-finish.spec.ts b/src/test/integration-finish.spec.ts index ea9732f..33ccc7b 100644 --- a/src/test/integration-finish.spec.ts +++ b/src/test/integration-finish.spec.ts @@ -1,5 +1,6 @@ import { expect } from 'chai' import * as cheerio from 'cheerio' +import fetch from 'cross-fetch' import { describe } from 'mocha' import Mail from 'nodemailer/lib/mailer' import { SinonSandbox, SinonSpy, createSandbox } from 'sinon' diff --git a/src/test/integration-start.spec.ts b/src/test/integration-start.spec.ts index 4b9314c..142410a 100644 --- a/src/test/integration-start.spec.ts +++ b/src/test/integration-start.spec.ts @@ -1,4 +1,5 @@ import { expect } from 'chai' +import fetch from 'cross-fetch' import { describe } from 'mocha' import Mail from 'nodemailer/lib/mailer' import { SinonSandbox, SinonSpy, createSandbox } from 'sinon' diff --git a/src/test/notification.spec.ts b/src/test/notification.spec.ts index 75e6050..5f3f426 100644 --- a/src/test/notification.spec.ts +++ b/src/test/notification.spec.ts @@ -1,5 +1,6 @@ import { expect } from 'chai' import * as cheerio from 'cheerio' +import fetch from 'cross-fetch' import { describe } from 'mocha' import Mail from 'nodemailer/lib/mailer' import { SinonSandbox, SinonSpy, createSandbox } from 'sinon' diff --git a/src/test/status.spec.ts b/src/test/status.spec.ts index d2f10a8..c1f22e4 100644 --- a/src/test/status.spec.ts +++ b/src/test/status.spec.ts @@ -1,5 +1,6 @@ import { expect } from 'chai' import * as cheerio from 'cheerio' +import fetch from 'cross-fetch' import { describe } from 'mocha' import Mail from 'nodemailer/lib/mailer' import { SinonSandbox, SinonSpy, createSandbox } from 'sinon'