diff --git a/app/scripts/urls-helper.js b/app/scripts/urls-helper.js index 9eb2ba7..1c71701 100644 --- a/app/scripts/urls-helper.js +++ b/app/scripts/urls-helper.js @@ -1,7 +1,6 @@ "use strict"; // Public modules from npm -const isUrl = require("is-url-superb"); const ky = require("ky-universal").create({ throwHttpErrors: false }); @@ -43,7 +42,7 @@ module.exports.isStringAValidURL = function(url) { * @returns {Promise} true if the URL exists, false otherwise */ module.exports.urlExists = async function(url, checkRedirect) { - if (!isUrl(url)) { + if (!this.isStringAValidURL(url)) { return false } diff --git a/package-lock.json b/package-lock.json index b2f0c3e..2aa1a38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1069,11 +1069,6 @@ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, - "is-url-superb": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-4.0.0.tgz", - "integrity": "sha512-GI+WjezhPPcbM+tqE9LnmsY5qqjwHzTvjJ36wxYX5ujNXefSUJ/T17r5bqDV8yLhcgB59KTPNOc9O9cmHTPWsA==" - }, "is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", diff --git a/package.json b/package.json index ef6b468..33a694f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "main": "./app/index.js", "name": "f95api", - "version": "1.0.1", + "version": "1.0.2", "author": { "name": "Millennium Earl" }, @@ -31,7 +31,6 @@ "node": ">=10.0" }, "dependencies": { - "is-url-superb": "^4.0.0", "ky-universal": "^0.8.2", "node-html-parser": "^1.2.21", "puppeteer": "^5.3.1"