@debugbundle/cli 1.30.0 → 1.30.1
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/main.cjs +14 -6
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -60064,7 +60064,7 @@ var GitHubDispatchDeliverySchema = external_exports.object({
|
|
|
60064
60064
|
created_at: external_exports.string()
|
|
60065
60065
|
}).strict();
|
|
60066
60066
|
var GitHubInstallationResponseSchema = external_exports.object({
|
|
60067
|
-
installation: GitHubInstallationSchema
|
|
60067
|
+
installation: GitHubInstallationSchema.nullable()
|
|
60068
60068
|
}).strict();
|
|
60069
60069
|
var GitHubRepositoriesResponseSchema = external_exports.object({
|
|
60070
60070
|
repositories: external_exports.array(GitHubRepositorySchema)
|
|
@@ -60072,6 +60072,9 @@ var GitHubRepositoriesResponseSchema = external_exports.object({
|
|
|
60072
60072
|
var ProjectGitHubRepoResponseSchema = external_exports.object({
|
|
60073
60073
|
repo: ProjectGitHubRepoSchema
|
|
60074
60074
|
}).strict();
|
|
60075
|
+
var GetProjectGitHubRepoResponseSchema = ProjectGitHubRepoResponseSchema.extend({
|
|
60076
|
+
repo: ProjectGitHubRepoSchema.nullable()
|
|
60077
|
+
});
|
|
60075
60078
|
var GitHubDispatchRulesResponseSchema = external_exports.object({
|
|
60076
60079
|
rules: external_exports.array(GitHubDispatchRuleSchema)
|
|
60077
60080
|
}).strict();
|
|
@@ -60125,12 +60128,12 @@ async function expectRepositories(responsePromise) {
|
|
|
60125
60128
|
}
|
|
60126
60129
|
return parsed.data.repositories;
|
|
60127
60130
|
}
|
|
60128
|
-
async function expectProjectRepo(responsePromise) {
|
|
60131
|
+
async function expectProjectRepo(responsePromise, schema) {
|
|
60129
60132
|
const response = await responsePromise;
|
|
60130
60133
|
if (response.status < 200 || response.status >= 300) {
|
|
60131
60134
|
parseApiError8(response.status, response.body);
|
|
60132
60135
|
}
|
|
60133
|
-
const parsed =
|
|
60136
|
+
const parsed = schema.safeParse(response.body);
|
|
60134
60137
|
if (!parsed.success) {
|
|
60135
60138
|
throw new GitHubManagementApiError(response.status, "invalid_response_shape");
|
|
60136
60139
|
}
|
|
@@ -60227,7 +60230,8 @@ function createGitHubManagementApi(client) {
|
|
|
60227
60230
|
method: "GET",
|
|
60228
60231
|
path: `/v1/projects/${input3.projectId}/github/repo`,
|
|
60229
60232
|
bearerToken: input3.bearerToken
|
|
60230
|
-
})
|
|
60233
|
+
}),
|
|
60234
|
+
GetProjectGitHubRepoResponseSchema
|
|
60231
60235
|
);
|
|
60232
60236
|
},
|
|
60233
60237
|
async listProjectDeliveries(input3) {
|
|
@@ -60326,7 +60330,8 @@ function createGitHubManagementApi(client) {
|
|
|
60326
60330
|
owner: input3.owner,
|
|
60327
60331
|
repo: input3.repo
|
|
60328
60332
|
}
|
|
60329
|
-
})
|
|
60333
|
+
}),
|
|
60334
|
+
ProjectGitHubRepoResponseSchema
|
|
60330
60335
|
);
|
|
60331
60336
|
},
|
|
60332
60337
|
async removeProjectRepo(input3) {
|
|
@@ -84277,6 +84282,9 @@ function mapErrorToExitCode9(error62) {
|
|
|
84277
84282
|
return 1;
|
|
84278
84283
|
}
|
|
84279
84284
|
function formatInstallation(installation) {
|
|
84285
|
+
if (installation === null) {
|
|
84286
|
+
return "No GitHub App installation connected.";
|
|
84287
|
+
}
|
|
84280
84288
|
return [
|
|
84281
84289
|
`GitHub installation: ${installation.account_login}`,
|
|
84282
84290
|
`Installation ID: ${installation.installation_id}`,
|
|
@@ -91104,7 +91112,7 @@ async function handleCaptureRuleCommand2(parsedArgv, dependencies) {
|
|
|
91104
91112
|
// package.json
|
|
91105
91113
|
var package_default = {
|
|
91106
91114
|
name: "@debugbundle/cli",
|
|
91107
|
-
version: "1.30.
|
|
91115
|
+
version: "1.30.1",
|
|
91108
91116
|
private: false,
|
|
91109
91117
|
description: "Command-line interface for DebugBundle",
|
|
91110
91118
|
license: "Apache-2.0",
|