From 6c9d097688e531391fbf6ec9c0d6153a5caab125 Mon Sep 17 00:00:00 2001 From: Benjamin Gerber Date: Tue, 29 Oct 2024 17:18:51 +0100 Subject: [PATCH] Fix missing url-parse --- buildtools/check-example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildtools/check-example.js b/buildtools/check-example.js index ca2dd8d67e0e..99caf6f6c985 100644 --- a/buildtools/check-example.js +++ b/buildtools/check-example.js @@ -24,9 +24,9 @@ 'use strict'; const path = require('path'); +const URL = require('url'); const fs = require('fs'); const puppeteer = require('puppeteer'); -const parse = require('url-parse'); const arg = process.argv[2]; if (!arg) { @@ -174,7 +174,7 @@ function loaded(page, browser) { } else if (url == 'https://sgx.geodatenzentrum.de/wmts_basemapde/1.0.0/WMTSCapabilities.xml') { request.respond(SgxCapabilities); } else if ( - parse(url).host == parse(page_url).host || + URL.parse(url).host === URL.parse(page_url).host || url.startsWith('http://localhost:') || url.startsWith('https://geomapfish-demo') || url.startsWith('https://wmts.geo.admin.ch/') ||