@code-pushup/core 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 +5 -4
- package/package.json +2 -2
- package/src/lib/upload.d.ts +1 -1
package/index.js
CHANGED
|
@@ -461,7 +461,8 @@ var uploadConfigSchema = z10.object({
|
|
|
461
461
|
description: "API key with write access to portal (use `process.env` for security)"
|
|
462
462
|
}),
|
|
463
463
|
organization: slugSchema("Organization slug from Code PushUp portal"),
|
|
464
|
-
project: slugSchema("Project slug from Code PushUp portal")
|
|
464
|
+
project: slugSchema("Project slug from Code PushUp portal"),
|
|
465
|
+
timeout: z10.number({ description: "Request timeout in minutes (default is 5)" }).positive().int().optional()
|
|
465
466
|
});
|
|
466
467
|
|
|
467
468
|
// packages/models/src/lib/core-config.ts
|
|
@@ -1667,7 +1668,7 @@ function auditOutputsCorrelateWithPluginOutput(auditOutputs, pluginConfigAudits)
|
|
|
1667
1668
|
|
|
1668
1669
|
// packages/core/package.json
|
|
1669
1670
|
var name = "@code-pushup/core";
|
|
1670
|
-
var version = "0.
|
|
1671
|
+
var version = "0.9.0";
|
|
1671
1672
|
|
|
1672
1673
|
// packages/core/src/lib/implementation/collect.ts
|
|
1673
1674
|
async function collect(options) {
|
|
@@ -1788,7 +1789,7 @@ async function upload(options, uploadFn = uploadToPortal) {
|
|
|
1788
1789
|
if (!options.upload) {
|
|
1789
1790
|
throw new Error("upload config must be set");
|
|
1790
1791
|
}
|
|
1791
|
-
const { apiKey, server, organization, project } = options.upload;
|
|
1792
|
+
const { apiKey, server, organization, project, timeout } = options.upload;
|
|
1792
1793
|
const report = await loadReport({
|
|
1793
1794
|
...persist,
|
|
1794
1795
|
format: "json"
|
|
@@ -1803,7 +1804,7 @@ async function upload(options, uploadFn = uploadToPortal) {
|
|
|
1803
1804
|
commit: commitData.hash,
|
|
1804
1805
|
...jsonReportToGql(report)
|
|
1805
1806
|
};
|
|
1806
|
-
return uploadFn({ apiKey, server, data });
|
|
1807
|
+
return uploadFn({ apiKey, server, data, timeout });
|
|
1807
1808
|
}
|
|
1808
1809
|
|
|
1809
1810
|
// packages/core/src/lib/collect-and-persist.ts
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@code-pushup/models": "*",
|
|
6
6
|
"@code-pushup/utils": "*",
|
|
7
|
-
"@code-pushup/portal-client": "^0.
|
|
7
|
+
"@code-pushup/portal-client": "^0.4.0",
|
|
8
8
|
"chalk": "^5.3.0"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
package/src/lib/upload.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { uploadToPortal } from '@code-pushup/portal-client';
|
|
|
2
2
|
import { PersistConfig, UploadConfig } from '@code-pushup/models';
|
|
3
3
|
import { GlobalOptions } from './types';
|
|
4
4
|
export type UploadOptions = {
|
|
5
|
-
upload:
|
|
5
|
+
upload: UploadConfig;
|
|
6
6
|
} & {
|
|
7
7
|
persist: Required<PersistConfig>;
|
|
8
8
|
} & GlobalOptions;
|