Updated dependencies

pull/10/head
MillenniumEarl 2020-10-09 16:44:44 +02:00
parent 1c25e2806d
commit 2e49c66eca
3 changed files with 2 additions and 9 deletions

View File

@ -1,7 +1,6 @@
"use strict"; "use strict";
// Public modules from npm // Public modules from npm
const isUrl = require("is-url-superb");
const ky = require("ky-universal").create({ const ky = require("ky-universal").create({
throwHttpErrors: false throwHttpErrors: false
}); });
@ -43,7 +42,7 @@ module.exports.isStringAValidURL = function(url) {
* @returns {Promise<Boolean>} true if the URL exists, false otherwise * @returns {Promise<Boolean>} true if the URL exists, false otherwise
*/ */
module.exports.urlExists = async function(url, checkRedirect) { module.exports.urlExists = async function(url, checkRedirect) {
if (!isUrl(url)) { if (!this.isStringAValidURL(url)) {
return false return false
} }

5
package-lock.json generated
View File

@ -1069,11 +1069,6 @@
"integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
"dev": true "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": { "is-windows": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz",

View File

@ -1,7 +1,7 @@
{ {
"main": "./app/index.js", "main": "./app/index.js",
"name": "f95api", "name": "f95api",
"version": "1.0.1", "version": "1.0.2",
"author": { "author": {
"name": "Millennium Earl" "name": "Millennium Earl"
}, },
@ -31,7 +31,6 @@
"node": ">=10.0" "node": ">=10.0"
}, },
"dependencies": { "dependencies": {
"is-url-superb": "^4.0.0",
"ky-universal": "^0.8.2", "ky-universal": "^0.8.2",
"node-html-parser": "^1.2.21", "node-html-parser": "^1.2.21",
"puppeteer": "^5.3.1" "puppeteer": "^5.3.1"