meodp 0.0.8 → 0.0.9

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.
@@ -7,7 +7,7 @@ const utils = require('consola/utils');
7
7
  const yargs = require('yargs');
8
8
  const helpers = require('yargs/helpers');
9
9
  require('playwright');
10
- const index = require('../shared/meodp.6b19529e.cjs');
10
+ const index = require('../shared/meodp.15f2977d.cjs');
11
11
  require('node:path');
12
12
  require('strip-ansi');
13
13
  require('winston');
@@ -68,13 +68,13 @@ function getErrorMdContent(sites) {
68
68
  continue;
69
69
  }
70
70
  const statusInfo = link.statusText ? `${link.statusCode} ${link.statusText}` : link.statusCode;
71
- md += ` - [${statusInfo}] <${link.url}>
71
+ md += ` - [${statusInfo}] [${link.url}](${link.url})
72
72
  `;
73
73
  for (const req of link.requests) {
74
74
  if (req.failed) {
75
75
  if (req.statusCode) {
76
76
  const statusInfo2 = req.statusText ? `${req.statusCode} ${req.statusText}` : req.statusCode;
77
- md += ` - [${statusInfo2}] <${req.url}>
77
+ md += ` - [${statusInfo2}] [${req.url}](${req.url})
78
78
  `;
79
79
  } else {
80
80
  md += ` - [\u23F0 TIMEOUT] <${req.url}>
@@ -5,7 +5,7 @@ import { colors } from 'consola/utils';
5
5
  import yargs from 'yargs';
6
6
  import { hideBin } from 'yargs/helpers';
7
7
  import 'playwright';
8
- import { j as createLowDB, h as defaultMEODPConfig, M as MEODP, r as runByConfig } from '../shared/meodp.b58178b8.mjs';
8
+ import { j as createLowDB, h as defaultMEODPConfig, M as MEODP, r as runByConfig } from '../shared/meodp.9a096f50.mjs';
9
9
  import 'node:path';
10
10
  import 'strip-ansi';
11
11
  import 'winston';
@@ -57,13 +57,13 @@ function getErrorMdContent(sites) {
57
57
  continue;
58
58
  }
59
59
  const statusInfo = link.statusText ? `${link.statusCode} ${link.statusText}` : link.statusCode;
60
- md += ` - [${statusInfo}] <${link.url}>
60
+ md += ` - [${statusInfo}] [${link.url}](${link.url})
61
61
  `;
62
62
  for (const req of link.requests) {
63
63
  if (req.failed) {
64
64
  if (req.statusCode) {
65
65
  const statusInfo2 = req.statusText ? `${req.statusCode} ${req.statusText}` : req.statusCode;
66
- md += ` - [${statusInfo2}] <${req.url}>
66
+ md += ` - [${statusInfo2}] [${req.url}](${req.url})
67
67
  `;
68
68
  } else {
69
69
  md += ` - [\u23F0 TIMEOUT] <${req.url}>
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./shared/meodp.6b19529e.cjs');
3
+ const index = require('./shared/meodp.15f2977d.cjs');
4
4
  require('consola/utils');
5
5
  require('playwright');
6
6
  require('node:path');
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { g as getBrowser, s as siteUrlMap } from './shared/meodp.b58178b8.mjs';
2
- export { L as LocalLog, P as PQueueMap, a as checkLink, c as checkMEODPUrl, f as checkSite, e as checkSiteUrl, d as checkUrlNomoduleAssets, j as createLowDB, m as createMEODPLogger, n as createWinstonLogger, h as defaultMEODPConfig, i as defineConfig, y as emojiMap, t as formatArgs, v as getFormattedDataFromResponse, u as getFormattedDuration, z as getMEODPUrlItemInfo, b as getSiteLinks, w as isLink, k as localLog, l as logUrlItemInfo, o as multiBar, x as parseUrlMap, p as progressBarMap, q as registerPageEvents, r as runByConfig } from './shared/meodp.b58178b8.mjs';
1
+ import { g as getBrowser, s as siteUrlMap } from './shared/meodp.9a096f50.mjs';
2
+ export { L as LocalLog, P as PQueueMap, a as checkLink, c as checkMEODPUrl, f as checkSite, e as checkSiteUrl, d as checkUrlNomoduleAssets, j as createLowDB, m as createMEODPLogger, n as createWinstonLogger, h as defaultMEODPConfig, i as defineConfig, y as emojiMap, t as formatArgs, v as getFormattedDataFromResponse, u as getFormattedDuration, z as getMEODPUrlItemInfo, b as getSiteLinks, w as isLink, k as localLog, l as logUrlItemInfo, o as multiBar, x as parseUrlMap, p as progressBarMap, q as registerPageEvents, r as runByConfig } from './shared/meodp.9a096f50.mjs';
3
3
  import 'consola/utils';
4
4
  import 'playwright';
5
5
  import 'node:path';
@@ -775,7 +775,7 @@ async function checkSiteUrl(url, options) {
775
775
  failed: value.failed,
776
776
  ignored: value.ignored,
777
777
  // res.url 还没用返回
778
- url: req?.url(),
778
+ url: value.request.url(),
779
779
  statusCode: res2?.status(),
780
780
  statusText: res2?.statusText()
781
781
  };
@@ -759,7 +759,7 @@ async function checkSiteUrl(url, options) {
759
759
  failed: value.failed,
760
760
  ignored: value.ignored,
761
761
  // res.url 还没用返回
762
- url: req?.url(),
762
+ url: value.request.url(),
763
763
  statusCode: res2?.status(),
764
764
  statusText: res2?.statusText()
765
765
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "meodp",
3
3
  "type": "module",
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "packageManager": "pnpm@9.12.3",
6
6
  "description": "Mystic Eyes of Death Perception. Find out dead links in your site.",
7
7
  "keywords": [