@storm-software/git-tools 2.89.19 → 2.89.21
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-YMPZZ63R.js → chunk-2I5IZB7I.js} +1 -1
- package/bin/{chunk-WOZSAFMN.cjs → chunk-4EXZWKXK.cjs} +138 -138
- package/bin/{chunk-SDAFIVIF.cjs → chunk-4GTGG7FG.cjs} +11 -11
- package/bin/{chunk-UAKVQGZU.cjs → chunk-7FWXX5NN.cjs} +3 -3
- package/bin/{chunk-JHLNALI2.js → chunk-7JKZEVN7.js} +7 -7
- package/bin/{chunk-MUULUJFG.js → chunk-CZZS5O6X.js} +1 -1
- package/bin/{chunk-NHO7HSOE.cjs → chunk-D7E6FHYG.cjs} +32 -32
- package/bin/{chunk-43ATVBTN.cjs → chunk-EE6YDWP4.cjs} +44 -44
- package/bin/{chunk-EM6PLOYY.cjs → chunk-EVP6BIDZ.cjs} +7 -3
- package/bin/{chunk-JMRHG3KS.cjs → chunk-F6YMONH3.cjs} +233 -392
- package/bin/{chunk-5ZJZTDLU.js → chunk-FHVPOT6G.js} +1441 -1276
- package/bin/{chunk-BXSXKKIZ.cjs → chunk-P2UJ7X76.cjs} +4 -4
- package/bin/{chunk-GAD5S6RI.js → chunk-P7LQIJOK.js} +2 -2
- package/bin/{chunk-4NALH4AO.js → chunk-PRYU3CEH.js} +2 -2
- package/bin/{chunk-3QBEWJXQ.js → chunk-S3A47QIS.js} +2 -2
- package/bin/{chunk-4MENWQJO.js → chunk-TYQRCC7E.js} +2 -2
- package/bin/{chunk-427CJVMZ.js → chunk-UZIBTESG.js} +1 -1
- package/bin/{chunk-TJ5BVZGX.js → chunk-V65N3PBL.js} +2 -2
- package/bin/{chunk-C34WMFNS.cjs → chunk-VOJH3O6K.cjs} +40 -40
- package/bin/{chunk-6L7OVDLD.cjs → chunk-W4EY6QRJ.cjs} +393 -393
- package/bin/{chunk-WS6FE5KD.cjs → chunk-WFAIEAPC.cjs} +3642 -3477
- package/bin/{chunk-BNZUDAPR.js → chunk-ZEYLUM4B.js} +94 -253
- package/bin/dist-EX76TC3D.js +17570 -0
- package/bin/dist-MDJEMGZH.cjs +17584 -0
- package/bin/{esm-ADC7HY7G.cjs → esm-SEHCMT4E.cjs} +46 -46
- package/bin/{esm-PISMAGAM.js → esm-UXKHSPHY.js} +1 -1
- package/bin/git.cjs +4316 -4073
- package/bin/git.js +404 -161
- package/bin/json5-E6MR7H4J.cjs +10 -0
- package/bin/json5-HE6DANEW.js +10 -0
- package/bin/jsonc-CWW22DWU.cjs +15 -0
- package/bin/{jsonc-CHJ3SQ64.js → jsonc-TLFMS47G.js} +3 -3
- package/bin/{multipart-parser-QOE3NE7W.js → multipart-parser-KCGB6E6J.js} +4 -4
- package/bin/{multipart-parser-CN3QNGEE.cjs → multipart-parser-S4YB5ALJ.cjs} +13 -13
- 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-PO23EX2W.js +10 -0
- package/bin/toml-TV5QPP5J.cjs +10 -0
- package/bin/version-warning.cjs +15 -15
- package/bin/version-warning.js +9 -9
- package/bin/yaml-NB7XNCSN.js +10 -0
- package/bin/yaml-WOAAZHQN.cjs +10 -0
- package/package.json +1 -1
- package/bin/chunk-EDTRL3GR.cjs +0 -259
- package/bin/chunk-K7RQNYFN.js +0 -259
- package/bin/dist-GN3JYRFA.js +0 -17570
- package/bin/dist-ZUU4T6MR.cjs +0 -17571
- package/bin/execa-45OZD4HI.js +0 -2174
- package/bin/execa-E3LSHKN4.cjs +0 -2174
- package/bin/json5-MEVIN4CB.cjs +0 -10
- package/bin/json5-VNZS6NRW.js +0 -10
- package/bin/jsonc-Q2LSC5PJ.cjs +0 -15
- package/bin/toml-24JQBPT6.cjs +0 -10
- package/bin/toml-5RFTLUCR.js +0 -10
- package/bin/yaml-76CIIR2C.cjs +0 -10
- package/bin/yaml-MEEY2W2C.js +0 -10
package/bin/chunk-K7RQNYFN.js
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name,
|
|
3
|
-
init_esm_shims
|
|
4
|
-
} from "./chunk-TJ5BVZGX.js";
|
|
5
|
-
|
|
6
|
-
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
7
|
-
init_esm_shims();
|
|
8
|
-
|
|
9
|
-
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
10
|
-
init_esm_shims();
|
|
11
|
-
var signals = [];
|
|
12
|
-
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
13
|
-
if (process.platform !== "win32") {
|
|
14
|
-
signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
15
|
-
}
|
|
16
|
-
if (process.platform === "linux") {
|
|
17
|
-
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
21
|
-
var processOk = /* @__PURE__ */ __name((process3) => !!process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function", "processOk");
|
|
22
|
-
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
23
|
-
var global = globalThis;
|
|
24
|
-
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
25
|
-
var Emitter = class Emitter2 {
|
|
26
|
-
static {
|
|
27
|
-
__name(this, "Emitter");
|
|
28
|
-
}
|
|
29
|
-
emitted = {
|
|
30
|
-
afterExit: false,
|
|
31
|
-
exit: false
|
|
32
|
-
};
|
|
33
|
-
listeners = {
|
|
34
|
-
afterExit: [],
|
|
35
|
-
exit: []
|
|
36
|
-
};
|
|
37
|
-
count = 0;
|
|
38
|
-
id = Math.random();
|
|
39
|
-
constructor() {
|
|
40
|
-
if (global[kExitEmitter]) {
|
|
41
|
-
return global[kExitEmitter];
|
|
42
|
-
}
|
|
43
|
-
ObjectDefineProperty(global, kExitEmitter, {
|
|
44
|
-
value: this,
|
|
45
|
-
writable: false,
|
|
46
|
-
enumerable: false,
|
|
47
|
-
configurable: false
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
on(ev, fn) {
|
|
51
|
-
this.listeners[ev].push(fn);
|
|
52
|
-
}
|
|
53
|
-
removeListener(ev, fn) {
|
|
54
|
-
const list = this.listeners[ev];
|
|
55
|
-
const i = list.indexOf(fn);
|
|
56
|
-
if (i === -1) {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (i === 0 && list.length === 1) {
|
|
60
|
-
list.length = 0;
|
|
61
|
-
} else {
|
|
62
|
-
list.splice(i, 1);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
emit(ev, code, signal) {
|
|
66
|
-
if (this.emitted[ev]) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
this.emitted[ev] = true;
|
|
70
|
-
let ret = false;
|
|
71
|
-
for (const fn of this.listeners[ev]) {
|
|
72
|
-
ret = fn(code, signal) === true || ret;
|
|
73
|
-
}
|
|
74
|
-
if (ev === "exit") {
|
|
75
|
-
ret = this.emit("afterExit", code, signal) || ret;
|
|
76
|
-
}
|
|
77
|
-
return ret;
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
var SignalExitBase = class SignalExitBase2 {
|
|
81
|
-
static {
|
|
82
|
-
__name(this, "SignalExitBase");
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
var signalExitWrap = /* @__PURE__ */ __name((handler) => {
|
|
86
|
-
return {
|
|
87
|
-
onExit(cb, opts) {
|
|
88
|
-
return handler.onExit(cb, opts);
|
|
89
|
-
},
|
|
90
|
-
load() {
|
|
91
|
-
return handler.load();
|
|
92
|
-
},
|
|
93
|
-
unload() {
|
|
94
|
-
return handler.unload();
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
}, "signalExitWrap");
|
|
98
|
-
var SignalExitFallback = class SignalExitFallback2 extends SignalExitBase {
|
|
99
|
-
static {
|
|
100
|
-
__name(this, "SignalExitFallback");
|
|
101
|
-
}
|
|
102
|
-
onExit() {
|
|
103
|
-
return () => {
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
load() {
|
|
107
|
-
}
|
|
108
|
-
unload() {
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
var SignalExit = class SignalExit2 extends SignalExitBase {
|
|
112
|
-
static {
|
|
113
|
-
__name(this, "SignalExit");
|
|
114
|
-
}
|
|
115
|
-
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
116
|
-
// so use a supported signal instead
|
|
117
|
-
/* c8 ignore start */
|
|
118
|
-
#hupSig = process2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
119
|
-
/* c8 ignore stop */
|
|
120
|
-
#emitter = new Emitter();
|
|
121
|
-
#process;
|
|
122
|
-
#originalProcessEmit;
|
|
123
|
-
#originalProcessReallyExit;
|
|
124
|
-
#sigListeners = {};
|
|
125
|
-
#loaded = false;
|
|
126
|
-
constructor(process3) {
|
|
127
|
-
super();
|
|
128
|
-
this.#process = process3;
|
|
129
|
-
this.#sigListeners = {};
|
|
130
|
-
for (const sig of signals) {
|
|
131
|
-
this.#sigListeners[sig] = () => {
|
|
132
|
-
const listeners = this.#process.listeners(sig);
|
|
133
|
-
let { count } = this.#emitter;
|
|
134
|
-
const p = process3;
|
|
135
|
-
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
136
|
-
count += p.__signal_exit_emitter__.count;
|
|
137
|
-
}
|
|
138
|
-
if (listeners.length === count) {
|
|
139
|
-
this.unload();
|
|
140
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
141
|
-
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
142
|
-
if (!ret) process3.kill(process3.pid, s);
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
this.#originalProcessReallyExit = process3.reallyExit;
|
|
147
|
-
this.#originalProcessEmit = process3.emit;
|
|
148
|
-
}
|
|
149
|
-
onExit(cb, opts) {
|
|
150
|
-
if (!processOk(this.#process)) {
|
|
151
|
-
return () => {
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
if (this.#loaded === false) {
|
|
155
|
-
this.load();
|
|
156
|
-
}
|
|
157
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
158
|
-
this.#emitter.on(ev, cb);
|
|
159
|
-
return () => {
|
|
160
|
-
this.#emitter.removeListener(ev, cb);
|
|
161
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
162
|
-
this.unload();
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
load() {
|
|
167
|
-
if (this.#loaded) {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
this.#loaded = true;
|
|
171
|
-
this.#emitter.count += 1;
|
|
172
|
-
for (const sig of signals) {
|
|
173
|
-
try {
|
|
174
|
-
const fn = this.#sigListeners[sig];
|
|
175
|
-
if (fn) this.#process.on(sig, fn);
|
|
176
|
-
} catch (_) {
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
this.#process.emit = (ev, ...a) => {
|
|
180
|
-
return this.#processEmit(ev, ...a);
|
|
181
|
-
};
|
|
182
|
-
this.#process.reallyExit = (code) => {
|
|
183
|
-
return this.#processReallyExit(code);
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
unload() {
|
|
187
|
-
if (!this.#loaded) {
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
this.#loaded = false;
|
|
191
|
-
signals.forEach((sig) => {
|
|
192
|
-
const listener = this.#sigListeners[sig];
|
|
193
|
-
if (!listener) {
|
|
194
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
195
|
-
}
|
|
196
|
-
try {
|
|
197
|
-
this.#process.removeListener(sig, listener);
|
|
198
|
-
} catch (_) {
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
202
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
203
|
-
this.#emitter.count -= 1;
|
|
204
|
-
}
|
|
205
|
-
#processReallyExit(code) {
|
|
206
|
-
if (!processOk(this.#process)) {
|
|
207
|
-
return 0;
|
|
208
|
-
}
|
|
209
|
-
this.#process.exitCode = code || 0;
|
|
210
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
211
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
212
|
-
}
|
|
213
|
-
#processEmit(ev, ...args) {
|
|
214
|
-
const og = this.#originalProcessEmit;
|
|
215
|
-
if (ev === "exit" && processOk(this.#process)) {
|
|
216
|
-
if (typeof args[0] === "number") {
|
|
217
|
-
this.#process.exitCode = args[0];
|
|
218
|
-
}
|
|
219
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
220
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
221
|
-
return ret;
|
|
222
|
-
} else {
|
|
223
|
-
return og.call(this.#process, ev, ...args);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
var process2 = globalThis.process;
|
|
228
|
-
var {
|
|
229
|
-
/**
|
|
230
|
-
* Called when the process is exiting, whether via signal, explicit
|
|
231
|
-
* exit, or running out of stuff to do.
|
|
232
|
-
*
|
|
233
|
-
* If the global process object is not suitable for instrumentation,
|
|
234
|
-
* then this will be a no-op.
|
|
235
|
-
*
|
|
236
|
-
* Returns a function that may be used to unload signal-exit.
|
|
237
|
-
*/
|
|
238
|
-
onExit,
|
|
239
|
-
/**
|
|
240
|
-
* Load the listeners. Likely you never need to call this, unless
|
|
241
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
242
|
-
* Mostly exposed for the benefit of testing.
|
|
243
|
-
*
|
|
244
|
-
* @internal
|
|
245
|
-
*/
|
|
246
|
-
load,
|
|
247
|
-
/**
|
|
248
|
-
* Unload the listeners. Likely you never need to call this, unless
|
|
249
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
250
|
-
* Mostly exposed for the benefit of testing.
|
|
251
|
-
*
|
|
252
|
-
* @internal
|
|
253
|
-
*/
|
|
254
|
-
unload
|
|
255
|
-
} = signalExitWrap(processOk(process2) ? new SignalExit(process2) : new SignalExitFallback());
|
|
256
|
-
|
|
257
|
-
export {
|
|
258
|
-
onExit
|
|
259
|
-
};
|