@forsakringskassan/docs-generator 2.34.0 → 2.35.0
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/{create-markdown-renderer-C8_hQlL-.mjs → create-markdown-renderer-CEuJ5uE8.mjs} +7 -7
- package/dist/create-markdown-renderer-CEuJ5uE8.mjs.map +1 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.mjs +49 -38
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.mjs +4 -4
- package/dist/style/core.css +7 -7
- package/dist/style/index.css +9 -7
- package/dist/style/site.css +2 -0
- package/dist/style/theme/fkui.css +6 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/{vendor-BPf0gRBB.mjs → vendor-CMa7Qsb1.mjs} +192 -136
- package/dist/vendor-CMa7Qsb1.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/create-markdown-renderer-C8_hQlL-.mjs.map +0 -1
- package/dist/vendor-BPf0gRBB.mjs.map +0 -1
|
@@ -3,33 +3,33 @@ import { createRequire as $createRequire } from "node:module";
|
|
|
3
3
|
const require = $createRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import * as sp from 'node:path';
|
|
7
|
+
import sp__default, { win32, posix, resolve, join, relative, sep as sep$1 } from 'node:path';
|
|
8
|
+
import require$$0$3, { realpathSync as realpathSync$1, readlinkSync, readdirSync, readdir as readdir$1, lstatSync } from 'fs';
|
|
8
9
|
import * as fs$1 from 'node:fs';
|
|
9
|
-
import { readFileSync } from 'node:fs';
|
|
10
|
-
import { realpath, readlink, readdir, lstat } from 'node:fs/promises';
|
|
10
|
+
import { readFileSync, unwatchFile, watchFile, watch as watch$2, stat as stat$2 } from 'node:fs';
|
|
11
|
+
import { realpath, readlink, readdir, lstat, stat as stat$1, open } from 'node:fs/promises';
|
|
11
12
|
import { EventEmitter as EventEmitter$1 } from 'node:events';
|
|
12
|
-
import Stream from 'node:stream';
|
|
13
|
+
import Stream, { Readable } from 'node:stream';
|
|
13
14
|
import { StringDecoder } from 'node:string_decoder';
|
|
14
15
|
import require$$0$1 from 'constants';
|
|
15
|
-
import require$$0$2
|
|
16
|
+
import require$$0$2 from 'stream';
|
|
16
17
|
import require$$1 from 'util';
|
|
17
18
|
import require$$5 from 'assert';
|
|
18
|
-
import
|
|
19
|
-
import sysPath__default, { resolve, join, relative, sep as sep$1 } from 'path';
|
|
19
|
+
import require$$1$1 from 'path';
|
|
20
20
|
import { createRequire } from 'node:module';
|
|
21
21
|
import require$$0$4 from 'readline';
|
|
22
|
-
import require$$3
|
|
23
|
-
import {
|
|
24
|
-
import require$$
|
|
25
|
-
import require$$1$4 from 'http';
|
|
22
|
+
import require$$3 from 'events';
|
|
23
|
+
import { type as type$2 } from 'node:os';
|
|
24
|
+
import require$$1$5 from 'http';
|
|
26
25
|
import require$$2$2 from 'https';
|
|
27
26
|
import require$$2 from 'url';
|
|
28
27
|
import require$$0$5 from 'buffer';
|
|
29
|
-
import require$$1$
|
|
30
|
-
import require$$1$
|
|
28
|
+
import require$$1$2 from 'crypto';
|
|
29
|
+
import require$$1$3 from 'net';
|
|
31
30
|
import require$$2$1 from 'tls';
|
|
32
|
-
import require$$1$
|
|
31
|
+
import require$$1$4 from 'tty';
|
|
32
|
+
import require$$0$6 from 'os';
|
|
33
33
|
import require$$0$7 from 'querystring';
|
|
34
34
|
|
|
35
35
|
/* eslint-disable no-bitwise */
|
|
@@ -22450,7 +22450,7 @@ var hasRequiredUtils$2;
|
|
|
22450
22450
|
function requireUtils$2 () {
|
|
22451
22451
|
if (hasRequiredUtils$2) return utils$2;
|
|
22452
22452
|
hasRequiredUtils$2 = 1;
|
|
22453
|
-
const path =
|
|
22453
|
+
const path = require$$1$1;
|
|
22454
22454
|
|
|
22455
22455
|
// https://github.com/nodejs/node/issues/8987
|
|
22456
22456
|
// https://github.com/libuv/libuv/pull/1088
|
|
@@ -22596,7 +22596,7 @@ function requireStat () {
|
|
|
22596
22596
|
hasRequiredStat = 1;
|
|
22597
22597
|
|
|
22598
22598
|
const fs = requireFs();
|
|
22599
|
-
const path =
|
|
22599
|
+
const path = require$$1$1;
|
|
22600
22600
|
const u = requireUniversalify().fromPromise;
|
|
22601
22601
|
|
|
22602
22602
|
function getStats (src, dest, opts) {
|
|
@@ -22800,7 +22800,7 @@ function requireCopy$1 () {
|
|
|
22800
22800
|
hasRequiredCopy$1 = 1;
|
|
22801
22801
|
|
|
22802
22802
|
const fs = requireFs();
|
|
22803
|
-
const path =
|
|
22803
|
+
const path = require$$1$1;
|
|
22804
22804
|
const { mkdirs } = requireMkdirs();
|
|
22805
22805
|
const { pathExists } = requirePathExists();
|
|
22806
22806
|
const { utimesMillis } = requireUtimes();
|
|
@@ -22983,7 +22983,7 @@ function requireCopySync () {
|
|
|
22983
22983
|
hasRequiredCopySync = 1;
|
|
22984
22984
|
|
|
22985
22985
|
const fs = requireGracefulFs();
|
|
22986
|
-
const path =
|
|
22986
|
+
const path = require$$1$1;
|
|
22987
22987
|
const mkdirsSync = requireMkdirs().mkdirsSync;
|
|
22988
22988
|
const utimesMillisSync = requireUtimes().utimesMillisSync;
|
|
22989
22989
|
const stat = requireStat();
|
|
@@ -23203,7 +23203,7 @@ function requireEmpty () {
|
|
|
23203
23203
|
|
|
23204
23204
|
const u = requireUniversalify().fromPromise;
|
|
23205
23205
|
const fs = requireFs();
|
|
23206
|
-
const path =
|
|
23206
|
+
const path = require$$1$1;
|
|
23207
23207
|
const mkdir = requireMkdirs();
|
|
23208
23208
|
const remove = requireRemove();
|
|
23209
23209
|
|
|
@@ -23249,7 +23249,7 @@ function requireFile () {
|
|
|
23249
23249
|
hasRequiredFile = 1;
|
|
23250
23250
|
|
|
23251
23251
|
const u = requireUniversalify().fromPromise;
|
|
23252
|
-
const path =
|
|
23252
|
+
const path = require$$1$1;
|
|
23253
23253
|
const fs = requireFs();
|
|
23254
23254
|
const mkdir = requireMkdirs();
|
|
23255
23255
|
|
|
@@ -23323,7 +23323,7 @@ function requireLink () {
|
|
|
23323
23323
|
hasRequiredLink = 1;
|
|
23324
23324
|
|
|
23325
23325
|
const u = requireUniversalify().fromPromise;
|
|
23326
|
-
const path =
|
|
23326
|
+
const path = require$$1$1;
|
|
23327
23327
|
const fs = requireFs();
|
|
23328
23328
|
const mkdir = requireMkdirs();
|
|
23329
23329
|
const { pathExists } = requirePathExists();
|
|
@@ -23394,7 +23394,7 @@ function requireSymlinkPaths () {
|
|
|
23394
23394
|
if (hasRequiredSymlinkPaths) return symlinkPaths_1;
|
|
23395
23395
|
hasRequiredSymlinkPaths = 1;
|
|
23396
23396
|
|
|
23397
|
-
const path =
|
|
23397
|
+
const path = require$$1$1;
|
|
23398
23398
|
const fs = requireFs();
|
|
23399
23399
|
const { pathExists } = requirePathExists();
|
|
23400
23400
|
|
|
@@ -23546,7 +23546,7 @@ function requireSymlink () {
|
|
|
23546
23546
|
hasRequiredSymlink = 1;
|
|
23547
23547
|
|
|
23548
23548
|
const u = requireUniversalify().fromPromise;
|
|
23549
|
-
const path =
|
|
23549
|
+
const path = require$$1$1;
|
|
23550
23550
|
const fs = requireFs();
|
|
23551
23551
|
|
|
23552
23552
|
const { mkdirs, mkdirsSync } = requireMkdirs();
|
|
@@ -23792,7 +23792,7 @@ function requireOutputFile () {
|
|
|
23792
23792
|
|
|
23793
23793
|
const u = requireUniversalify().fromPromise;
|
|
23794
23794
|
const fs = requireFs();
|
|
23795
|
-
const path =
|
|
23795
|
+
const path = require$$1$1;
|
|
23796
23796
|
const mkdir = requireMkdirs();
|
|
23797
23797
|
const pathExists = requirePathExists().pathExists;
|
|
23798
23798
|
|
|
@@ -23894,7 +23894,7 @@ function requireMove$1 () {
|
|
|
23894
23894
|
hasRequiredMove$1 = 1;
|
|
23895
23895
|
|
|
23896
23896
|
const fs = requireFs();
|
|
23897
|
-
const path =
|
|
23897
|
+
const path = require$$1$1;
|
|
23898
23898
|
const { copy } = requireCopy();
|
|
23899
23899
|
const { remove } = requireRemove();
|
|
23900
23900
|
const { mkdirp } = requireMkdirs();
|
|
@@ -23961,7 +23961,7 @@ function requireMoveSync () {
|
|
|
23961
23961
|
hasRequiredMoveSync = 1;
|
|
23962
23962
|
|
|
23963
23963
|
const fs = requireGracefulFs();
|
|
23964
|
-
const path =
|
|
23964
|
+
const path = require$$1$1;
|
|
23965
23965
|
const copySync = requireCopy().copySync;
|
|
23966
23966
|
const removeSync = requireRemove().removeSync;
|
|
23967
23967
|
const mkdirpSync = requireMkdirs().mkdirpSync;
|
|
@@ -26370,7 +26370,7 @@ function requireResolvePackagePath () {
|
|
|
26370
26370
|
// extracted in part from: https://github.com/stefanpenner/hash-for-dep/blob/15b2ebcf22024ceb2eb7907f8c412ae40f87b15e/lib/resolve-package-path.js#L1
|
|
26371
26371
|
//
|
|
26372
26372
|
const fs = require$$0$3;
|
|
26373
|
-
const path =
|
|
26373
|
+
const path = require$$1$1;
|
|
26374
26374
|
const pathRoot = requirePathRoot();
|
|
26375
26375
|
const rethrow_unless_code_1 = __importDefault(requireRethrowUnlessCode());
|
|
26376
26376
|
/*
|
|
@@ -26678,7 +26678,7 @@ function requireLib$1 () {
|
|
|
26678
26678
|
var __importDefault = (lib$1 && lib$1.__importDefault) || function (mod) {
|
|
26679
26679
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26680
26680
|
};
|
|
26681
|
-
const path_1 = __importDefault(
|
|
26681
|
+
const path_1 = __importDefault(require$$1$1);
|
|
26682
26682
|
const resolve_package_path_1 = __importDefault(requireResolvePackagePath());
|
|
26683
26683
|
const rethrow_unless_code_1 = __importDefault(requireRethrowUnlessCode());
|
|
26684
26684
|
const ALLOWED_ERROR_CODES = [
|
|
@@ -26854,14 +26854,14 @@ var moduleImporter = {
|
|
|
26854
26854
|
readFileSync(packagePath, { encoding: "utf-8" })
|
|
26855
26855
|
);
|
|
26856
26856
|
}
|
|
26857
|
-
const moduleDirectory =
|
|
26857
|
+
const moduleDirectory = sp__default.dirname(packagePath);
|
|
26858
26858
|
try {
|
|
26859
26859
|
const match = o(packageJson, filePath.substring(1), {
|
|
26860
26860
|
conditions: ["sass"]
|
|
26861
26861
|
});
|
|
26862
26862
|
if (match && match.length === 1) {
|
|
26863
26863
|
return new URL(
|
|
26864
|
-
pathToFileURL(
|
|
26864
|
+
pathToFileURL(sp__default.join(moduleDirectory, match[0]))
|
|
26865
26865
|
);
|
|
26866
26866
|
}
|
|
26867
26867
|
} catch {
|
|
@@ -26870,12 +26870,12 @@ var moduleImporter = {
|
|
|
26870
26870
|
const match = i(packageJson, { fields: ["sass", "main"] });
|
|
26871
26871
|
if (match) {
|
|
26872
26872
|
return new URL(
|
|
26873
|
-
pathToFileURL(
|
|
26873
|
+
pathToFileURL(sp__default.join(moduleDirectory, match))
|
|
26874
26874
|
);
|
|
26875
26875
|
}
|
|
26876
26876
|
}
|
|
26877
|
-
const directory =
|
|
26878
|
-
const fileName =
|
|
26877
|
+
const directory = sp__default.dirname(filePath);
|
|
26878
|
+
const fileName = sp__default.basename(filePath);
|
|
26879
26879
|
const search = [
|
|
26880
26880
|
`${fileName}.css`,
|
|
26881
26881
|
`${fileName}.scss`,
|
|
@@ -26885,7 +26885,7 @@ var moduleImporter = {
|
|
|
26885
26885
|
];
|
|
26886
26886
|
for (const variant of search) {
|
|
26887
26887
|
try {
|
|
26888
|
-
const moduleName =
|
|
26888
|
+
const moduleName = sp__default.posix.join(
|
|
26889
26889
|
moduleDirectory,
|
|
26890
26890
|
directory,
|
|
26891
26891
|
variant
|
|
@@ -45407,30 +45407,44 @@ var HighlightJS = /*@__PURE__*/getDefaultExportFromCjs(commonExports);
|
|
|
45407
45407
|
|
|
45408
45408
|
// https://nodejs.org/api/packages.html#packages_writing_dual_packages_while_avoiding_or_minimizing_hazards
|
|
45409
45409
|
|
|
45410
|
-
|
|
45411
|
-
|
|
45412
|
-
|
|
45413
|
-
|
|
45414
|
-
|
|
45415
|
-
|
|
45416
|
-
|
|
45417
|
-
|
|
45418
|
-
|
|
45419
|
-
|
|
45420
|
-
|
|
45421
|
-
|
|
45410
|
+
const EntryTypes = {
|
|
45411
|
+
FILE_TYPE: 'files',
|
|
45412
|
+
DIR_TYPE: 'directories',
|
|
45413
|
+
FILE_DIR_TYPE: 'files_directories',
|
|
45414
|
+
EVERYTHING_TYPE: 'all',
|
|
45415
|
+
};
|
|
45416
|
+
const defaultOptions = {
|
|
45417
|
+
root: '.',
|
|
45418
|
+
fileFilter: (_entryInfo) => true,
|
|
45419
|
+
directoryFilter: (_entryInfo) => true,
|
|
45420
|
+
type: EntryTypes.FILE_TYPE,
|
|
45421
|
+
lstat: false,
|
|
45422
|
+
depth: 2147483648,
|
|
45423
|
+
alwaysStat: false,
|
|
45424
|
+
highWaterMark: 4096,
|
|
45425
|
+
};
|
|
45426
|
+
Object.freeze(defaultOptions);
|
|
45422
45427
|
const RECURSIVE_ERROR_CODE = 'READDIRP_RECURSIVE_ERROR';
|
|
45423
45428
|
const NORMAL_FLOW_ERRORS = new Set(['ENOENT', 'EPERM', 'EACCES', 'ELOOP', RECURSIVE_ERROR_CODE]);
|
|
45424
|
-
const
|
|
45425
|
-
|
|
45426
|
-
|
|
45427
|
-
|
|
45428
|
-
|
|
45429
|
-
|
|
45430
|
-
const
|
|
45429
|
+
const ALL_TYPES = [
|
|
45430
|
+
EntryTypes.DIR_TYPE,
|
|
45431
|
+
EntryTypes.EVERYTHING_TYPE,
|
|
45432
|
+
EntryTypes.FILE_DIR_TYPE,
|
|
45433
|
+
EntryTypes.FILE_TYPE,
|
|
45434
|
+
];
|
|
45435
|
+
const DIR_TYPES = new Set([
|
|
45436
|
+
EntryTypes.DIR_TYPE,
|
|
45437
|
+
EntryTypes.EVERYTHING_TYPE,
|
|
45438
|
+
EntryTypes.FILE_DIR_TYPE,
|
|
45439
|
+
]);
|
|
45440
|
+
const FILE_TYPES = new Set([
|
|
45441
|
+
EntryTypes.EVERYTHING_TYPE,
|
|
45442
|
+
EntryTypes.FILE_DIR_TYPE,
|
|
45443
|
+
EntryTypes.FILE_TYPE,
|
|
45444
|
+
]);
|
|
45431
45445
|
const isNormalFlowError = (error) => NORMAL_FLOW_ERRORS.has(error.code);
|
|
45432
45446
|
const wantBigintFsStats = process.platform === 'win32';
|
|
45433
|
-
const emptyFn = (
|
|
45447
|
+
const emptyFn = (_entryInfo) => true;
|
|
45434
45448
|
const normalizeFilter = (filter) => {
|
|
45435
45449
|
if (filter === undefined)
|
|
45436
45450
|
return emptyFn;
|
|
@@ -45446,18 +45460,33 @@ const normalizeFilter = (filter) => {
|
|
|
45446
45460
|
}
|
|
45447
45461
|
return emptyFn;
|
|
45448
45462
|
};
|
|
45463
|
+
/** Readable readdir stream, emitting new files as they're being listed. */
|
|
45449
45464
|
class ReaddirpStream extends Readable {
|
|
45465
|
+
parents;
|
|
45466
|
+
reading;
|
|
45467
|
+
parent;
|
|
45468
|
+
_stat;
|
|
45469
|
+
_maxDepth;
|
|
45470
|
+
_wantsDir;
|
|
45471
|
+
_wantsFile;
|
|
45472
|
+
_wantsEverything;
|
|
45473
|
+
_root;
|
|
45474
|
+
_isDirent;
|
|
45475
|
+
_statsProp;
|
|
45476
|
+
_rdOptions;
|
|
45477
|
+
_fileFilter;
|
|
45478
|
+
_directoryFilter;
|
|
45450
45479
|
constructor(options = {}) {
|
|
45451
45480
|
super({
|
|
45452
45481
|
objectMode: true,
|
|
45453
45482
|
autoDestroy: true,
|
|
45454
45483
|
highWaterMark: options.highWaterMark,
|
|
45455
45484
|
});
|
|
45456
|
-
const opts = { ...defaultOptions
|
|
45485
|
+
const opts = { ...defaultOptions, ...options };
|
|
45457
45486
|
const { root, type } = opts;
|
|
45458
45487
|
this._fileFilter = normalizeFilter(opts.fileFilter);
|
|
45459
45488
|
this._directoryFilter = normalizeFilter(opts.directoryFilter);
|
|
45460
|
-
const statMethod = opts.lstat ? lstat
|
|
45489
|
+
const statMethod = opts.lstat ? lstat : stat$1;
|
|
45461
45490
|
// Use bigint stats if it's windows and stat() supports options (node 10+).
|
|
45462
45491
|
if (wantBigintFsStats) {
|
|
45463
45492
|
this._stat = (path) => statMethod(path, { bigint: true });
|
|
@@ -45465,10 +45494,11 @@ class ReaddirpStream extends Readable {
|
|
|
45465
45494
|
else {
|
|
45466
45495
|
this._stat = statMethod;
|
|
45467
45496
|
}
|
|
45468
|
-
this._maxDepth =
|
|
45469
|
-
|
|
45470
|
-
this.
|
|
45471
|
-
this.
|
|
45497
|
+
this._maxDepth =
|
|
45498
|
+
opts.depth != null && Number.isSafeInteger(opts.depth) ? opts.depth : defaultOptions.depth;
|
|
45499
|
+
this._wantsDir = type ? DIR_TYPES.has(type) : false;
|
|
45500
|
+
this._wantsFile = type ? FILE_TYPES.has(type) : false;
|
|
45501
|
+
this._wantsEverything = type === EntryTypes.EVERYTHING_TYPE;
|
|
45472
45502
|
this._root = resolve(root);
|
|
45473
45503
|
this._isDirent = !opts.alwaysStat;
|
|
45474
45504
|
this._statsProp = this._isDirent ? 'dirent' : 'stats';
|
|
@@ -45491,10 +45521,8 @@ class ReaddirpStream extends Readable {
|
|
|
45491
45521
|
const slice = fil.splice(0, batch).map((dirent) => this._formatEntry(dirent, path));
|
|
45492
45522
|
const awaited = await Promise.all(slice);
|
|
45493
45523
|
for (const entry of awaited) {
|
|
45494
|
-
if (!entry)
|
|
45495
|
-
|
|
45496
|
-
return;
|
|
45497
|
-
}
|
|
45524
|
+
if (!entry)
|
|
45525
|
+
continue;
|
|
45498
45526
|
if (this.destroyed)
|
|
45499
45527
|
return;
|
|
45500
45528
|
const entryType = await this._getEntryType(entry);
|
|
@@ -45538,7 +45566,7 @@ class ReaddirpStream extends Readable {
|
|
|
45538
45566
|
async _exploreDir(path, depth) {
|
|
45539
45567
|
let files;
|
|
45540
45568
|
try {
|
|
45541
|
-
files = await readdir
|
|
45569
|
+
files = await readdir(path, this._rdOptions);
|
|
45542
45570
|
}
|
|
45543
45571
|
catch (error) {
|
|
45544
45572
|
this._onError(error);
|
|
@@ -45581,8 +45609,8 @@ class ReaddirpStream extends Readable {
|
|
|
45581
45609
|
if (stats && stats.isSymbolicLink()) {
|
|
45582
45610
|
const full = entry.fullPath;
|
|
45583
45611
|
try {
|
|
45584
|
-
const entryRealPath = await realpath
|
|
45585
|
-
const entryRealPathStats = await lstat
|
|
45612
|
+
const entryRealPath = await realpath(full);
|
|
45613
|
+
const entryRealPathStats = await lstat(entryRealPath);
|
|
45586
45614
|
if (entryRealPathStats.isFile()) {
|
|
45587
45615
|
return 'file';
|
|
45588
45616
|
}
|
|
@@ -45609,15 +45637,16 @@ class ReaddirpStream extends Readable {
|
|
|
45609
45637
|
}
|
|
45610
45638
|
}
|
|
45611
45639
|
/**
|
|
45612
|
-
*
|
|
45640
|
+
* Streaming version: Reads all files and directories in given root recursively.
|
|
45641
|
+
* Consumes ~constant small amount of RAM.
|
|
45613
45642
|
* @param root Root directory
|
|
45614
45643
|
* @param options Options to specify root (start directory), filters and recursion depth
|
|
45615
45644
|
*/
|
|
45616
|
-
|
|
45645
|
+
function readdirp(root, options = {}) {
|
|
45617
45646
|
// @ts-ignore
|
|
45618
45647
|
let type = options.entryType || options.type;
|
|
45619
45648
|
if (type === 'both')
|
|
45620
|
-
type = FILE_DIR_TYPE; // backwards-compatibility
|
|
45649
|
+
type = EntryTypes.FILE_DIR_TYPE; // backwards-compatibility
|
|
45621
45650
|
if (type)
|
|
45622
45651
|
options.type = type;
|
|
45623
45652
|
if (!root) {
|
|
@@ -45631,7 +45660,7 @@ const readdirp = (root, options = {}) => {
|
|
|
45631
45660
|
}
|
|
45632
45661
|
options.root = root;
|
|
45633
45662
|
return new ReaddirpStream(options);
|
|
45634
|
-
}
|
|
45663
|
+
}
|
|
45635
45664
|
|
|
45636
45665
|
const STR_DATA = 'data';
|
|
45637
45666
|
const STR_END = 'end';
|
|
@@ -45656,7 +45685,7 @@ const EVENTS = {
|
|
|
45656
45685
|
};
|
|
45657
45686
|
const EV = EVENTS;
|
|
45658
45687
|
const THROTTLE_MODE_WATCH = 'watch';
|
|
45659
|
-
const statMethods = { lstat
|
|
45688
|
+
const statMethods = { lstat, stat: stat$1 };
|
|
45660
45689
|
const KEY_LISTENERS = 'listeners';
|
|
45661
45690
|
const KEY_ERR = 'errHandlers';
|
|
45662
45691
|
const KEY_RAW = 'rawEmitters';
|
|
@@ -45696,7 +45725,7 @@ const binaryExtensions = new Set([
|
|
|
45696
45725
|
'xmind', 'xpi', 'xpm', 'xwd', 'xz',
|
|
45697
45726
|
'z', 'zip', 'zipx',
|
|
45698
45727
|
]);
|
|
45699
|
-
const isBinaryPath = (filePath) => binaryExtensions.has(
|
|
45728
|
+
const isBinaryPath = (filePath) => binaryExtensions.has(sp.extname(filePath).slice(1).toLowerCase());
|
|
45700
45729
|
// TODO: emit errors properly. Example: EMFILE on Macos.
|
|
45701
45730
|
const foreach = (val, fn) => {
|
|
45702
45731
|
if (val instanceof Set) {
|
|
@@ -45749,7 +45778,7 @@ function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
|
|
|
45749
45778
|
// emit based on events occurring for files from a directory's watcher in
|
|
45750
45779
|
// case the file's watcher misses it (and rely on throttling to de-dupe)
|
|
45751
45780
|
if (evPath && path !== evPath) {
|
|
45752
|
-
fsWatchBroadcast(
|
|
45781
|
+
fsWatchBroadcast(sp.resolve(path, evPath), KEY_LISTENERS, sp.join(path, evPath));
|
|
45753
45782
|
}
|
|
45754
45783
|
};
|
|
45755
45784
|
try {
|
|
@@ -45920,6 +45949,8 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
|
|
|
45920
45949
|
* @mixin
|
|
45921
45950
|
*/
|
|
45922
45951
|
class NodeFsHandler {
|
|
45952
|
+
fsw;
|
|
45953
|
+
_boundHandleError;
|
|
45923
45954
|
constructor(fsW) {
|
|
45924
45955
|
this.fsw = fsW;
|
|
45925
45956
|
this._boundHandleError = (error) => fsW._handleError(error);
|
|
@@ -45932,11 +45963,11 @@ class NodeFsHandler {
|
|
|
45932
45963
|
*/
|
|
45933
45964
|
_watchWithNodeFs(path, listener) {
|
|
45934
45965
|
const opts = this.fsw.options;
|
|
45935
|
-
const directory =
|
|
45936
|
-
const basename =
|
|
45966
|
+
const directory = sp.dirname(path);
|
|
45967
|
+
const basename = sp.basename(path);
|
|
45937
45968
|
const parent = this.fsw._getWatchedDir(directory);
|
|
45938
45969
|
parent.add(basename);
|
|
45939
|
-
const absolutePath =
|
|
45970
|
+
const absolutePath = sp.resolve(path);
|
|
45940
45971
|
const options = {
|
|
45941
45972
|
persistent: opts.persistent,
|
|
45942
45973
|
};
|
|
@@ -45968,8 +45999,8 @@ class NodeFsHandler {
|
|
|
45968
45999
|
if (this.fsw.closed) {
|
|
45969
46000
|
return;
|
|
45970
46001
|
}
|
|
45971
|
-
const dirname =
|
|
45972
|
-
const basename =
|
|
46002
|
+
const dirname = sp.dirname(file);
|
|
46003
|
+
const basename = sp.basename(file);
|
|
45973
46004
|
const parent = this.fsw._getWatchedDir(dirname);
|
|
45974
46005
|
// stats is always present
|
|
45975
46006
|
let prevStats = stats;
|
|
@@ -46046,7 +46077,7 @@ class NodeFsHandler {
|
|
|
46046
46077
|
this.fsw._incrReadyCount();
|
|
46047
46078
|
let linkPath;
|
|
46048
46079
|
try {
|
|
46049
|
-
linkPath = await realpath
|
|
46080
|
+
linkPath = await realpath(path);
|
|
46050
46081
|
}
|
|
46051
46082
|
catch (e) {
|
|
46052
46083
|
this.fsw._emitReady();
|
|
@@ -46076,8 +46107,9 @@ class NodeFsHandler {
|
|
|
46076
46107
|
}
|
|
46077
46108
|
_handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {
|
|
46078
46109
|
// Normalize the directory name on Windows
|
|
46079
|
-
directory =
|
|
46080
|
-
|
|
46110
|
+
directory = sp.join(directory, '');
|
|
46111
|
+
const throttleKey = target ? `${directory}:${target}` : directory;
|
|
46112
|
+
throttler = this.fsw._throttle('readdir', throttleKey, 1000);
|
|
46081
46113
|
if (!throttler)
|
|
46082
46114
|
return;
|
|
46083
46115
|
const previous = this.fsw._getWatchedDir(wh.path);
|
|
@@ -46095,7 +46127,7 @@ class NodeFsHandler {
|
|
|
46095
46127
|
return;
|
|
46096
46128
|
}
|
|
46097
46129
|
const item = entry.path;
|
|
46098
|
-
let path =
|
|
46130
|
+
let path = sp.join(directory, item);
|
|
46099
46131
|
current.add(item);
|
|
46100
46132
|
if (entry.stats.isSymbolicLink() &&
|
|
46101
46133
|
(await this._handleSymlink(entry, directory, path, item))) {
|
|
@@ -46111,7 +46143,7 @@ class NodeFsHandler {
|
|
|
46111
46143
|
if (item === target || (!target && !previous.has(item))) {
|
|
46112
46144
|
this.fsw._incrReadyCount();
|
|
46113
46145
|
// ensure relativeness of path is preserved in case of watcher reuse
|
|
46114
|
-
path =
|
|
46146
|
+
path = sp.join(dir, sp.relative(dir, path));
|
|
46115
46147
|
this._addToNodeFs(path, initialAdd, wh, depth + 1);
|
|
46116
46148
|
}
|
|
46117
46149
|
})
|
|
@@ -46156,13 +46188,13 @@ class NodeFsHandler {
|
|
|
46156
46188
|
* @returns closer for the watcher instance.
|
|
46157
46189
|
*/
|
|
46158
46190
|
async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath) {
|
|
46159
|
-
const parentDir = this.fsw._getWatchedDir(
|
|
46160
|
-
const tracked = parentDir.has(
|
|
46191
|
+
const parentDir = this.fsw._getWatchedDir(sp.dirname(dir));
|
|
46192
|
+
const tracked = parentDir.has(sp.basename(dir));
|
|
46161
46193
|
if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) {
|
|
46162
46194
|
this.fsw._emit(EV.ADD_DIR, dir, stats);
|
|
46163
46195
|
}
|
|
46164
46196
|
// ensure dir is tracked (harmless if redundant)
|
|
46165
|
-
parentDir.add(
|
|
46197
|
+
parentDir.add(sp.basename(dir));
|
|
46166
46198
|
this.fsw._getWatchedDir(dir);
|
|
46167
46199
|
let throttler;
|
|
46168
46200
|
let closer;
|
|
@@ -46214,8 +46246,8 @@ class NodeFsHandler {
|
|
|
46214
46246
|
const follow = this.fsw.options.followSymlinks;
|
|
46215
46247
|
let closer;
|
|
46216
46248
|
if (stats.isDirectory()) {
|
|
46217
|
-
const absPath =
|
|
46218
|
-
const targetPath = follow ? await realpath
|
|
46249
|
+
const absPath = sp.resolve(path);
|
|
46250
|
+
const targetPath = follow ? await realpath(path) : path;
|
|
46219
46251
|
if (this.fsw.closed)
|
|
46220
46252
|
return;
|
|
46221
46253
|
closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
|
|
@@ -46227,10 +46259,10 @@ class NodeFsHandler {
|
|
|
46227
46259
|
}
|
|
46228
46260
|
}
|
|
46229
46261
|
else if (stats.isSymbolicLink()) {
|
|
46230
|
-
const targetPath = follow ? await realpath
|
|
46262
|
+
const targetPath = follow ? await realpath(path) : path;
|
|
46231
46263
|
if (this.fsw.closed)
|
|
46232
46264
|
return;
|
|
46233
|
-
const parent =
|
|
46265
|
+
const parent = sp.dirname(wh.watchPath);
|
|
46234
46266
|
this.fsw._getWatchedDir(parent).add(wh.watchPath);
|
|
46235
46267
|
this.fsw._emit(EV.ADD, wh.watchPath, stats);
|
|
46236
46268
|
closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath);
|
|
@@ -46238,7 +46270,7 @@ class NodeFsHandler {
|
|
|
46238
46270
|
return;
|
|
46239
46271
|
// preserve this symlink's target path
|
|
46240
46272
|
if (targetPath !== undefined) {
|
|
46241
|
-
this.fsw._symlinkPaths.set(
|
|
46273
|
+
this.fsw._symlinkPaths.set(sp.resolve(path), targetPath);
|
|
46242
46274
|
}
|
|
46243
46275
|
}
|
|
46244
46276
|
else {
|
|
@@ -46265,7 +46297,7 @@ const ONE_DOT = '.';
|
|
|
46265
46297
|
const TWO_DOTS = '..';
|
|
46266
46298
|
const STRING_TYPE = 'string';
|
|
46267
46299
|
const BACK_SLASH_RE = /\\/g;
|
|
46268
|
-
const DOUBLE_SLASH_RE =
|
|
46300
|
+
const DOUBLE_SLASH_RE = /\/\//g;
|
|
46269
46301
|
const DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
|
|
46270
46302
|
const REPLACER_RE = /^\.[/\\]/;
|
|
46271
46303
|
function arrify(item) {
|
|
@@ -46284,11 +46316,11 @@ function createPattern(matcher) {
|
|
|
46284
46316
|
if (matcher.path === string)
|
|
46285
46317
|
return true;
|
|
46286
46318
|
if (matcher.recursive) {
|
|
46287
|
-
const relative =
|
|
46319
|
+
const relative = sp.relative(matcher.path, string);
|
|
46288
46320
|
if (!relative) {
|
|
46289
46321
|
return false;
|
|
46290
46322
|
}
|
|
46291
|
-
return !relative.startsWith('..') && !
|
|
46323
|
+
return !relative.startsWith('..') && !sp.isAbsolute(relative);
|
|
46292
46324
|
}
|
|
46293
46325
|
return false;
|
|
46294
46326
|
};
|
|
@@ -46298,14 +46330,12 @@ function createPattern(matcher) {
|
|
|
46298
46330
|
function normalizePath(path) {
|
|
46299
46331
|
if (typeof path !== 'string')
|
|
46300
46332
|
throw new Error('string expected');
|
|
46301
|
-
path =
|
|
46333
|
+
path = sp.normalize(path);
|
|
46302
46334
|
path = path.replace(/\\/g, '/');
|
|
46303
46335
|
let prepend = false;
|
|
46304
46336
|
if (path.startsWith('//'))
|
|
46305
46337
|
prepend = true;
|
|
46306
|
-
|
|
46307
|
-
while (path.match(DOUBLE_SLASH_RE))
|
|
46308
|
-
path = path.replace(DOUBLE_SLASH_RE, '/');
|
|
46338
|
+
path = path.replace(DOUBLE_SLASH_RE, '/');
|
|
46309
46339
|
if (prepend)
|
|
46310
46340
|
path = '/' + path;
|
|
46311
46341
|
return path;
|
|
@@ -46348,9 +46378,7 @@ const toUnix = (string) => {
|
|
|
46348
46378
|
if (str.startsWith(SLASH_SLASH)) {
|
|
46349
46379
|
prepend = true;
|
|
46350
46380
|
}
|
|
46351
|
-
|
|
46352
|
-
str = str.replace(DOUBLE_SLASH_RE, SLASH);
|
|
46353
|
-
}
|
|
46381
|
+
str = str.replace(DOUBLE_SLASH_RE, SLASH);
|
|
46354
46382
|
if (prepend) {
|
|
46355
46383
|
str = SLASH + str;
|
|
46356
46384
|
}
|
|
@@ -46358,27 +46386,30 @@ const toUnix = (string) => {
|
|
|
46358
46386
|
};
|
|
46359
46387
|
// Our version of upath.normalize
|
|
46360
46388
|
// TODO: this is not equal to path-normalize module - investigate why
|
|
46361
|
-
const normalizePathToUnix = (path) => toUnix(
|
|
46389
|
+
const normalizePathToUnix = (path) => toUnix(sp.normalize(toUnix(path)));
|
|
46362
46390
|
// TODO: refactor
|
|
46363
46391
|
const normalizeIgnored = (cwd = '') => (path) => {
|
|
46364
46392
|
if (typeof path === 'string') {
|
|
46365
|
-
return normalizePathToUnix(
|
|
46393
|
+
return normalizePathToUnix(sp.isAbsolute(path) ? path : sp.join(cwd, path));
|
|
46366
46394
|
}
|
|
46367
46395
|
else {
|
|
46368
46396
|
return path;
|
|
46369
46397
|
}
|
|
46370
46398
|
};
|
|
46371
46399
|
const getAbsolutePath = (path, cwd) => {
|
|
46372
|
-
if (
|
|
46400
|
+
if (sp.isAbsolute(path)) {
|
|
46373
46401
|
return path;
|
|
46374
46402
|
}
|
|
46375
|
-
return
|
|
46403
|
+
return sp.join(cwd, path);
|
|
46376
46404
|
};
|
|
46377
46405
|
const EMPTY_SET = Object.freeze(new Set());
|
|
46378
46406
|
/**
|
|
46379
46407
|
* Directory entry.
|
|
46380
46408
|
*/
|
|
46381
46409
|
class DirEntry {
|
|
46410
|
+
path;
|
|
46411
|
+
_removeWatcher;
|
|
46412
|
+
items;
|
|
46382
46413
|
constructor(dir, removeWatcher) {
|
|
46383
46414
|
this.path = dir;
|
|
46384
46415
|
this._removeWatcher = removeWatcher;
|
|
@@ -46400,11 +46431,11 @@ class DirEntry {
|
|
|
46400
46431
|
return;
|
|
46401
46432
|
const dir = this.path;
|
|
46402
46433
|
try {
|
|
46403
|
-
await readdir
|
|
46434
|
+
await readdir(dir);
|
|
46404
46435
|
}
|
|
46405
46436
|
catch (err) {
|
|
46406
46437
|
if (this._removeWatcher) {
|
|
46407
|
-
this._removeWatcher(
|
|
46438
|
+
this._removeWatcher(sp.dirname(dir), sp.basename(dir));
|
|
46408
46439
|
}
|
|
46409
46440
|
}
|
|
46410
46441
|
}
|
|
@@ -46431,12 +46462,19 @@ class DirEntry {
|
|
|
46431
46462
|
const STAT_METHOD_F = 'stat';
|
|
46432
46463
|
const STAT_METHOD_L = 'lstat';
|
|
46433
46464
|
class WatchHelper {
|
|
46465
|
+
fsw;
|
|
46466
|
+
path;
|
|
46467
|
+
watchPath;
|
|
46468
|
+
fullWatchPath;
|
|
46469
|
+
dirParts;
|
|
46470
|
+
followSymlinks;
|
|
46471
|
+
statMethod;
|
|
46434
46472
|
constructor(path, follow, fsw) {
|
|
46435
46473
|
this.fsw = fsw;
|
|
46436
46474
|
const watchPath = path;
|
|
46437
46475
|
this.path = path = path.replace(REPLACER_RE, '');
|
|
46438
46476
|
this.watchPath = watchPath;
|
|
46439
|
-
this.fullWatchPath =
|
|
46477
|
+
this.fullWatchPath = sp.resolve(watchPath);
|
|
46440
46478
|
this.dirParts = [];
|
|
46441
46479
|
this.dirParts.forEach((parts) => {
|
|
46442
46480
|
if (parts.length > 1)
|
|
@@ -46446,7 +46484,7 @@ class WatchHelper {
|
|
|
46446
46484
|
this.statMethod = follow ? STAT_METHOD_F : STAT_METHOD_L;
|
|
46447
46485
|
}
|
|
46448
46486
|
entryPath(entry) {
|
|
46449
|
-
return
|
|
46487
|
+
return sp.join(this.watchPath, sp.relative(this.watchPath, entry.fullPath));
|
|
46450
46488
|
}
|
|
46451
46489
|
filterPath(entry) {
|
|
46452
46490
|
const { stats } = entry;
|
|
@@ -46468,7 +46506,25 @@ class WatchHelper {
|
|
|
46468
46506
|
* .add(directories)
|
|
46469
46507
|
* .on('add', path => log('File', path, 'was added'))
|
|
46470
46508
|
*/
|
|
46471
|
-
class FSWatcher extends EventEmitter$
|
|
46509
|
+
class FSWatcher extends EventEmitter$1 {
|
|
46510
|
+
closed;
|
|
46511
|
+
options;
|
|
46512
|
+
_closers;
|
|
46513
|
+
_ignoredPaths;
|
|
46514
|
+
_throttled;
|
|
46515
|
+
_streams;
|
|
46516
|
+
_symlinkPaths;
|
|
46517
|
+
_watched;
|
|
46518
|
+
_pendingWrites;
|
|
46519
|
+
_pendingUnlinks;
|
|
46520
|
+
_readyCount;
|
|
46521
|
+
_emitReady;
|
|
46522
|
+
_closePromise;
|
|
46523
|
+
_userIgnored;
|
|
46524
|
+
_readyEmitted;
|
|
46525
|
+
_emitRaw;
|
|
46526
|
+
_boundRemove;
|
|
46527
|
+
_nodeFsHandler;
|
|
46472
46528
|
// Not indenting methods for history sake; for now.
|
|
46473
46529
|
constructor(_opts = {}) {
|
|
46474
46530
|
super();
|
|
@@ -46602,7 +46658,7 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46602
46658
|
return;
|
|
46603
46659
|
results.forEach((item) => {
|
|
46604
46660
|
if (item)
|
|
46605
|
-
this.add(
|
|
46661
|
+
this.add(sp.dirname(item), sp.basename(_origAdd || item));
|
|
46606
46662
|
});
|
|
46607
46663
|
});
|
|
46608
46664
|
return this;
|
|
@@ -46617,10 +46673,10 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46617
46673
|
const { cwd } = this.options;
|
|
46618
46674
|
paths.forEach((path) => {
|
|
46619
46675
|
// convert to absolute path unless relative path already matches
|
|
46620
|
-
if (!
|
|
46676
|
+
if (!sp.isAbsolute(path) && !this._closers.has(path)) {
|
|
46621
46677
|
if (cwd)
|
|
46622
|
-
path =
|
|
46623
|
-
path =
|
|
46678
|
+
path = sp.join(cwd, path);
|
|
46679
|
+
path = sp.resolve(path);
|
|
46624
46680
|
}
|
|
46625
46681
|
this._closePath(path);
|
|
46626
46682
|
this._addIgnoredPath(path);
|
|
@@ -46674,7 +46730,7 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46674
46730
|
getWatched() {
|
|
46675
46731
|
const watchList = {};
|
|
46676
46732
|
this._watched.forEach((entry, dir) => {
|
|
46677
|
-
const key = this.options.cwd ?
|
|
46733
|
+
const key = this.options.cwd ? sp.relative(this.options.cwd, dir) : dir;
|
|
46678
46734
|
const index = key || ONE_DOT;
|
|
46679
46735
|
watchList[index] = entry.getChildren().sort();
|
|
46680
46736
|
});
|
|
@@ -46700,9 +46756,9 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46700
46756
|
return;
|
|
46701
46757
|
const opts = this.options;
|
|
46702
46758
|
if (isWindows)
|
|
46703
|
-
path =
|
|
46759
|
+
path = sp.normalize(path);
|
|
46704
46760
|
if (opts.cwd)
|
|
46705
|
-
path =
|
|
46761
|
+
path = sp.relative(opts.cwd, path);
|
|
46706
46762
|
const args = [path];
|
|
46707
46763
|
if (stats != null)
|
|
46708
46764
|
args.push(stats);
|
|
@@ -46758,7 +46814,7 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46758
46814
|
if (opts.alwaysStat &&
|
|
46759
46815
|
stats === undefined &&
|
|
46760
46816
|
(event === EVENTS.ADD || event === EVENTS.ADD_DIR || event === EVENTS.CHANGE)) {
|
|
46761
|
-
const fullPath = opts.cwd ?
|
|
46817
|
+
const fullPath = opts.cwd ? sp.join(opts.cwd, path) : path;
|
|
46762
46818
|
let stats;
|
|
46763
46819
|
try {
|
|
46764
46820
|
stats = await stat$1(fullPath);
|
|
@@ -46841,8 +46897,8 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46841
46897
|
const pollInterval = awf.pollInterval;
|
|
46842
46898
|
let timeoutHandler;
|
|
46843
46899
|
let fullPath = path;
|
|
46844
|
-
if (this.options.cwd && !
|
|
46845
|
-
fullPath =
|
|
46900
|
+
if (this.options.cwd && !sp.isAbsolute(path)) {
|
|
46901
|
+
fullPath = sp.join(this.options.cwd, path);
|
|
46846
46902
|
}
|
|
46847
46903
|
const now = new Date();
|
|
46848
46904
|
const writes = this._pendingWrites;
|
|
@@ -46913,7 +46969,7 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46913
46969
|
* @param directory path of the directory
|
|
46914
46970
|
*/
|
|
46915
46971
|
_getWatchedDir(directory) {
|
|
46916
|
-
const dir =
|
|
46972
|
+
const dir = sp.resolve(directory);
|
|
46917
46973
|
if (!this._watched.has(dir))
|
|
46918
46974
|
this._watched.set(dir, new DirEntry(dir, this._boundRemove));
|
|
46919
46975
|
return this._watched.get(dir);
|
|
@@ -46939,8 +46995,8 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46939
46995
|
// if what is being deleted is a directory, get that directory's paths
|
|
46940
46996
|
// for recursive deleting and cleaning of watched object
|
|
46941
46997
|
// if it is not a directory, nestedDirectoryChildren will be empty array
|
|
46942
|
-
const path =
|
|
46943
|
-
const fullPath =
|
|
46998
|
+
const path = sp.join(directory, item);
|
|
46999
|
+
const fullPath = sp.resolve(path);
|
|
46944
47000
|
isDirectory =
|
|
46945
47001
|
isDirectory != null ? isDirectory : this._watched.has(path) || this._watched.has(fullPath);
|
|
46946
47002
|
// prevent duplicate handling in case of arriving here nearly simultaneously
|
|
@@ -46972,7 +47028,7 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46972
47028
|
// If we wait for this file to be fully written, cancel the wait.
|
|
46973
47029
|
let relPath = path;
|
|
46974
47030
|
if (this.options.cwd)
|
|
46975
|
-
relPath =
|
|
47031
|
+
relPath = sp.relative(this.options.cwd, path);
|
|
46976
47032
|
if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
|
|
46977
47033
|
const event = this._pendingWrites.get(relPath).cancelWait();
|
|
46978
47034
|
if (event === EVENTS.ADD)
|
|
@@ -46993,8 +47049,8 @@ class FSWatcher extends EventEmitter$2 {
|
|
|
46993
47049
|
*/
|
|
46994
47050
|
_closePath(path) {
|
|
46995
47051
|
this._closeFile(path);
|
|
46996
|
-
const dir =
|
|
46997
|
-
this._getWatchedDir(dir).remove(
|
|
47052
|
+
const dir = sp.dirname(path);
|
|
47053
|
+
this._getWatchedDir(dir).remove(sp.basename(path));
|
|
46998
47054
|
}
|
|
46999
47055
|
/**
|
|
47000
47056
|
* Closes only file-specific watchers
|
|
@@ -48905,7 +48961,7 @@ function requireHybi () {
|
|
|
48905
48961
|
hasRequiredHybi = 1;
|
|
48906
48962
|
|
|
48907
48963
|
var Buffer = requireSafeBuffer().Buffer,
|
|
48908
|
-
crypto = require$$1$
|
|
48964
|
+
crypto = require$$1$2,
|
|
48909
48965
|
util = require$$1,
|
|
48910
48966
|
Extensions = requireWebsocket_extensions(),
|
|
48911
48967
|
Base = requireBase(),
|
|
@@ -49503,7 +49559,7 @@ function requireClient$2 () {
|
|
|
49503
49559
|
hasRequiredClient$2 = 1;
|
|
49504
49560
|
|
|
49505
49561
|
var Buffer = requireSafeBuffer().Buffer,
|
|
49506
|
-
crypto = require$$1$
|
|
49562
|
+
crypto = require$$1$2,
|
|
49507
49563
|
url = require$$2,
|
|
49508
49564
|
util = require$$1,
|
|
49509
49565
|
HttpParser = requireHttp_parser(),
|
|
@@ -49786,7 +49842,7 @@ function requireDraft76 () {
|
|
|
49786
49842
|
var Buffer = requireSafeBuffer().Buffer,
|
|
49787
49843
|
Base = requireBase(),
|
|
49788
49844
|
Draft75 = requireDraft75(),
|
|
49789
|
-
crypto = require$$1$
|
|
49845
|
+
crypto = require$$1$2,
|
|
49790
49846
|
util = require$$1;
|
|
49791
49847
|
|
|
49792
49848
|
|
|
@@ -50355,7 +50411,7 @@ function requireClient$1 () {
|
|
|
50355
50411
|
hasRequiredClient$1 = 1;
|
|
50356
50412
|
|
|
50357
50413
|
var util = require$$1,
|
|
50358
|
-
net = require$$1$
|
|
50414
|
+
net = require$$1$3,
|
|
50359
50415
|
tls = require$$2$1,
|
|
50360
50416
|
url = require$$2,
|
|
50361
50417
|
driver = requireDriver(),
|
|
@@ -51377,7 +51433,7 @@ function requireSupportsColor () {
|
|
|
51377
51433
|
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
51378
51434
|
hasRequiredSupportsColor = 1;
|
|
51379
51435
|
const os = require$$0$6;
|
|
51380
|
-
const tty = require$$1$
|
|
51436
|
+
const tty = require$$1$4;
|
|
51381
51437
|
const hasFlag = requireHasFlag();
|
|
51382
51438
|
|
|
51383
51439
|
const {env} = process;
|
|
@@ -51523,7 +51579,7 @@ function requireNode () {
|
|
|
51523
51579
|
/**
|
|
51524
51580
|
* Module dependencies.
|
|
51525
51581
|
*/
|
|
51526
|
-
var tty = require$$1$
|
|
51582
|
+
var tty = require$$1$4;
|
|
51527
51583
|
|
|
51528
51584
|
var util = require$$1;
|
|
51529
51585
|
/**
|
|
@@ -55815,7 +55871,7 @@ function requireServer () {
|
|
|
55815
55871
|
|
|
55816
55872
|
var _fs2 = _interopRequireDefault(_fs);
|
|
55817
55873
|
|
|
55818
|
-
var _http = require$$1$
|
|
55874
|
+
var _http = require$$1$5;
|
|
55819
55875
|
|
|
55820
55876
|
var _http2 = _interopRequireDefault(_http);
|
|
55821
55877
|
|
|
@@ -56277,4 +56333,4 @@ var srcExports = requireSrc();
|
|
|
56277
56333
|
var tinylr = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
|
56278
56334
|
|
|
56279
56335
|
export { HighlightJS as H, MarkdownIt as M, deflist_plugin as a, closest as b, createTwoFilesPatch as c, dedent as d, distance as e, fm as f, globSync as g, glob as h, isCI as i, moduleImporter as j, cliProgress as k, createInstance as l, minimatch as m, fse as n, inter as o, tinylr as t, watch$1 as w };
|
|
56280
|
-
//# sourceMappingURL=vendor-
|
|
56336
|
+
//# sourceMappingURL=vendor-CMa7Qsb1.mjs.map
|