linkinator
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -47,3 +47,7 @@ import { promises as fs } from 'fs'; | ||
async function importConfigFile(configPath) { | ||
const config = (await import(`file://${path.resolve(process.cwd(), configPath)}`)).default; | ||
// Use a filthy hack to prevent ncc / webpack from trying to process | ||
// the runtime dynamic import. This hurt me more than it disgusts | ||
// whoever is reading the code. | ||
const _import = new Function('p', 'return import(p)'); | ||
const config = (await _import(`file://${path.resolve(process.cwd(), configPath)}`)).default; | ||
return config; | ||
@@ -50,0 +54,0 @@ } |
@@ -14,2 +14,2 @@ /// <reference types="node" /> | ||
*/ | ||
export declare function startWebServer(options: WebServerOptions): Promise<http.Server>; | ||
export declare function startWebServer(options: WebServerOptions): Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>; |
{ | ||
"name": "linkinator", | ||
"description": "Find broken links, missing images, etc in your HTML. Scurry around your site and find all those broken links.", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"license": "MIT", | ||
@@ -43,3 +43,3 @@ "repository": "JustinBeckwith/linkinator", | ||
"@types/mocha": "^10.0.0", | ||
"@types/node": "^16.11.7", | ||
"@types/node": "^18.0.0", | ||
"@types/server-destroy": "^1.0.1", | ||
@@ -46,0 +46,0 @@ "@types/sinon": "^10.0.6", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107707
1455
2