meodp 0.0.1 → 0.0.3
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/cli/index.cjs
CHANGED
|
@@ -7,18 +7,17 @@ const utils = require('consola/utils');
|
|
|
7
7
|
const yargs = require('yargs');
|
|
8
8
|
const helpers = require('yargs/helpers');
|
|
9
9
|
require('playwright');
|
|
10
|
-
const config = require('../shared/meodp.
|
|
10
|
+
const config = require('../shared/meodp.e8cfff87.cjs');
|
|
11
11
|
require('node:path');
|
|
12
12
|
require('strip-ansi');
|
|
13
13
|
require('winston');
|
|
14
|
-
require('winston/lib/winston/transports');
|
|
15
14
|
require('p-queue');
|
|
16
15
|
require('date-fns');
|
|
17
16
|
require('fs-extra');
|
|
18
17
|
require('cli-progress');
|
|
19
|
-
require('cli-progress/lib/options');
|
|
20
|
-
require('cli-progress/lib/format-bar');
|
|
21
|
-
require('cli-progress/lib/format-time');
|
|
18
|
+
require('cli-progress/lib/options.js');
|
|
19
|
+
require('cli-progress/lib/format-bar.js');
|
|
20
|
+
require('cli-progress/lib/format-time.js');
|
|
22
21
|
|
|
23
22
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
24
23
|
|
package/dist/cli/index.mjs
CHANGED
|
@@ -5,18 +5,17 @@ import { colors } from 'consola/utils';
|
|
|
5
5
|
import yargs from 'yargs';
|
|
6
6
|
import { hideBin } from 'yargs/helpers';
|
|
7
7
|
import 'playwright';
|
|
8
|
-
import { h as defaultMEODPConfig, M as MEODP, r as runByConfig } from '../shared/meodp.
|
|
8
|
+
import { h as defaultMEODPConfig, M as MEODP, r as runByConfig } from '../shared/meodp.f86a1a9f.mjs';
|
|
9
9
|
import 'node:path';
|
|
10
10
|
import 'strip-ansi';
|
|
11
11
|
import 'winston';
|
|
12
|
-
import 'winston/lib/winston/transports';
|
|
13
12
|
import 'p-queue';
|
|
14
13
|
import 'date-fns';
|
|
15
14
|
import 'fs-extra';
|
|
16
15
|
import 'cli-progress';
|
|
17
|
-
import 'cli-progress/lib/options';
|
|
18
|
-
import 'cli-progress/lib/format-bar';
|
|
19
|
-
import 'cli-progress/lib/format-time';
|
|
16
|
+
import 'cli-progress/lib/options.js';
|
|
17
|
+
import 'cli-progress/lib/format-bar.js';
|
|
18
|
+
import 'cli-progress/lib/format-time.js';
|
|
20
19
|
|
|
21
20
|
function commonOptions(args) {
|
|
22
21
|
return args.positional("root", {
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const config = require('./shared/meodp.
|
|
3
|
+
const config = require('./shared/meodp.e8cfff87.cjs');
|
|
4
4
|
require('consola');
|
|
5
5
|
require('p-queue');
|
|
6
6
|
require('consola/utils');
|
|
@@ -11,11 +11,10 @@ require('date-fns');
|
|
|
11
11
|
require('fs-extra');
|
|
12
12
|
require('strip-ansi');
|
|
13
13
|
require('winston');
|
|
14
|
-
require('winston/lib/winston/transports');
|
|
15
14
|
require('cli-progress');
|
|
16
|
-
require('cli-progress/lib/options');
|
|
17
|
-
require('cli-progress/lib/format-bar');
|
|
18
|
-
require('cli-progress/lib/format-time');
|
|
15
|
+
require('cli-progress/lib/options.js');
|
|
16
|
+
require('cli-progress/lib/format-bar.js');
|
|
17
|
+
require('cli-progress/lib/format-time.js');
|
|
19
18
|
|
|
20
19
|
async function checkSiteMap(urlItem) {
|
|
21
20
|
const { url } = urlItem;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getBrowser, s as siteUrlMap } from './shared/meodp.
|
|
2
|
-
export { L as LocalLog, P as PQueueMap, a as checkLink, c as checkMEODPUrl, f as checkSite, e as checkSiteUrl, d as checkUrlNomoduleAssets, k as createMEODPLogger, m as createWinstonLogger, h as defaultMEODPConfig, i as defineConfig, w as emojiMap, q as formatArgs, t as getFormattedDataFromResponse, x as getMEODPUrlItemInfo, b as getSiteLinks, u as isLink, j as localLog, l as logUrlItemInfo, n as multiBar, v as parseUrlMap, p as progressBarMap, o as registerPageEvents, r as runByConfig } from './shared/meodp.
|
|
1
|
+
import { g as getBrowser, s as siteUrlMap } from './shared/meodp.f86a1a9f.mjs';
|
|
2
|
+
export { L as LocalLog, P as PQueueMap, a as checkLink, c as checkMEODPUrl, f as checkSite, e as checkSiteUrl, d as checkUrlNomoduleAssets, k as createMEODPLogger, m as createWinstonLogger, h as defaultMEODPConfig, i as defineConfig, w as emojiMap, q as formatArgs, t as getFormattedDataFromResponse, x as getMEODPUrlItemInfo, b as getSiteLinks, u as isLink, j as localLog, l as logUrlItemInfo, n as multiBar, v as parseUrlMap, p as progressBarMap, o as registerPageEvents, r as runByConfig } from './shared/meodp.f86a1a9f.mjs';
|
|
3
3
|
import 'consola';
|
|
4
4
|
import 'p-queue';
|
|
5
5
|
import 'consola/utils';
|
|
@@ -10,11 +10,10 @@ import 'date-fns';
|
|
|
10
10
|
import 'fs-extra';
|
|
11
11
|
import 'strip-ansi';
|
|
12
12
|
import 'winston';
|
|
13
|
-
import 'winston/lib/winston/transports';
|
|
14
13
|
import 'cli-progress';
|
|
15
|
-
import 'cli-progress/lib/options';
|
|
16
|
-
import 'cli-progress/lib/format-bar';
|
|
17
|
-
import 'cli-progress/lib/format-time';
|
|
14
|
+
import 'cli-progress/lib/options.js';
|
|
15
|
+
import 'cli-progress/lib/format-bar.js';
|
|
16
|
+
import 'cli-progress/lib/format-time.js';
|
|
18
17
|
|
|
19
18
|
async function checkSiteMap(urlItem) {
|
|
20
19
|
const { url } = urlItem;
|
|
@@ -10,11 +10,10 @@ const dateFns = require('date-fns');
|
|
|
10
10
|
const fs = require('fs-extra');
|
|
11
11
|
const stripAnsi = require('strip-ansi');
|
|
12
12
|
const winston = require('winston');
|
|
13
|
-
const transports = require('winston/lib/winston/transports');
|
|
14
13
|
const cliProgress = require('cli-progress');
|
|
15
|
-
const Options = require('cli-progress/lib/options');
|
|
16
|
-
const _defaultFormatBar = require('cli-progress/lib/format-bar');
|
|
17
|
-
const _defaultFormatTime = require('cli-progress/lib/format-time');
|
|
14
|
+
const Options = require('cli-progress/lib/options.js');
|
|
15
|
+
const _defaultFormatBar = require('cli-progress/lib/format-bar.js');
|
|
16
|
+
const _defaultFormatTime = require('cli-progress/lib/format-time.js');
|
|
18
17
|
|
|
19
18
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
20
19
|
|
|
@@ -25,7 +24,6 @@ const process__default = /*#__PURE__*/_interopDefaultCompat(process);
|
|
|
25
24
|
const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
26
25
|
const stripAnsi__default = /*#__PURE__*/_interopDefaultCompat(stripAnsi);
|
|
27
26
|
const winston__default = /*#__PURE__*/_interopDefaultCompat(winston);
|
|
28
|
-
const transports__default = /*#__PURE__*/_interopDefaultCompat(transports);
|
|
29
27
|
const cliProgress__default = /*#__PURE__*/_interopDefaultCompat(cliProgress);
|
|
30
28
|
const Options__default = /*#__PURE__*/_interopDefaultCompat(Options);
|
|
31
29
|
const _defaultFormatBar__default = /*#__PURE__*/_interopDefaultCompat(_defaultFormatBar);
|
|
@@ -424,11 +422,11 @@ function createWinstonLogger() {
|
|
|
424
422
|
})
|
|
425
423
|
);
|
|
426
424
|
const customTransports = [
|
|
427
|
-
new
|
|
425
|
+
new winston__default.transports.File({
|
|
428
426
|
filename: errorLogPath,
|
|
429
427
|
level: "error"
|
|
430
428
|
}),
|
|
431
|
-
new
|
|
429
|
+
new winston__default.transports.File({
|
|
432
430
|
filename: allLogPath
|
|
433
431
|
// level: 'info',
|
|
434
432
|
})
|
|
@@ -8,11 +8,10 @@ import { formatDate } from 'date-fns';
|
|
|
8
8
|
import fs from 'fs-extra';
|
|
9
9
|
import stripAnsi from 'strip-ansi';
|
|
10
10
|
import winston from 'winston';
|
|
11
|
-
import transports from 'winston/lib/winston/transports';
|
|
12
11
|
import cliProgress from 'cli-progress';
|
|
13
|
-
import Options from 'cli-progress/lib/options';
|
|
14
|
-
import _defaultFormatBar from 'cli-progress/lib/format-bar';
|
|
15
|
-
import _defaultFormatTime from 'cli-progress/lib/format-time';
|
|
12
|
+
import Options from 'cli-progress/lib/options.js';
|
|
13
|
+
import _defaultFormatBar from 'cli-progress/lib/format-bar.js';
|
|
14
|
+
import _defaultFormatTime from 'cli-progress/lib/format-time.js';
|
|
16
15
|
|
|
17
16
|
const siteUrlMap = /* @__PURE__ */ new Map();
|
|
18
17
|
const PQueueMap = /* @__PURE__ */ new Map();
|
|
@@ -407,11 +406,11 @@ function createWinstonLogger() {
|
|
|
407
406
|
})
|
|
408
407
|
);
|
|
409
408
|
const customTransports = [
|
|
410
|
-
new transports.File({
|
|
409
|
+
new winston.transports.File({
|
|
411
410
|
filename: errorLogPath,
|
|
412
411
|
level: "error"
|
|
413
412
|
}),
|
|
414
|
-
new transports.File({
|
|
413
|
+
new winston.transports.File({
|
|
415
414
|
filename: allLogPath
|
|
416
415
|
// level: 'info',
|
|
417
416
|
})
|