@alwaysmeticulous/client
Advanced tools
Comparing version 2.56.0 to 2.58.0
@@ -14,3 +14,4 @@ import { Project, TestCaseResult, TestRunStatus } from "@alwaysmeticulous/api"; | ||
commitSha: string; | ||
logicalEnvironmentVersion?: number; | ||
} | ||
export declare const getLatestTestRunResults: ({ client, commitSha, }: GetLatestTestRunOptions) => Promise<TestRun | null>; | ||
export declare const getLatestTestRunResults: ({ client, commitSha, logicalEnvironmentVersion, }: GetLatestTestRunOptions) => Promise<TestRun | null>; |
@@ -5,6 +5,15 @@ "use strict"; | ||
const axios_1 = require("axios"); | ||
const getLatestTestRunResults = async ({ client, commitSha, }) => { | ||
const getLatestTestRunResults = async ({ client, commitSha, logicalEnvironmentVersion, }) => { | ||
var _a; | ||
const { data } = await client | ||
.get(`test-runs/cache?commitSha=${encodeURIComponent(commitSha)}`) | ||
.get("test-runs/cache", { | ||
params: { | ||
commitSha: encodeURIComponent(commitSha), | ||
...(logicalEnvironmentVersion | ||
? { | ||
logicalEnvironmentVersion: encodeURIComponent(logicalEnvironmentVersion), | ||
} | ||
: {}), | ||
}, | ||
}) | ||
.catch((error) => { | ||
@@ -11,0 +20,0 @@ var _a; |
{ | ||
"name": "@alwaysmeticulous/client", | ||
"version": "2.56.0", | ||
"version": "2.58.0", | ||
"description": "Helper methods for using the Meticulous backend API", | ||
@@ -44,3 +44,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "78222a2650425ced6537f3077ad47199a1fa45c3" | ||
"gitHead": "326644a7d96790615fe2b61035c80220f95ef6fc" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13759
253