@code-pushup/cli 0.8.25 → 0.9.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/index.js CHANGED
@@ -469,7 +469,8 @@ var uploadConfigSchema = z10.object({
469
469
  description: "API key with write access to portal (use `process.env` for security)"
470
470
  }),
471
471
  organization: slugSchema("Organization slug from Code PushUp portal"),
472
- project: slugSchema("Project slug from Code PushUp portal")
472
+ project: slugSchema("Project slug from Code PushUp portal"),
473
+ timeout: z10.number({ description: "Request timeout in minutes (default is 5)" }).positive().int().optional()
473
474
  });
474
475
 
475
476
  // packages/models/src/lib/core-config.ts
@@ -1675,7 +1676,7 @@ function auditOutputsCorrelateWithPluginOutput(auditOutputs, pluginConfigAudits)
1675
1676
 
1676
1677
  // packages/core/package.json
1677
1678
  var name = "@code-pushup/core";
1678
- var version = "0.8.25";
1679
+ var version = "0.9.0";
1679
1680
 
1680
1681
  // packages/core/src/lib/implementation/collect.ts
1681
1682
  async function collect(options2) {
@@ -1796,7 +1797,7 @@ async function upload(options2, uploadFn = uploadToPortal) {
1796
1797
  if (!options2.upload) {
1797
1798
  throw new Error("upload config must be set");
1798
1799
  }
1799
- const { apiKey, server, organization, project } = options2.upload;
1800
+ const { apiKey, server, organization, project, timeout } = options2.upload;
1800
1801
  const report = await loadReport({
1801
1802
  ...persist,
1802
1803
  format: "json"
@@ -1811,7 +1812,7 @@ async function upload(options2, uploadFn = uploadToPortal) {
1811
1812
  commit: commitData.hash,
1812
1813
  ...jsonReportToGql(report)
1813
1814
  };
1814
- return uploadFn({ apiKey, server, data });
1815
+ return uploadFn({ apiKey, server, data, timeout });
1815
1816
  }
1816
1817
 
1817
1818
  // packages/core/src/lib/collect-and-persist.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.8.25",
3
+ "version": "0.9.0",
4
4
  "bin": {
5
5
  "code-pushup": "index.js"
6
6
  },
@@ -220,6 +220,7 @@ export declare function coreConfigMiddleware<T extends Partial<GeneralCliOptions
220
220
  apiKey: string;
221
221
  organization: string;
222
222
  project: string;
223
+ timeout?: number | undefined;
223
224
  } | undefined;
224
225
  } & {
225
226
  config: string;
@@ -221,6 +221,7 @@ export declare function onlyPluginsMiddleware<T extends Partial<GeneralCliOption
221
221
  apiKey: string;
222
222
  organization: string;
223
223
  project: string;
224
+ timeout?: number | undefined;
224
225
  } | undefined;
225
226
  } & {
226
227
  config: string;