@apilift/cli 1.8.0 → 1.8.1-dev.1793388935.fc246d8bb607473276b1b54f070df0ef462363cf
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.
|
@@ -27,7 +27,8 @@ function dataRoot(env) {
|
|
|
27
27
|
// src/capture-server/server.ts
|
|
28
28
|
import { randomBytes, timingSafeEqual } from "node:crypto";
|
|
29
29
|
import { createServer } from "node:http";
|
|
30
|
-
import {
|
|
30
|
+
import { readFileSync as readFileSync3, unlinkSync } from "node:fs";
|
|
31
|
+
import { mkdir, rename, writeFile, chmod } from "node:fs/promises";
|
|
31
32
|
import { join as join3 } from "node:path";
|
|
32
33
|
|
|
33
34
|
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
|
|
@@ -20561,13 +20562,12 @@ async function startCaptureServer(options) {
|
|
|
20561
20562
|
if (closed) return;
|
|
20562
20563
|
closed = true;
|
|
20563
20564
|
clearInterval(timer);
|
|
20564
|
-
const drained = new Promise((resolve2) => server.close(() => resolve2()));
|
|
20565
20565
|
try {
|
|
20566
|
-
const current = JSON.parse(
|
|
20567
|
-
if (current.token === token)
|
|
20566
|
+
const current = JSON.parse(readFileSync3(receiptPath, "utf8"));
|
|
20567
|
+
if (current.token === token) unlinkSync(receiptPath);
|
|
20568
20568
|
} catch {
|
|
20569
20569
|
}
|
|
20570
|
-
await
|
|
20570
|
+
await new Promise((resolve2) => server.close(() => resolve2()));
|
|
20571
20571
|
store.close();
|
|
20572
20572
|
}
|
|
20573
20573
|
return { receipt, store, close };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apilift/cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1-dev.1793388935.fc246d8bb607473276b1b54f070df0ef462363cf",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=24.16.0 <27"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "fc246d8bb607473276b1b54f070df0ef462363cf",
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
43
|
"url": "git+https://github.com/egor-sergeev/apilift.git",
|