@swmansion/argent 0.25.1-next.14 → 0.25.1-next.16
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-cmds.mjs +1 -1
- package/dist/installer.mjs +1 -1
- package/dist/tool-server.cjs +5 -16
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -21857,7 +21857,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
21857
21857
|
var SESSION_ID2 = randomUUID5();
|
|
21858
21858
|
function readCliVersion() {
|
|
21859
21859
|
if (true) {
|
|
21860
|
-
return "0.25.1-next.
|
|
21860
|
+
return "0.25.1-next.16";
|
|
21861
21861
|
}
|
|
21862
21862
|
return "0.0.0";
|
|
21863
21863
|
}
|
package/dist/installer.mjs
CHANGED
|
@@ -16710,7 +16710,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16710
16710
|
var SESSION_ID = randomUUID4();
|
|
16711
16711
|
function readCliVersion() {
|
|
16712
16712
|
if (true) {
|
|
16713
|
-
return "0.25.1-next.
|
|
16713
|
+
return "0.25.1-next.16";
|
|
16714
16714
|
}
|
|
16715
16715
|
return "0.0.0";
|
|
16716
16716
|
}
|
package/dist/tool-server.cjs
CHANGED
|
@@ -390,7 +390,9 @@ var init_event_emitter = __esm({
|
|
|
390
390
|
return this;
|
|
391
391
|
}
|
|
392
392
|
emit(event2, ...args) {
|
|
393
|
-
this.listeners.get(event2)
|
|
393
|
+
const fns = this.listeners.get(event2);
|
|
394
|
+
if (!fns) return;
|
|
395
|
+
for (const fn of [...fns]) {
|
|
394
396
|
try {
|
|
395
397
|
fn(...args);
|
|
396
398
|
} catch (err) {
|
|
@@ -399,7 +401,7 @@ var init_event_emitter = __esm({
|
|
|
399
401
|
`
|
|
400
402
|
);
|
|
401
403
|
}
|
|
402
|
-
}
|
|
404
|
+
}
|
|
403
405
|
}
|
|
404
406
|
removeAllListeners() {
|
|
405
407
|
this.listeners.clear();
|
|
@@ -94702,7 +94704,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
94702
94704
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
94703
94705
|
function readCliVersion() {
|
|
94704
94706
|
if (true) {
|
|
94705
|
-
return "0.25.1-next.
|
|
94707
|
+
return "0.25.1-next.16";
|
|
94706
94708
|
}
|
|
94707
94709
|
return "0.0.0";
|
|
94708
94710
|
}
|
|
@@ -116744,7 +116746,6 @@ var LINE_RE = /^\[L:(\d+)\] (\S+) (\S+)\s+(\S+) \| (.*)$/;
|
|
|
116744
116746
|
var LogFileWriter = class {
|
|
116745
116747
|
filePath;
|
|
116746
116748
|
fd = null;
|
|
116747
|
-
writeBuffer = [];
|
|
116748
116749
|
bytesWritten = 0;
|
|
116749
116750
|
entryCount = 0;
|
|
116750
116751
|
levelCounts = {};
|
|
@@ -116762,18 +116763,9 @@ var LogFileWriter = class {
|
|
|
116762
116763
|
try {
|
|
116763
116764
|
this.fd = fs27.openSync(this.filePath, "w");
|
|
116764
116765
|
this.ready = true;
|
|
116765
|
-
this.flushBuffer();
|
|
116766
116766
|
} catch {
|
|
116767
116767
|
}
|
|
116768
116768
|
}
|
|
116769
|
-
flushBuffer() {
|
|
116770
|
-
if (!this.ready || this.fd === null) return;
|
|
116771
|
-
for (const line of this.writeBuffer) {
|
|
116772
|
-
const buf = Buffer.from(line);
|
|
116773
|
-
fs27.writeSync(this.fd, buf);
|
|
116774
|
-
}
|
|
116775
|
-
this.writeBuffer = [];
|
|
116776
|
-
}
|
|
116777
116769
|
write(entry) {
|
|
116778
116770
|
if (this.closed) throw new Error("LogFileWriter is closed");
|
|
116779
116771
|
if (this.entryCount >= MAX_ENTRIES) {
|
|
@@ -116794,8 +116786,6 @@ var LogFileWriter = class {
|
|
|
116794
116786
|
if (this.ready && this.fd !== null) {
|
|
116795
116787
|
const buf = Buffer.from(line);
|
|
116796
116788
|
fs27.writeSync(this.fd, buf);
|
|
116797
|
-
} else {
|
|
116798
|
-
this.writeBuffer.push(line);
|
|
116799
116789
|
}
|
|
116800
116790
|
this.bytesWritten += Buffer.byteLength(line);
|
|
116801
116791
|
this.entryCount++;
|
|
@@ -116843,7 +116833,6 @@ var LogFileWriter = class {
|
|
|
116843
116833
|
}
|
|
116844
116834
|
readAll() {
|
|
116845
116835
|
if (this.closed || !this.ready) return [];
|
|
116846
|
-
this.flushBuffer();
|
|
116847
116836
|
try {
|
|
116848
116837
|
const content = fs27.readFileSync(this.filePath, "utf-8");
|
|
116849
116838
|
return content.split("\n").filter((line) => line.length > 0).map(parseFlatLine).filter((entry) => entry !== null);
|
package/package.json
CHANGED