@sjawhar/pi-legion-envoy 0.24.0 → 0.26.0

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 CHANGED
@@ -31162,6 +31162,9 @@ class DispatchClient {
31162
31162
  async issue(input) {
31163
31163
  return this.#json("POST", ["api", "v1", "issues"], input);
31164
31164
  }
31165
+ async listIssues(options = {}) {
31166
+ return this.#json("GET", ["api", "v1", "issues"], undefined, options);
31167
+ }
31165
31168
  async getIssue(issue) {
31166
31169
  return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue)]);
31167
31170
  }
@@ -31305,8 +31308,11 @@ class DispatchClient {
31305
31308
  #url(path, query) {
31306
31309
  const url = new URL(`${path.map((segment) => encodeURIComponent(segment)).join("/")}`, `${this.#baseUrl}/`);
31307
31310
  if (query) {
31308
- for (const [name, value] of Object.entries(query))
31309
- url.searchParams.set(name, String(value));
31311
+ for (const [name, value] of Object.entries(query)) {
31312
+ if (typeof value === "string" || typeof value === "number") {
31313
+ url.searchParams.set(name, String(value));
31314
+ }
31315
+ }
31310
31316
  }
31311
31317
  return url.toString();
31312
31318
  }
package/dist/legion.js CHANGED
@@ -31647,6 +31647,9 @@ class DispatchClient {
31647
31647
  async issue(input) {
31648
31648
  return this.#json("POST", ["api", "v1", "issues"], input);
31649
31649
  }
31650
+ async listIssues(options = {}) {
31651
+ return this.#json("GET", ["api", "v1", "issues"], undefined, options);
31652
+ }
31650
31653
  async getIssue(issue) {
31651
31654
  return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue)]);
31652
31655
  }
@@ -31790,8 +31793,11 @@ class DispatchClient {
31790
31793
  #url(path, query) {
31791
31794
  const url = new URL(`${path.map((segment) => encodeURIComponent(segment)).join("/")}`, `${this.#baseUrl}/`);
31792
31795
  if (query) {
31793
- for (const [name, value] of Object.entries(query))
31794
- url.searchParams.set(name, String(value));
31796
+ for (const [name, value] of Object.entries(query)) {
31797
+ if (typeof value === "string" || typeof value === "number") {
31798
+ url.searchParams.set(name, String(value));
31799
+ }
31800
+ }
31795
31801
  }
31796
31802
  return url.toString();
31797
31803
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion-envoy",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "type": "module",
5
5
  "omp": {
6
6
  "extensions": [