Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/plugin-rest-endpoint-methods

Package Overview
Dependencies
Maintainers
3
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/plugin-rest-endpoint-methods - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

141

dist-node/index.js

@@ -74,4 +74,8 @@ 'use strict';

}],
checkAccountIsAssociatedWithAny: ["GET /marketplace_listing/accounts/{account_id}"],
checkAccountIsAssociatedWithAnyStubbed: ["GET /marketplace_listing/stubbed/accounts/{account_id}"],
checkAccountIsAssociatedWithAny: ["GET /marketplace_listing/accounts/{account_id}", {}, {
renamed: ["apps", "getSubscriptionPlanForAccount"]
}],
checkAccountIsAssociatedWithAnyStubbed: ["GET /marketplace_listing/stubbed/accounts/{account_id}", {}, {
renamed: ["apps", "getSubscriptionPlanForAccountStubbed"]
}],
checkToken: ["POST /applications/{client_id}/token", {

@@ -137,2 +141,4 @@ mediaType: {

}],
getSubscriptionPlanForAccount: ["GET /marketplace_listing/accounts/{account_id}"],
getSubscriptionPlanForAccountStubbed: ["GET /marketplace_listing/stubbed/accounts/{account_id}"],
getUserInstallation: ["GET /users/{username}/installation", {

@@ -143,4 +149,10 @@ mediaType: {

}],
listAccountsUserOrOrgOnPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
listAccountsUserOrOrgOnPlanStubbed: ["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
listAccountsForPlanStubbed: ["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],
listAccountsUserOrOrgOnPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts", {}, {
renamed: ["apps", "listAccountsForPlan"]
}],
listAccountsUserOrOrgOnPlanStubbed: ["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts", {}, {
renamed: ["apps", "listAccountsForPlanStubbed"]
}],
listInstallationReposForAuthenticatedUser: ["GET /user/installations/{installation_id}/repositories", {

@@ -161,4 +173,8 @@ mediaType: {

}],
listMarketplacePurchasesForAuthenticatedUser: ["GET /user/marketplace_purchases"],
listMarketplacePurchasesForAuthenticatedUserStubbed: ["GET /user/marketplace_purchases/stubbed"],
listMarketplacePurchasesForAuthenticatedUser: ["GET /user/marketplace_purchases", {}, {
renamed: ["apps", "listSubscriptionsForAuthenticatedUser"]
}],
listMarketplacePurchasesForAuthenticatedUserStubbed: ["GET /user/marketplace_purchases/stubbed", {}, {
renamed: ["apps", "listSubscriptionsForAuthenticatedUserStubbed"]
}],
listPlans: ["GET /marketplace_listing/plans"],

@@ -171,2 +187,4 @@ listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],

}],
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
listSubscriptionsForAuthenticatedUserStubbed: ["GET /user/marketplace_purchases/stubbed"],
removeRepoFromInstallation: ["DELETE /user/installations/{installation_id}/repositories/{repository_id}", {

@@ -246,2 +264,7 @@ mediaType: {

codesOfConduct: {
getAllCodesOfConduct: ["GET /codes_of_conduct", {
mediaType: {
previews: ["scarlet-witch"]
}
}],
getConductCode: ["GET /codes_of_conduct/{key}", {

@@ -261,2 +284,4 @@ mediaType: {

}
}, {
renamed: ["codesOfConduct", "getAllCodesOfConduct"]
}]

@@ -280,5 +305,8 @@ },

listCommits: ["GET /gists/{gist_id}/commits"],
listForUser: ["GET /users/{username}/gists"],
listForks: ["GET /gists/{gist_id}/forks"],
listPublic: ["GET /gists/public"],
listPublicForUser: ["GET /users/{username}/gists"],
listPublicForUser: ["GET /users/{username}/gists", {}, {
renamed: ["gists", "listForUser"]
}],
listStarred: ["GET /gists/starred"],

@@ -376,6 +404,12 @@ star: ["PUT /gists/{gist_id}/star"],

lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
removeAllLabels: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],
removeAssignees: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],
removeLabel: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],
removeLabels: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],
replaceLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
removeLabels: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels", {}, {
renamed: ["issues", "removeAllLabels"]
}],
replaceAllLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
replaceLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels", {}, {
renamed: ["issues", "replaceAllLabels"]
}],
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],

@@ -714,3 +748,42 @@ update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],

}
}, {
renamed: ["reactions", "deleteLegacy"]
}],
deleteForCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}", {
mediaType: {
previews: ["squirrel-girl"]
}
}],
deleteForIssue: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", {
mediaType: {
previews: ["squirrel-girl"]
}
}],
deleteForIssueComment: ["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}", {
mediaType: {
previews: ["squirrel-girl"]
}
}],
deleteForPullRequestComment: ["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}", {
mediaType: {
previews: ["squirrel-girl"]
}
}],
deleteForTeamDiscussion: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}", {
mediaType: {
previews: ["squirrel-girl"]
}
}],
deleteForTeamDiscussionComment: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}", {
mediaType: {
previews: ["squirrel-girl"]
}
}],
deleteLegacy: ["DELETE /reactions/{reaction_id}", {
mediaType: {
previews: ["squirrel-girl"]
}
}, {
deprecated: "octokit.reactions.deleteLegacy() is deprecated, see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy"
}],
listForCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions", {

@@ -833,2 +906,7 @@ mediaType: {

get: ["GET /repos/{owner}/{repo}"],
getAllTopics: ["GET /repos/{owner}/{repo}/topics", {
mediaType: {
previews: ["mercy"]
}
}],
getAppsWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],

@@ -876,3 +954,5 @@ getArchiveLink: ["GET /repos/{owner}/{repo}/{archive_format}/{ref}"],

getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
list: ["GET /user/repos"],
list: ["GET /user/repos", {}, {
renamed: ["repos", "listForAuthenticatedUser"]
}],
listAssetsForRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],

@@ -894,2 +974,3 @@ listBranches: ["GET /repos/{owner}/{repo}/branches"],

listDownloads: ["GET /repos/{owner}/{repo}/downloads"],
listForAuthenticatedUser: ["GET /user/repos"],
listForOrg: ["GET /orgs/{org}/repos"],

@@ -918,2 +999,4 @@ listForUser: ["GET /users/{username}/repos"],

}
}, {
renamed: ["repos", "getAllTopics"]
}],

@@ -946,2 +1029,7 @@ merge: ["POST /repos/{owner}/{repo}/merges"],

}],
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics", {
mediaType: {
previews: ["mercy"]
}
}],
replaceProtectedBranchAppRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, {

@@ -963,2 +1051,4 @@ mapToData: "apps"

}
}, {
renamed: ["repos", "replaceAllTopics"]
}],

@@ -1060,5 +1150,8 @@ requestPageBuild: ["POST /repos/{owner}/{repo}/pages/builds"],

listEmails: ["GET /user/emails"],
listFollowedByAuthenticated: ["GET /user/following"],
listFollowersForAuthenticatedUser: ["GET /user/followers"],
listFollowersForUser: ["GET /users/{username}/followers"],
listFollowingForAuthenticatedUser: ["GET /user/following"],
listFollowingForAuthenticatedUser: ["GET /user/following", {}, {
renamed: ["users", "listFollowedByAuthenticated"]
}],
listFollowingForUser: ["GET /users/{username}/following"],

@@ -1077,3 +1170,3 @@ listGpgKeys: ["GET /user/gpg_keys"],

const VERSION = "3.2.0";
const VERSION = "3.3.0";

@@ -1117,4 +1210,2 @@ function endpointsToMethods(octokit, endpointsMap) {

/* istanbul ignore else */
if (decorations.mapToData) {

@@ -1128,11 +1219,12 @@ options = Object.assign({}, options, {

// below for future reference
// if (decorations.renamed) {
// const [newScope, newMethodName] = decorations.renamed;
// octokit.log.warn(
// `octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
// );
// }
// if (decorations.deprecated) {
// octokit.log.warn(decorations.deprecated);
// }
if (decorations.renamed) {
const [newScope, newMethodName] = decorations.renamed;
octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`);
}
if (decorations.deprecated) {
octokit.log.warn(decorations.deprecated);
} // There currently are no renamed parameters
// if (decorations.renamedParameters) {

@@ -1157,4 +1249,5 @@ // // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488

// @ts-ignore https://github.com/microsoft/TypeScript/issues/25488
// return requestWithDefaults(...args);
return requestWithDefaults(...args);
}

@@ -1161,0 +1254,0 @@

20

dist-src/endpoints-to-methods.js

@@ -27,3 +27,2 @@ export function endpointsToMethods(octokit, endpointsMap) {

// There are currently no other decorations than `.mapToData`
/* istanbul ignore else */
if (decorations.mapToData) {

@@ -38,11 +37,10 @@ options = Object.assign({}, options, {

// below for future reference
// if (decorations.renamed) {
// const [newScope, newMethodName] = decorations.renamed;
// octokit.log.warn(
// `octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
// );
// }
// if (decorations.deprecated) {
// octokit.log.warn(decorations.deprecated);
// }
if (decorations.renamed) {
const [newScope, newMethodName] = decorations.renamed;
octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`);
}
if (decorations.deprecated) {
octokit.log.warn(decorations.deprecated);
}
// There currently are no renamed parameters
// if (decorations.renamedParameters) {

@@ -67,5 +65,5 @@ // // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488

// @ts-ignore https://github.com/microsoft/TypeScript/issues/25488
// return requestWithDefaults(...args);
return requestWithDefaults(...args);
}
return Object.assign(withDecorations, requestWithDefaults);
}

@@ -108,6 +108,10 @@ const Endpoints = {

checkAccountIsAssociatedWithAny: [
"GET /marketplace_listing/accounts/{account_id}"
"GET /marketplace_listing/accounts/{account_id}",
{},
{ renamed: ["apps", "getSubscriptionPlanForAccount"] }
],
checkAccountIsAssociatedWithAnyStubbed: [
"GET /marketplace_listing/stubbed/accounts/{account_id}"
"GET /marketplace_listing/stubbed/accounts/{account_id}",
{},
{ renamed: ["apps", "getSubscriptionPlanForAccountStubbed"] }
],

@@ -162,2 +166,8 @@ checkToken: [

],
getSubscriptionPlanForAccount: [
"GET /marketplace_listing/accounts/{account_id}"
],
getSubscriptionPlanForAccountStubbed: [
"GET /marketplace_listing/stubbed/accounts/{account_id}"
],
getUserInstallation: [

@@ -167,7 +177,15 @@ "GET /users/{username}/installation",

],
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
listAccountsForPlanStubbed: [
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
],
listAccountsUserOrOrgOnPlan: [
"GET /marketplace_listing/plans/{plan_id}/accounts"
"GET /marketplace_listing/plans/{plan_id}/accounts",
{},
{ renamed: ["apps", "listAccountsForPlan"] }
],
listAccountsUserOrOrgOnPlanStubbed: [
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
{},
{ renamed: ["apps", "listAccountsForPlanStubbed"] }
],

@@ -187,6 +205,10 @@ listInstallationReposForAuthenticatedUser: [

listMarketplacePurchasesForAuthenticatedUser: [
"GET /user/marketplace_purchases"
"GET /user/marketplace_purchases",
{},
{ renamed: ["apps", "listSubscriptionsForAuthenticatedUser"] }
],
listMarketplacePurchasesForAuthenticatedUserStubbed: [
"GET /user/marketplace_purchases/stubbed"
"GET /user/marketplace_purchases/stubbed",
{},
{ renamed: ["apps", "listSubscriptionsForAuthenticatedUserStubbed"] }
],

@@ -199,2 +221,6 @@ listPlans: ["GET /marketplace_listing/plans"],

],
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
listSubscriptionsForAuthenticatedUserStubbed: [
"GET /user/marketplace_purchases/stubbed"
],
removeRepoFromInstallation: [

@@ -260,2 +286,6 @@ "DELETE /user/installations/{installation_id}/repositories/{repository_id}",

codesOfConduct: {
getAllCodesOfConduct: [
"GET /codes_of_conduct",
{ mediaType: { previews: ["scarlet-witch"] } }
],
getConductCode: [

@@ -271,3 +301,4 @@ "GET /codes_of_conduct/{key}",

"GET /codes_of_conduct",
{ mediaType: { previews: ["scarlet-witch"] } }
{ mediaType: { previews: ["scarlet-witch"] } },
{ renamed: ["codesOfConduct", "getAllCodesOfConduct"] }
]

@@ -289,5 +320,10 @@ },

listCommits: ["GET /gists/{gist_id}/commits"],
listForUser: ["GET /users/{username}/gists"],
listForks: ["GET /gists/{gist_id}/forks"],
listPublic: ["GET /gists/public"],
listPublicForUser: ["GET /users/{username}/gists"],
listPublicForUser: [
"GET /users/{username}/gists",
{},
{ renamed: ["gists", "listForUser"] }
],
listStarred: ["GET /gists/starred"],

@@ -390,2 +426,5 @@ star: ["PUT /gists/{gist_id}/star"],

lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
removeAllLabels: [
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
],
removeAssignees: [

@@ -397,4 +436,15 @@ "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"

],
removeLabels: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],
replaceLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
removeLabels: [
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels",
{},
{ renamed: ["issues", "removeAllLabels"] }
],
replaceAllLabels: [
"PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"
],
replaceLabels: [
"PUT /repos/{owner}/{repo}/issues/{issue_number}/labels",
{},
{ renamed: ["issues", "replaceAllLabels"] }
],
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],

@@ -707,4 +757,36 @@ update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],

"DELETE /reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } },
{ renamed: ["reactions", "deleteLegacy"] }
],
deleteForCommitComment: [
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForIssue: [
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForIssueComment: [
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForPullRequestComment: [
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForTeamDiscussion: [
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForTeamDiscussionComment: [
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteLegacy: [
"DELETE /reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } },
{
deprecated: "octokit.reactions.deleteLegacy() is deprecated, see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy"
}
],
listForCommitComment: [

@@ -832,2 +914,6 @@ "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",

get: ["GET /repos/{owner}/{repo}"],
getAllTopics: [
"GET /repos/{owner}/{repo}/topics",
{ mediaType: { previews: ["mercy"] } }
],
getAppsWithAccessToProtectedBranch: [

@@ -894,3 +980,7 @@ "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"

getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
list: ["GET /user/repos"],
list: [
"GET /user/repos",
{},
{ renamed: ["repos", "listForAuthenticatedUser"] }
],
listAssetsForRelease: [

@@ -917,2 +1007,3 @@ "GET /repos/{owner}/{repo}/releases/{release_id}/assets"

listDownloads: ["GET /repos/{owner}/{repo}/downloads"],
listForAuthenticatedUser: ["GET /user/repos"],
listForOrg: ["GET /orgs/{org}/repos"],

@@ -940,3 +1031,4 @@ listForUser: ["GET /users/{username}/repos"],

"GET /repos/{owner}/{repo}/topics",
{ mediaType: { previews: ["mercy"] } }
{ mediaType: { previews: ["mercy"] } },
{ renamed: ["repos", "getAllTopics"] }
],

@@ -988,2 +1080,6 @@ merge: ["POST /repos/{owner}/{repo}/merges"],

],
replaceAllTopics: [
"PUT /repos/{owner}/{repo}/topics",
{ mediaType: { previews: ["mercy"] } }
],
replaceProtectedBranchAppRestrictions: [

@@ -1011,3 +1107,4 @@ "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",

"PUT /repos/{owner}/{repo}/topics",
{ mediaType: { previews: ["mercy"] } }
{ mediaType: { previews: ["mercy"] } },
{ renamed: ["repos", "replaceAllTopics"] }
],

@@ -1147,5 +1244,10 @@ requestPageBuild: ["POST /repos/{owner}/{repo}/pages/builds"],

listEmails: ["GET /user/emails"],
listFollowedByAuthenticated: ["GET /user/following"],
listFollowersForAuthenticatedUser: ["GET /user/followers"],
listFollowersForUser: ["GET /users/{username}/followers"],
listFollowingForAuthenticatedUser: ["GET /user/following"],
listFollowingForAuthenticatedUser: [
"GET /user/following",
{},
{ renamed: ["users", "listFollowedByAuthenticated"] }
],
listFollowingForUser: ["GET /users/{username}/following"],

@@ -1152,0 +1254,0 @@ listGpgKeys: ["GET /user/gpg_keys"],

@@ -1,1 +0,1 @@

export const VERSION = "3.2.0";
export const VERSION = "3.3.0";

@@ -1,1 +0,1 @@

export declare const VERSION = "3.2.0";
export declare const VERSION = "3.3.0";

@@ -108,6 +108,10 @@ const Endpoints = {

checkAccountIsAssociatedWithAny: [
"GET /marketplace_listing/accounts/{account_id}"
"GET /marketplace_listing/accounts/{account_id}",
{},
{ renamed: ["apps", "getSubscriptionPlanForAccount"] }
],
checkAccountIsAssociatedWithAnyStubbed: [
"GET /marketplace_listing/stubbed/accounts/{account_id}"
"GET /marketplace_listing/stubbed/accounts/{account_id}",
{},
{ renamed: ["apps", "getSubscriptionPlanForAccountStubbed"] }
],

@@ -162,2 +166,8 @@ checkToken: [

],
getSubscriptionPlanForAccount: [
"GET /marketplace_listing/accounts/{account_id}"
],
getSubscriptionPlanForAccountStubbed: [
"GET /marketplace_listing/stubbed/accounts/{account_id}"
],
getUserInstallation: [

@@ -167,7 +177,15 @@ "GET /users/{username}/installation",

],
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
listAccountsForPlanStubbed: [
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
],
listAccountsUserOrOrgOnPlan: [
"GET /marketplace_listing/plans/{plan_id}/accounts"
"GET /marketplace_listing/plans/{plan_id}/accounts",
{},
{ renamed: ["apps", "listAccountsForPlan"] }
],
listAccountsUserOrOrgOnPlanStubbed: [
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
{},
{ renamed: ["apps", "listAccountsForPlanStubbed"] }
],

@@ -187,6 +205,10 @@ listInstallationReposForAuthenticatedUser: [

listMarketplacePurchasesForAuthenticatedUser: [
"GET /user/marketplace_purchases"
"GET /user/marketplace_purchases",
{},
{ renamed: ["apps", "listSubscriptionsForAuthenticatedUser"] }
],
listMarketplacePurchasesForAuthenticatedUserStubbed: [
"GET /user/marketplace_purchases/stubbed"
"GET /user/marketplace_purchases/stubbed",
{},
{ renamed: ["apps", "listSubscriptionsForAuthenticatedUserStubbed"] }
],

@@ -199,2 +221,6 @@ listPlans: ["GET /marketplace_listing/plans"],

],
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
listSubscriptionsForAuthenticatedUserStubbed: [
"GET /user/marketplace_purchases/stubbed"
],
removeRepoFromInstallation: [

@@ -260,2 +286,6 @@ "DELETE /user/installations/{installation_id}/repositories/{repository_id}",

codesOfConduct: {
getAllCodesOfConduct: [
"GET /codes_of_conduct",
{ mediaType: { previews: ["scarlet-witch"] } }
],
getConductCode: [

@@ -271,3 +301,4 @@ "GET /codes_of_conduct/{key}",

"GET /codes_of_conduct",
{ mediaType: { previews: ["scarlet-witch"] } }
{ mediaType: { previews: ["scarlet-witch"] } },
{ renamed: ["codesOfConduct", "getAllCodesOfConduct"] }
]

@@ -289,5 +320,10 @@ },

listCommits: ["GET /gists/{gist_id}/commits"],
listForUser: ["GET /users/{username}/gists"],
listForks: ["GET /gists/{gist_id}/forks"],
listPublic: ["GET /gists/public"],
listPublicForUser: ["GET /users/{username}/gists"],
listPublicForUser: [
"GET /users/{username}/gists",
{},
{ renamed: ["gists", "listForUser"] }
],
listStarred: ["GET /gists/starred"],

@@ -390,2 +426,5 @@ star: ["PUT /gists/{gist_id}/star"],

lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
removeAllLabels: [
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
],
removeAssignees: [

@@ -397,4 +436,15 @@ "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"

],
removeLabels: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],
replaceLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
removeLabels: [
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels",
{},
{ renamed: ["issues", "removeAllLabels"] }
],
replaceAllLabels: [
"PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"
],
replaceLabels: [
"PUT /repos/{owner}/{repo}/issues/{issue_number}/labels",
{},
{ renamed: ["issues", "replaceAllLabels"] }
],
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],

@@ -707,4 +757,36 @@ update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],

"DELETE /reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } },
{ renamed: ["reactions", "deleteLegacy"] }
],
deleteForCommitComment: [
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForIssue: [
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForIssueComment: [
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForPullRequestComment: [
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForTeamDiscussion: [
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteForTeamDiscussionComment: [
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } }
],
deleteLegacy: [
"DELETE /reactions/{reaction_id}",
{ mediaType: { previews: ["squirrel-girl"] } },
{
deprecated: "octokit.reactions.deleteLegacy() is deprecated, see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy"
}
],
listForCommitComment: [

@@ -832,2 +914,6 @@ "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",

get: ["GET /repos/{owner}/{repo}"],
getAllTopics: [
"GET /repos/{owner}/{repo}/topics",
{ mediaType: { previews: ["mercy"] } }
],
getAppsWithAccessToProtectedBranch: [

@@ -894,3 +980,7 @@ "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"

getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
list: ["GET /user/repos"],
list: [
"GET /user/repos",
{},
{ renamed: ["repos", "listForAuthenticatedUser"] }
],
listAssetsForRelease: [

@@ -917,2 +1007,3 @@ "GET /repos/{owner}/{repo}/releases/{release_id}/assets"

listDownloads: ["GET /repos/{owner}/{repo}/downloads"],
listForAuthenticatedUser: ["GET /user/repos"],
listForOrg: ["GET /orgs/{org}/repos"],

@@ -940,3 +1031,4 @@ listForUser: ["GET /users/{username}/repos"],

"GET /repos/{owner}/{repo}/topics",
{ mediaType: { previews: ["mercy"] } }
{ mediaType: { previews: ["mercy"] } },
{ renamed: ["repos", "getAllTopics"] }
],

@@ -988,2 +1080,6 @@ merge: ["POST /repos/{owner}/{repo}/merges"],

],
replaceAllTopics: [
"PUT /repos/{owner}/{repo}/topics",
{ mediaType: { previews: ["mercy"] } }
],
replaceProtectedBranchAppRestrictions: [

@@ -1011,3 +1107,4 @@ "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",

"PUT /repos/{owner}/{repo}/topics",
{ mediaType: { previews: ["mercy"] } }
{ mediaType: { previews: ["mercy"] } },
{ renamed: ["repos", "replaceAllTopics"] }
],

@@ -1147,5 +1244,10 @@ requestPageBuild: ["POST /repos/{owner}/{repo}/pages/builds"],

listEmails: ["GET /user/emails"],
listFollowedByAuthenticated: ["GET /user/following"],
listFollowersForAuthenticatedUser: ["GET /user/followers"],
listFollowersForUser: ["GET /users/{username}/followers"],
listFollowingForAuthenticatedUser: ["GET /user/following"],
listFollowingForAuthenticatedUser: [
"GET /user/following",
{},
{ renamed: ["users", "listFollowedByAuthenticated"] }
],
listFollowingForUser: ["GET /users/{username}/following"],

@@ -1164,3 +1266,3 @@ listGpgKeys: ["GET /user/gpg_keys"],

const VERSION = "3.2.0";
const VERSION = "3.3.0";

@@ -1193,3 +1295,2 @@ function endpointsToMethods(octokit, endpointsMap) {

// There are currently no other decorations than `.mapToData`
/* istanbul ignore else */
if (decorations.mapToData) {

@@ -1204,11 +1305,10 @@ options = Object.assign({}, options, {

// below for future reference
// if (decorations.renamed) {
// const [newScope, newMethodName] = decorations.renamed;
// octokit.log.warn(
// `octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
// );
// }
// if (decorations.deprecated) {
// octokit.log.warn(decorations.deprecated);
// }
if (decorations.renamed) {
const [newScope, newMethodName] = decorations.renamed;
octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`);
}
if (decorations.deprecated) {
octokit.log.warn(decorations.deprecated);
}
// There currently are no renamed parameters
// if (decorations.renamedParameters) {

@@ -1233,3 +1333,3 @@ // // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488

// @ts-ignore https://github.com/microsoft/TypeScript/issues/25488
// return requestWithDefaults(...args);
return requestWithDefaults(...args);
}

@@ -1236,0 +1336,0 @@ return Object.assign(withDecorations, requestWithDefaults);

{
"name": "@octokit/plugin-rest-endpoint-methods",
"description": "Octokit plugin adding one method for all of api.github.com REST API endpoints",
"version": "3.2.0",
"version": "3.3.0",
"license": "MIT",

@@ -34,3 +34,3 @@ "files": [

"@types/node": "^13.1.0",
"fetch-mock": "^8.0.0",
"fetch-mock": "^9.0.0",
"fs-extra": "^8.1.0",

@@ -37,0 +37,0 @@ "jest": "^25.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc