@apilift/cli 1.10.3 → 1.10.4-dev.1795547698.3bcbe40e06439bac701f10ae3ea8b0c7635884a7
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.
|
@@ -31170,7 +31170,8 @@ import { existsSync } from "node:fs";
|
|
|
31170
31170
|
import { join as join2 } from "node:path";
|
|
31171
31171
|
import { DatabaseSync as DatabaseSync2 } from "node:sqlite";
|
|
31172
31172
|
var databasePath = (root) => join2(root, "capture.sqlite");
|
|
31173
|
-
var
|
|
31173
|
+
var idleProbeBusyTimeoutMs = 75;
|
|
31174
|
+
var open2 = (root, readOnly = false) => new DatabaseSync2(databasePath(root), { readOnly, timeout: readOnly ? idleProbeBusyTimeoutMs : 0 });
|
|
31174
31175
|
function ownerAlive(pid) {
|
|
31175
31176
|
if (!Number.isInteger(pid) || pid <= 0) return false;
|
|
31176
31177
|
try {
|
|
@@ -33260,7 +33261,12 @@ var NativeHost = class {
|
|
|
33260
33261
|
return this.credentials.rename({ ...binding, credentialId: request2.payload.credentialId, name: request2.payload.name });
|
|
33261
33262
|
}
|
|
33262
33263
|
}
|
|
33263
|
-
const client = await this.capture()
|
|
33264
|
+
const client = await this.capture().catch((error62) => {
|
|
33265
|
+
if (request2.operation === "capture.append" && !this.options.captureClient && publicError(error62).code === "capture-server-unavailable" && captureServerIdle(this.options.root)) {
|
|
33266
|
+
throw Object.assign(new Error("No recording broker is active. Retain buffered metadata for retry."), { code: "capture-server-idle" });
|
|
33267
|
+
}
|
|
33268
|
+
throw error62;
|
|
33269
|
+
});
|
|
33264
33270
|
let result = await client.native(scrubScoped(request2));
|
|
33265
33271
|
if (request2.operation === "jobs.poll" && request2.payload.waitMs > 0 && result && typeof result === "object" && !Object.keys(result).length) {
|
|
33266
33272
|
const changed = await client.changes(this.jobRevision, request2.payload.waitMs);
|
package/dist/apilift.js
CHANGED
|
@@ -41502,12 +41502,13 @@ async function waitForBridge(root2, version2, timeoutMs = 9e4, wake, compatibleB
|
|
|
41502
41502
|
}
|
|
41503
41503
|
}
|
|
41504
41504
|
}
|
|
41505
|
-
var databasePath, open2;
|
|
41505
|
+
var databasePath, idleProbeBusyTimeoutMs, open2;
|
|
41506
41506
|
var init_demand = __esm({
|
|
41507
41507
|
"src/capture-server/demand.ts"() {
|
|
41508
41508
|
"use strict";
|
|
41509
41509
|
databasePath = (root2) => join8(root2, "capture.sqlite");
|
|
41510
|
-
|
|
41510
|
+
idleProbeBusyTimeoutMs = 75;
|
|
41511
|
+
open2 = (root2, readOnly = false) => new DatabaseSync2(databasePath(root2), { readOnly, timeout: readOnly ? idleProbeBusyTimeoutMs : 0 });
|
|
41511
41512
|
}
|
|
41512
41513
|
});
|
|
41513
41514
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apilift/cli",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.4-dev.1795547698.3bcbe40e06439bac701f10ae3ea8b0c7635884a7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=24.16.0 <27"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "3bcbe40e06439bac701f10ae3ea8b0c7635884a7",
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
44
44
|
"url": "git+https://github.com/egor-sergeev/apilift.git",
|