@gowelle/stint-agent 1.0.0 → 1.0.1
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.
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// src/services/api.ts
|
|
2
|
-
import { createRequire } from "module";
|
|
3
|
-
|
|
4
1
|
// src/utils/config.ts
|
|
5
2
|
import Conf from "conf";
|
|
6
3
|
import { randomUUID } from "crypto";
|
|
@@ -257,7 +254,7 @@ var AuthServiceImpl = class {
|
|
|
257
254
|
return null;
|
|
258
255
|
}
|
|
259
256
|
try {
|
|
260
|
-
const { apiService: apiService2 } = await import("./api-
|
|
257
|
+
const { apiService: apiService2 } = await import("./api-GH4C2AFN.js");
|
|
261
258
|
const user = await apiService2.getCurrentUser();
|
|
262
259
|
logger.info("auth", `Token validated for user: ${user.email}`);
|
|
263
260
|
return user;
|
|
@@ -277,9 +274,7 @@ var AuthServiceImpl = class {
|
|
|
277
274
|
var authService = new AuthServiceImpl();
|
|
278
275
|
|
|
279
276
|
// src/services/api.ts
|
|
280
|
-
var
|
|
281
|
-
var packageJson = require2("../../package.json");
|
|
282
|
-
var AGENT_VERSION = packageJson.version;
|
|
277
|
+
var AGENT_VERSION = "1.0.1";
|
|
283
278
|
var ApiServiceImpl = class {
|
|
284
279
|
sessionId = null;
|
|
285
280
|
async getHeaders() {
|
package/dist/daemon/runner.js
CHANGED
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
projectService,
|
|
6
6
|
removePidFile,
|
|
7
7
|
writePidFile
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-TCWMYJPP.js";
|
|
9
9
|
import {
|
|
10
10
|
apiService,
|
|
11
11
|
authService,
|
|
12
12
|
config,
|
|
13
13
|
logger
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-CCM25AHM.js";
|
|
15
15
|
|
|
16
16
|
// src/daemon/runner.ts
|
|
17
17
|
import "dotenv/config";
|
package/dist/index.js
CHANGED
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
projectService,
|
|
9
9
|
spawnDetached,
|
|
10
10
|
validatePidFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TCWMYJPP.js";
|
|
12
12
|
import {
|
|
13
13
|
apiService,
|
|
14
14
|
authService,
|
|
15
15
|
config,
|
|
16
16
|
logger
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CCM25AHM.js";
|
|
18
18
|
|
|
19
19
|
// src/index.ts
|
|
20
20
|
import "dotenv/config";
|