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.
@@ -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
- url = node.attributes.href;
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':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swpp-backends",
3
- "version": "0.0.6-alpha",
3
+ "version": "0.0.7-alpha",
4
4
  "main": "dist/index.js",
5
5
  "typings": "types/index.d.ts",
6
6
  "description": "Generate a powerful ServiceWorker for your website.",