From 79497adbabf7ddec47701a244c685c1703bd1a78 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 15 Apr 2021 11:24:00 +0200 Subject: [PATCH] package fix --- package-lock.json | 5 +++++ package.json | 1 + src/utils/metadata.ts | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 65fc4e4ef..38869adab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22312,6 +22312,11 @@ "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz", "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==" }, + "is-url-superb": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-5.0.0.tgz", + "integrity": "sha512-jGkG59ra7/JlcV8ap3dsc0M79IgpuFU/obfsSf6X5D0z1NVvFTFuzt4ob7nfBTZEPbTwjGXVKNQDfWfPghapKQ==" + }, "is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", diff --git a/package.json b/package.json index 30cbd3a71..c2adc36ee 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,7 @@ "gatsby-transformer-remark": "^2.14.0", "gatsby-transformer-sharp": "^2.10.1", "intersection-observer": "^0.12.0", + "is-url-superb": "^5.0.0", "jwt-decode": "^3.1.2", "lodash.debounce": "^4.0.8", "lodash.omit": "^4.5.0", diff --git a/src/utils/metadata.ts b/src/utils/metadata.ts index 36e491c4d..f6a47c728 100644 --- a/src/utils/metadata.ts +++ b/src/utils/metadata.ts @@ -1,4 +1,4 @@ -import axios, { CancelToken, AxiosResponse } from 'axios' +import axios from 'axios' import { toast } from 'react-toastify' import isUrl from 'is-url-superb' import {