swpp-backends 0.0.6-alpha → 0.0.7-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fileAnalyzer.js +4 -2
- package/package.json +1 -1
package/dist/fileAnalyzer.js
CHANGED
|
@@ -214,7 +214,7 @@ exports.buildVersionJson = buildVersionJson;
|
|
|
214
214
|
*/
|
|
215
215
|
async function eachAllLinkInUrl(domain, url, result, event) {
|
|
216
216
|
if (url.startsWith('//'))
|
|
217
|
-
url = 'http' + url;
|
|
217
|
+
url = 'http:' + url;
|
|
218
218
|
if (url in result)
|
|
219
219
|
return event?.(url);
|
|
220
220
|
if (!url.startsWith('http') || isExclude(domain, url))
|
|
@@ -313,7 +313,9 @@ async function eachAllLinkInHtml(domain, content, result, event) {
|
|
|
313
313
|
let url = undefined;
|
|
314
314
|
switch (node.tagName) {
|
|
315
315
|
case 'link':
|
|
316
|
-
|
|
316
|
+
// noinspection SpellCheckingInspection
|
|
317
|
+
if (node.attributes.rel !== 'preconnect')
|
|
318
|
+
url = node.attributes.href;
|
|
317
319
|
break;
|
|
318
320
|
case 'script':
|
|
319
321
|
case 'img':
|