@storm-software/git-tools 2.104.46 → 2.104.47
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/README.md +1 -1
- package/bin/{chunk-DVEFA4T3.js → chunk-377YOE7Z.js} +2 -2
- package/bin/{chunk-O6CNNZEF.js → chunk-5DWG2HXA.js} +1 -1
- package/bin/{chunk-QH2YKC7K.cjs → chunk-7B6YVRI6.cjs} +4 -4
- package/bin/{chunk-PEQKS3P6.cjs → chunk-C56ONEWE.cjs} +2227 -2227
- package/bin/{chunk-QM7PF55H.js → chunk-DBXOSHV7.js} +2 -2
- package/bin/{chunk-ULT2OA4X.js → chunk-DNTOHRW4.js} +2 -2
- package/bin/{chunk-3M5VVOEZ.js → chunk-EJRTGQIY.js} +2 -2
- package/bin/{chunk-QNPO2V3D.cjs → chunk-FDIL5LQQ.cjs} +5 -5
- package/bin/{chunk-6NRXZ6QR.js → chunk-IFBRUMYX.js} +1 -1
- package/bin/{chunk-PSFME3R5.cjs → chunk-JUU5ILZB.cjs} +2 -2
- package/bin/{chunk-WKI5Y5T6.cjs → chunk-KD5ZCYX3.cjs} +388 -388
- package/bin/{chunk-4QPWQKY3.cjs → chunk-LHINQG4H.cjs} +32 -32
- package/bin/{chunk-IRMYUCHS.js → chunk-MM5AJ3HN.js} +2 -2
- package/bin/{chunk-6GVZLBQN.js → chunk-OBE5IRH4.js} +1 -1
- package/bin/{chunk-G3URB66P.js → chunk-PRG2N75Y.js} +1 -1
- package/bin/{chunk-HFUQXREM.cjs → chunk-PW5R2BRU.cjs} +3 -3
- package/bin/{chunk-NPRSXWA2.js → chunk-QVRLY7GO.js} +9 -9
- package/bin/{chunk-R7DMKRZJ.js → chunk-QYSGMK4D.js} +2 -2
- package/bin/{chunk-COHNBYUO.js → chunk-RJTSICHA.js} +2 -2
- package/bin/{chunk-PWYCQTR6.cjs → chunk-RWG7K3L2.cjs} +44 -44
- package/bin/{chunk-4YIK3VPZ.cjs → chunk-V2L6QG6X.cjs} +153 -153
- package/bin/{chunk-TELC6KPD.cjs → chunk-YCGKNXJZ.cjs} +11 -11
- package/bin/{chunk-GHBDMGTX.cjs → chunk-YKGA2MVU.cjs} +40 -40
- package/bin/{chunk-ADTYFYQS.cjs → chunk-YS7O5BRI.cjs} +138 -138
- package/bin/{dist-ZOQMIT2F.cjs → dist-5TR4KAWC.cjs} +8 -8
- package/bin/{dist-HW2G5BOV.js → dist-AXJG5W3U.js} +2 -2
- package/bin/{dist-VPU5OFWR.js → dist-KY7IAJSV.js} +8 -8
- package/bin/{dist-6ZEGWWVT.cjs → dist-YVMKTFW6.cjs} +1038 -1038
- package/bin/{esm-GQFWT3ED.js → esm-IZHFRARS.js} +1 -1
- package/bin/{esm-ARXRUJHA.cjs → esm-MGSMO3WY.cjs} +46 -46
- package/bin/git.cjs +4543 -4543
- package/bin/git.js +9 -9
- package/bin/json5-DQ2B7V4X.js +10 -0
- package/bin/json5-OV4LY5NN.cjs +10 -0
- package/bin/{jsonc-5XS7J23X.js → jsonc-6643P3LC.js} +3 -3
- package/bin/jsonc-SKJF3GPV.cjs +15 -0
- package/bin/{multipart-parser-I45X3EY3.js → multipart-parser-HAF2WA3O.js} +2 -2
- package/bin/{multipart-parser-CXO4FRZU.cjs → multipart-parser-Z3URKOGZ.cjs} +11 -11
- package/bin/post-checkout.cjs +22 -22
- package/bin/post-checkout.js +10 -10
- package/bin/post-commit.cjs +22 -22
- package/bin/post-commit.js +10 -10
- package/bin/post-merge.cjs +22 -22
- package/bin/post-merge.js +10 -10
- package/bin/pre-commit.cjs +20 -20
- package/bin/pre-commit.js +9 -9
- package/bin/pre-install.cjs +19 -19
- package/bin/pre-install.js +9 -9
- package/bin/pre-push.cjs +27 -27
- package/bin/pre-push.js +10 -10
- package/bin/prepare.cjs +17 -17
- package/bin/prepare.js +9 -9
- package/bin/toml-IP5GTCQW.cjs +10 -0
- package/bin/toml-KSQJ7SIB.js +10 -0
- package/bin/{utils-6GPBIZRI.cjs → utils-PZ3SHU7I.cjs} +10 -10
- package/bin/{utils-77IDU6XM.js → utils-WL6G35GX.js} +2 -2
- package/bin/version-warning.cjs +15 -15
- package/bin/version-warning.js +9 -9
- package/bin/yaml-3NH46CEJ.cjs +10 -0
- package/bin/yaml-F3NXDIX4.js +10 -0
- package/package.json +1 -1
- package/bin/json5-VE2C3QLL.js +0 -10
- package/bin/json5-W22CYLPA.cjs +0 -10
- package/bin/jsonc-QQ2GWIUH.cjs +0 -15
- package/bin/toml-327DP3E3.js +0 -10
- package/bin/toml-YGIRPOJX.cjs +0 -10
- package/bin/yaml-45GLSIVG.js +0 -10
- package/bin/yaml-4EWLBYLX.cjs +0 -10
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJUU5ILZBcjs = require('./chunk-JUU5ILZB.cjs');
|
|
5
5
|
|
|
6
6
|
// ../../node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/index.js
|
|
7
|
-
|
|
7
|
+
_chunkJUU5ILZBcjs.init_cjs_shims.call(void 0, );
|
|
8
8
|
var _fs = require('fs');
|
|
9
9
|
var _promises = require('fs/promises');
|
|
10
10
|
var _events = require('events');
|
|
11
11
|
var _path = require('path'); var sysPath2 = _interopRequireWildcard(_path); var sysPath = _interopRequireWildcard(_path);
|
|
12
12
|
|
|
13
13
|
// ../../node_modules/.pnpm/readdirp@4.1.2/node_modules/readdirp/esm/index.js
|
|
14
|
-
|
|
14
|
+
_chunkJUU5ILZBcjs.init_cjs_shims.call(void 0, );
|
|
15
15
|
|
|
16
16
|
var _stream = require('stream');
|
|
17
17
|
|
|
@@ -23,8 +23,8 @@ var EntryTypes = {
|
|
|
23
23
|
};
|
|
24
24
|
var defaultOptions = {
|
|
25
25
|
root: ".",
|
|
26
|
-
fileFilter: /* @__PURE__ */
|
|
27
|
-
directoryFilter: /* @__PURE__ */
|
|
26
|
+
fileFilter: /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (_entryInfo) => true, "fileFilter"),
|
|
27
|
+
directoryFilter: /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (_entryInfo) => true, "directoryFilter"),
|
|
28
28
|
type: EntryTypes.FILE_TYPE,
|
|
29
29
|
lstat: false,
|
|
30
30
|
depth: 2147483648,
|
|
@@ -56,10 +56,10 @@ var FILE_TYPES = /* @__PURE__ */ new Set([
|
|
|
56
56
|
EntryTypes.FILE_DIR_TYPE,
|
|
57
57
|
EntryTypes.FILE_TYPE
|
|
58
58
|
]);
|
|
59
|
-
var isNormalFlowError = /* @__PURE__ */
|
|
59
|
+
var isNormalFlowError = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (error) => NORMAL_FLOW_ERRORS.has(error.code), "isNormalFlowError");
|
|
60
60
|
var wantBigintFsStats = process.platform === "win32";
|
|
61
|
-
var emptyFn = /* @__PURE__ */
|
|
62
|
-
var normalizeFilter = /* @__PURE__ */
|
|
61
|
+
var emptyFn = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (_entryInfo) => true, "emptyFn");
|
|
62
|
+
var normalizeFilter = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (filter) => {
|
|
63
63
|
if (filter === void 0) return emptyFn;
|
|
64
64
|
if (typeof filter === "function") return filter;
|
|
65
65
|
if (typeof filter === "string") {
|
|
@@ -74,7 +74,7 @@ var normalizeFilter = /* @__PURE__ */ _chunkPSFME3R5cjs.__name.call(void 0, (fil
|
|
|
74
74
|
}, "normalizeFilter");
|
|
75
75
|
var ReaddirpStream = class extends _stream.Readable {
|
|
76
76
|
static {
|
|
77
|
-
|
|
77
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, this, "ReaddirpStream");
|
|
78
78
|
}
|
|
79
79
|
constructor(options = {}) {
|
|
80
80
|
super({
|
|
@@ -246,10 +246,10 @@ function readdirp(root, options = {}) {
|
|
|
246
246
|
options.root = root;
|
|
247
247
|
return new ReaddirpStream(options);
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, readdirp, "readdirp");
|
|
250
250
|
|
|
251
251
|
// ../../node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/handler.js
|
|
252
|
-
|
|
252
|
+
_chunkJUU5ILZBcjs.init_cjs_shims.call(void 0, );
|
|
253
253
|
|
|
254
254
|
|
|
255
255
|
|
|
@@ -257,7 +257,7 @@ var _os = require('os');
|
|
|
257
257
|
var STR_DATA = "data";
|
|
258
258
|
var STR_END = "end";
|
|
259
259
|
var STR_CLOSE = "close";
|
|
260
|
-
var EMPTY_FN = /* @__PURE__ */
|
|
260
|
+
var EMPTY_FN = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, () => {
|
|
261
261
|
}, "EMPTY_FN");
|
|
262
262
|
var pl = process.platform;
|
|
263
263
|
var isWindows = pl === "win32";
|
|
@@ -553,15 +553,15 @@ var binaryExtensions = /* @__PURE__ */ new Set([
|
|
|
553
553
|
"zip",
|
|
554
554
|
"zipx"
|
|
555
555
|
]);
|
|
556
|
-
var isBinaryPath = /* @__PURE__ */
|
|
557
|
-
var foreach = /* @__PURE__ */
|
|
556
|
+
var isBinaryPath = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (filePath) => binaryExtensions.has(sysPath.extname(filePath).slice(1).toLowerCase()), "isBinaryPath");
|
|
557
|
+
var foreach = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (val, fn) => {
|
|
558
558
|
if (val instanceof Set) {
|
|
559
559
|
val.forEach(fn);
|
|
560
560
|
} else {
|
|
561
561
|
fn(val);
|
|
562
562
|
}
|
|
563
563
|
}, "foreach");
|
|
564
|
-
var addAndConvert = /* @__PURE__ */
|
|
564
|
+
var addAndConvert = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (main, prop, item) => {
|
|
565
565
|
let container = main[prop];
|
|
566
566
|
if (!(container instanceof Set)) {
|
|
567
567
|
main[prop] = container = /* @__PURE__ */ new Set([
|
|
@@ -570,7 +570,7 @@ var addAndConvert = /* @__PURE__ */ _chunkPSFME3R5cjs.__name.call(void 0, (main,
|
|
|
570
570
|
}
|
|
571
571
|
container.add(item);
|
|
572
572
|
}, "addAndConvert");
|
|
573
|
-
var clearItem = /* @__PURE__ */
|
|
573
|
+
var clearItem = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (cont) => (key) => {
|
|
574
574
|
const set = cont[key];
|
|
575
575
|
if (set instanceof Set) {
|
|
576
576
|
set.clear();
|
|
@@ -578,7 +578,7 @@ var clearItem = /* @__PURE__ */ _chunkPSFME3R5cjs.__name.call(void 0, (cont) =>
|
|
|
578
578
|
delete cont[key];
|
|
579
579
|
}
|
|
580
580
|
}, "clearItem");
|
|
581
|
-
var delFromSet = /* @__PURE__ */
|
|
581
|
+
var delFromSet = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (main, prop, item) => {
|
|
582
582
|
const container = main[prop];
|
|
583
583
|
if (container instanceof Set) {
|
|
584
584
|
container.delete(item);
|
|
@@ -586,10 +586,10 @@ var delFromSet = /* @__PURE__ */ _chunkPSFME3R5cjs.__name.call(void 0, (main, pr
|
|
|
586
586
|
delete main[prop];
|
|
587
587
|
}
|
|
588
588
|
}, "delFromSet");
|
|
589
|
-
var isEmptySet = /* @__PURE__ */
|
|
589
|
+
var isEmptySet = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (val) => val instanceof Set ? val.size === 0 : !val, "isEmptySet");
|
|
590
590
|
var FsWatchInstances = /* @__PURE__ */ new Map();
|
|
591
591
|
function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
|
|
592
|
-
const handleEvent = /* @__PURE__ */
|
|
592
|
+
const handleEvent = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (rawEvent, evPath) => {
|
|
593
593
|
listener(path);
|
|
594
594
|
emitRaw(rawEvent, evPath, {
|
|
595
595
|
watchedPath: path
|
|
@@ -607,15 +607,15 @@ function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
|
|
|
607
607
|
return void 0;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
|
|
611
|
-
var fsWatchBroadcast = /* @__PURE__ */
|
|
610
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, createFsWatchInstance, "createFsWatchInstance");
|
|
611
|
+
var fsWatchBroadcast = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (fullPath, listenerType, val1, val2, val3) => {
|
|
612
612
|
const cont = FsWatchInstances.get(fullPath);
|
|
613
613
|
if (!cont) return;
|
|
614
614
|
foreach(cont[listenerType], (listener) => {
|
|
615
615
|
listener(val1, val2, val3);
|
|
616
616
|
});
|
|
617
617
|
}, "fsWatchBroadcast");
|
|
618
|
-
var setFsWatchListener = /* @__PURE__ */
|
|
618
|
+
var setFsWatchListener = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (path, fullPath, options, handlers) => {
|
|
619
619
|
const { listener, errHandler, rawEmitter } = handlers;
|
|
620
620
|
let cont = FsWatchInstances.get(fullPath);
|
|
621
621
|
let watcher;
|
|
@@ -667,7 +667,7 @@ var setFsWatchListener = /* @__PURE__ */ _chunkPSFME3R5cjs.__name.call(void 0, (
|
|
|
667
667
|
};
|
|
668
668
|
}, "setFsWatchListener");
|
|
669
669
|
var FsWatchFileInstances = /* @__PURE__ */ new Map();
|
|
670
|
-
var setFsWatchFileListener = /* @__PURE__ */
|
|
670
|
+
var setFsWatchFileListener = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (path, fullPath, options, handlers) => {
|
|
671
671
|
const { listener, rawEmitter } = handlers;
|
|
672
672
|
let cont = FsWatchFileInstances.get(fullPath);
|
|
673
673
|
const copts = cont && cont.options;
|
|
@@ -711,7 +711,7 @@ var setFsWatchFileListener = /* @__PURE__ */ _chunkPSFME3R5cjs.__name.call(void
|
|
|
711
711
|
}, "setFsWatchFileListener");
|
|
712
712
|
var NodeFsHandler = class {
|
|
713
713
|
static {
|
|
714
|
-
|
|
714
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, this, "NodeFsHandler");
|
|
715
715
|
}
|
|
716
716
|
constructor(fsW) {
|
|
717
717
|
this.fsw = fsW;
|
|
@@ -764,7 +764,7 @@ var NodeFsHandler = class {
|
|
|
764
764
|
const parent = this.fsw._getWatchedDir(dirname3);
|
|
765
765
|
let prevStats = stats;
|
|
766
766
|
if (parent.has(basename3)) return;
|
|
767
|
-
const listener = /* @__PURE__ */
|
|
767
|
+
const listener = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, async (path, newStats) => {
|
|
768
768
|
if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5)) return;
|
|
769
769
|
if (!newStats || newStats.mtimeMs === 0) {
|
|
770
770
|
try {
|
|
@@ -851,8 +851,8 @@ var NodeFsHandler = class {
|
|
|
851
851
|
const previous = this.fsw._getWatchedDir(wh.path);
|
|
852
852
|
const current = /* @__PURE__ */ new Set();
|
|
853
853
|
let stream = this.fsw._readdirp(directory, {
|
|
854
|
-
fileFilter: /* @__PURE__ */
|
|
855
|
-
directoryFilter: /* @__PURE__ */
|
|
854
|
+
fileFilter: /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (entry) => wh.filterPath(entry), "fileFilter"),
|
|
855
|
+
directoryFilter: /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (entry) => wh.filterDir(entry), "directoryFilter")
|
|
856
856
|
});
|
|
857
857
|
if (!stream) return;
|
|
858
858
|
stream.on(STR_DATA, async (entry) => {
|
|
@@ -1008,8 +1008,8 @@ function arrify(item) {
|
|
|
1008
1008
|
item
|
|
1009
1009
|
];
|
|
1010
1010
|
}
|
|
1011
|
-
|
|
1012
|
-
var isMatcherObject = /* @__PURE__ */
|
|
1011
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, arrify, "arrify");
|
|
1012
|
+
var isMatcherObject = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (matcher) => typeof matcher === "object" && matcher !== null && !(matcher instanceof RegExp), "isMatcherObject");
|
|
1013
1013
|
function createPattern(matcher) {
|
|
1014
1014
|
if (typeof matcher === "function") return matcher;
|
|
1015
1015
|
if (typeof matcher === "string") return (string) => matcher === string;
|
|
@@ -1029,7 +1029,7 @@ function createPattern(matcher) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
return () => false;
|
|
1031
1031
|
}
|
|
1032
|
-
|
|
1032
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, createPattern, "createPattern");
|
|
1033
1033
|
function normalizePath(path) {
|
|
1034
1034
|
if (typeof path !== "string") throw new Error("string expected");
|
|
1035
1035
|
path = sysPath2.normalize(path);
|
|
@@ -1041,7 +1041,7 @@ function normalizePath(path) {
|
|
|
1041
1041
|
if (prepend) path = "/" + path;
|
|
1042
1042
|
return path;
|
|
1043
1043
|
}
|
|
1044
|
-
|
|
1044
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, normalizePath, "normalizePath");
|
|
1045
1045
|
function matchPatterns(patterns, testString, stats) {
|
|
1046
1046
|
const path = normalizePath(testString);
|
|
1047
1047
|
for (let index = 0; index < patterns.length; index++) {
|
|
@@ -1052,7 +1052,7 @@ function matchPatterns(patterns, testString, stats) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
return false;
|
|
1054
1054
|
}
|
|
1055
|
-
|
|
1055
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, matchPatterns, "matchPatterns");
|
|
1056
1056
|
function anymatch(matchers, testString) {
|
|
1057
1057
|
if (matchers == null) {
|
|
1058
1058
|
throw new TypeError("anymatch: specify first argument");
|
|
@@ -1066,15 +1066,15 @@ function anymatch(matchers, testString) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
return matchPatterns(patterns, testString);
|
|
1068
1068
|
}
|
|
1069
|
-
|
|
1070
|
-
var unifyPaths = /* @__PURE__ */
|
|
1069
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, anymatch, "anymatch");
|
|
1070
|
+
var unifyPaths = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (paths_) => {
|
|
1071
1071
|
const paths = arrify(paths_).flat();
|
|
1072
1072
|
if (!paths.every((p) => typeof p === STRING_TYPE)) {
|
|
1073
1073
|
throw new TypeError(`Non-string provided as watch path: ${paths}`);
|
|
1074
1074
|
}
|
|
1075
1075
|
return paths.map(normalizePathToUnix);
|
|
1076
1076
|
}, "unifyPaths");
|
|
1077
|
-
var toUnix = /* @__PURE__ */
|
|
1077
|
+
var toUnix = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (string) => {
|
|
1078
1078
|
let str = string.replace(BACK_SLASH_RE, SLASH);
|
|
1079
1079
|
let prepend = false;
|
|
1080
1080
|
if (str.startsWith(SLASH_SLASH)) {
|
|
@@ -1088,15 +1088,15 @@ var toUnix = /* @__PURE__ */ _chunkPSFME3R5cjs.__name.call(void 0, (string) => {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
return str;
|
|
1090
1090
|
}, "toUnix");
|
|
1091
|
-
var normalizePathToUnix = /* @__PURE__ */
|
|
1092
|
-
var normalizeIgnored = /* @__PURE__ */
|
|
1091
|
+
var normalizePathToUnix = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (path) => toUnix(sysPath2.normalize(toUnix(path))), "normalizePathToUnix");
|
|
1092
|
+
var normalizeIgnored = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (cwd = "") => (path) => {
|
|
1093
1093
|
if (typeof path === "string") {
|
|
1094
1094
|
return normalizePathToUnix(sysPath2.isAbsolute(path) ? path : sysPath2.join(cwd, path));
|
|
1095
1095
|
} else {
|
|
1096
1096
|
return path;
|
|
1097
1097
|
}
|
|
1098
1098
|
}, "normalizeIgnored");
|
|
1099
|
-
var getAbsolutePath = /* @__PURE__ */
|
|
1099
|
+
var getAbsolutePath = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (path, cwd) => {
|
|
1100
1100
|
if (sysPath2.isAbsolute(path)) {
|
|
1101
1101
|
return path;
|
|
1102
1102
|
}
|
|
@@ -1105,7 +1105,7 @@ var getAbsolutePath = /* @__PURE__ */ _chunkPSFME3R5cjs.__name.call(void 0, (pat
|
|
|
1105
1105
|
var EMPTY_SET = Object.freeze(/* @__PURE__ */ new Set());
|
|
1106
1106
|
var DirEntry = class DirEntry2 {
|
|
1107
1107
|
static {
|
|
1108
|
-
|
|
1108
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, this, "DirEntry");
|
|
1109
1109
|
}
|
|
1110
1110
|
constructor(dir, removeWatcher) {
|
|
1111
1111
|
this.path = dir;
|
|
@@ -1155,7 +1155,7 @@ var STAT_METHOD_F = "stat";
|
|
|
1155
1155
|
var STAT_METHOD_L = "lstat";
|
|
1156
1156
|
var WatchHelper = class {
|
|
1157
1157
|
static {
|
|
1158
|
-
|
|
1158
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, this, "WatchHelper");
|
|
1159
1159
|
}
|
|
1160
1160
|
constructor(path, follow, fsw) {
|
|
1161
1161
|
this.fsw = fsw;
|
|
@@ -1185,7 +1185,7 @@ var WatchHelper = class {
|
|
|
1185
1185
|
};
|
|
1186
1186
|
var FSWatcher = class extends _events.EventEmitter {
|
|
1187
1187
|
static {
|
|
1188
|
-
|
|
1188
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, this, "FSWatcher");
|
|
1189
1189
|
}
|
|
1190
1190
|
// Not indenting methods for history sake; for now.
|
|
1191
1191
|
constructor(_opts = {}) {
|
|
@@ -1419,7 +1419,7 @@ var FSWatcher = class extends _events.EventEmitter {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
1421
|
if (awf && (event === EVENTS.ADD || event === EVENTS.CHANGE) && this._readyEmitted) {
|
|
1422
|
-
const awfEmit = /* @__PURE__ */
|
|
1422
|
+
const awfEmit = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, (err, stats2) => {
|
|
1423
1423
|
if (err) {
|
|
1424
1424
|
event = EVENTS.ERROR;
|
|
1425
1425
|
args[0] = err;
|
|
@@ -1483,7 +1483,7 @@ var FSWatcher = class extends _events.EventEmitter {
|
|
|
1483
1483
|
return false;
|
|
1484
1484
|
}
|
|
1485
1485
|
let timeoutObject;
|
|
1486
|
-
const clear = /* @__PURE__ */
|
|
1486
|
+
const clear = /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, () => {
|
|
1487
1487
|
const item = action.get(path);
|
|
1488
1488
|
const count = item ? item.count : 0;
|
|
1489
1489
|
action.delete(path);
|
|
@@ -1542,11 +1542,11 @@ var FSWatcher = class extends _events.EventEmitter {
|
|
|
1542
1542
|
}
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
|
-
|
|
1545
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, awaitWriteFinishFn, "awaitWriteFinishFn");
|
|
1546
1546
|
if (!writes.has(path)) {
|
|
1547
1547
|
writes.set(path, {
|
|
1548
1548
|
lastChange: now,
|
|
1549
|
-
cancelWait: /* @__PURE__ */
|
|
1549
|
+
cancelWait: /* @__PURE__ */ _chunkJUU5ILZBcjs.__name.call(void 0, () => {
|
|
1550
1550
|
writes.delete(path);
|
|
1551
1551
|
clearTimeout(timeoutHandler);
|
|
1552
1552
|
return event;
|
|
@@ -1695,7 +1695,7 @@ function watch(paths, options = {}) {
|
|
|
1695
1695
|
watcher.add(paths);
|
|
1696
1696
|
return watcher;
|
|
1697
1697
|
}
|
|
1698
|
-
|
|
1698
|
+
_chunkJUU5ILZBcjs.__name.call(void 0, watch, "watch");
|
|
1699
1699
|
var esm_default = {
|
|
1700
1700
|
watch,
|
|
1701
1701
|
FSWatcher
|