@sjawhar/pi-legion-envoy 5.15.1 → 5.15.2
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/envoy.js +8 -1
- package/dist/legion.js +9 -2
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -32383,7 +32383,14 @@ class DispatchClient {
|
|
|
32383
32383
|
return this.#json("POST", ["api", "v1", "projects", project, "architecture-source", "sync"]);
|
|
32384
32384
|
}
|
|
32385
32385
|
async getArchitectureSource(project) {
|
|
32386
|
-
|
|
32386
|
+
try {
|
|
32387
|
+
return await this.#json("GET", ["api", "v1", "projects", project, "architecture-source"]);
|
|
32388
|
+
} catch (error48) {
|
|
32389
|
+
if (error48 instanceof DispatchServiceError && error48.status === 404 && error48.code === "SOURCE_NOT_FOUND") {
|
|
32390
|
+
return null;
|
|
32391
|
+
}
|
|
32392
|
+
throw error48;
|
|
32393
|
+
}
|
|
32387
32394
|
}
|
|
32388
32395
|
async resolveAsk(id, input) {
|
|
32389
32396
|
return this.#json("POST", ["api", "v1", "asks", id, "resolve"], input);
|
package/dist/legion.js
CHANGED
|
@@ -31299,7 +31299,14 @@ class DispatchClient {
|
|
|
31299
31299
|
return this.#json("POST", ["api", "v1", "projects", project, "architecture-source", "sync"]);
|
|
31300
31300
|
}
|
|
31301
31301
|
async getArchitectureSource(project) {
|
|
31302
|
-
|
|
31302
|
+
try {
|
|
31303
|
+
return await this.#json("GET", ["api", "v1", "projects", project, "architecture-source"]);
|
|
31304
|
+
} catch (error48) {
|
|
31305
|
+
if (error48 instanceof DispatchServiceError && error48.status === 404 && error48.code === "SOURCE_NOT_FOUND") {
|
|
31306
|
+
return null;
|
|
31307
|
+
}
|
|
31308
|
+
throw error48;
|
|
31309
|
+
}
|
|
31303
31310
|
}
|
|
31304
31311
|
async resolveAsk(id, input) {
|
|
31305
31312
|
return this.#json("POST", ["api", "v1", "asks", id, "resolve"], input);
|
|
@@ -33387,7 +33394,7 @@ import { logger } from "@oh-my-pi/pi-utils";
|
|
|
33387
33394
|
// package.json
|
|
33388
33395
|
var package_default = {
|
|
33389
33396
|
name: "@sjawhar/pi-legion-envoy",
|
|
33390
|
-
version: "5.15.
|
|
33397
|
+
version: "5.15.2",
|
|
33391
33398
|
type: "module",
|
|
33392
33399
|
omp: {
|
|
33393
33400
|
extensions: [
|