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

@octokit/plugin-enterprise-rest

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/plugin-enterprise-rest - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

84

ghe-2.13/enterprise-admin.json

@@ -270,2 +270,26 @@ {

"params": {
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/admin/pre-receive-hooks/:pre_receive_hook_id"
},
"getPreReceiveHookForOrg": {
"method": "GET",
"params": {
"org": {
"required": true,
"type": "string"
},
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks/:pre_receive_hook_id"
},
"getPreReceiveHookForRepo": {
"method": "GET",
"params": {
"owner": {

@@ -326,2 +350,30 @@ "required": true,

"params": {
"page": {
"type": "integer"
},
"per_page": {
"type": "integer"
}
},
"url": "/admin/pre-receive-hooks"
},
"listPreReceiveHooksForOrg": {
"method": "GET",
"params": {
"org": {
"required": true,
"type": "string"
},
"page": {
"type": "integer"
},
"per_page": {
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks"
},
"listPreReceiveHooksForRepo": {
"method": "GET",
"params": {
"owner": {

@@ -397,5 +449,19 @@ "required": true,

},
"removeEnforcementOverridesForPreReceiveHook": {
"removeEnforcementOverridesForPreReceiveHookForOrg": {
"method": "DELETE",
"params": {
"org": {
"required": true,
"type": "string"
},
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks/:pre_receive_hook_id"
},
"removeEnforcementOverridesForPreReceiveHookForRepo": {
"method": "DELETE",
"params": {
"owner": {

@@ -600,5 +666,19 @@ "required": true,

},
"updatePreReceiveHookEnforcement": {
"updatePreReceiveHookEnforcementForOrg": {
"method": "PATCH",
"params": {
"org": {
"required": true,
"type": "string"
},
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks/:pre_receive_hook_id"
},
"updatePreReceiveHookEnforcementForRepo": {
"method": "PATCH",
"params": {
"owner": {

@@ -605,0 +685,0 @@ "required": true,

18

ghe-2.13/README.md

@@ -26,7 +26,11 @@ # @octokit/plugin-enterprise-rest/ghe-2.13

octokit.enterpriseAdmin.getPreReceiveEnvironmentDownloadStatus(downloaded_at, message, pre_receive_environment_id, state)
octokit.enterpriseAdmin.getPreReceiveHook(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.getPreReceiveHook(pre_receive_hook_id)
octokit.enterpriseAdmin.getPreReceiveHookForOrg(org, pre_receive_hook_id)
octokit.enterpriseAdmin.getPreReceiveHookForRepo(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.getTypeStats(type)
octokit.enterpriseAdmin.listGlobalHooks(page, per_page)
octokit.enterpriseAdmin.listPreReceiveEnvironments(page, per_page)
octokit.enterpriseAdmin.listPreReceiveHooks(owner, page, per_page, repo)
octokit.enterpriseAdmin.listPreReceiveHooks(page, per_page)
octokit.enterpriseAdmin.listPreReceiveHooksForOrg(org, page, per_page)
octokit.enterpriseAdmin.listPreReceiveHooksForRepo(owner, page, per_page, repo)
octokit.enterpriseAdmin.modifySettings(settings)

@@ -37,3 +41,4 @@ octokit.enterpriseAdmin.pingGlobalHook(hook_id)

octokit.enterpriseAdmin.removeAuthorizedSshKey(authorized_key)
octokit.enterpriseAdmin.removeEnforcementOverridesForPreReceiveHook(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.removeEnforcementOverridesForPreReceiveHookForOrg(org, pre_receive_hook_id)
octokit.enterpriseAdmin.removeEnforcementOverridesForPreReceiveHookForRepo(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.renameOrg(login, org)

@@ -54,3 +59,4 @@ octokit.enterpriseAdmin.renameUser(login, username)

octokit.enterpriseAdmin.updatePreReceiveHook(pre_receive_hook_id)
octokit.enterpriseAdmin.updatePreReceiveHookEnforcement(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.updatePreReceiveHookEnforcementForOrg(org, pre_receive_hook_id)
octokit.enterpriseAdmin.updatePreReceiveHookEnforcementForRepo(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.upgradeLicense(license)

@@ -198,2 +204,3 @@ octokit.enterpriseAdmin.uploadLicenseForFirstTime(license, password, settings)

octokit.oauthAuthorizations.getOrCreateAuthorizationForApp(client_id, client_secret, fingerprint, note, note_url, scopes)
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint(client_id, client_secret, fingerprint, note, note_url, scopes)
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint(client_id, client_secret, fingerprint, note, note_url, scopes)

@@ -412,5 +419,6 @@ octokit.oauthAuthorizations.listAuthorizations(page, per_page)

octokit.search.commits(order, page, per_page, q, sort)
octokit.search.issues(order, page, per_page, q, sort)
octokit.search.issuesAndPullRequests(order, page, per_page, q, sort)
octokit.search.labels(order, q, repository_id, sort)
octokit.search.repos(order, page, per_page, q, sort)
octokit.search.searchIssues(order, page, per_page, q, sort)
octokit.search.topics(q)

@@ -417,0 +425,0 @@ octokit.search.users(order, page, per_page, q, sort)

@@ -270,2 +270,26 @@ {

"params": {
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/admin/pre-receive-hooks/:pre_receive_hook_id"
},
"getPreReceiveHookForOrg": {
"method": "GET",
"params": {
"org": {
"required": true,
"type": "string"
},
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks/:pre_receive_hook_id"
},
"getPreReceiveHookForRepo": {
"method": "GET",
"params": {
"owner": {

@@ -326,2 +350,30 @@ "required": true,

"params": {
"page": {
"type": "integer"
},
"per_page": {
"type": "integer"
}
},
"url": "/admin/pre-receive-hooks"
},
"listPreReceiveHooksForOrg": {
"method": "GET",
"params": {
"org": {
"required": true,
"type": "string"
},
"page": {
"type": "integer"
},
"per_page": {
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks"
},
"listPreReceiveHooksForRepo": {
"method": "GET",
"params": {
"owner": {

@@ -397,5 +449,19 @@ "required": true,

},
"removeEnforcementOverridesForPreReceiveHook": {
"removeEnforcementOverridesForPreReceiveHookForOrg": {
"method": "DELETE",
"params": {
"org": {
"required": true,
"type": "string"
},
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks/:pre_receive_hook_id"
},
"removeEnforcementOverridesForPreReceiveHookForRepo": {
"method": "DELETE",
"params": {
"owner": {

@@ -606,5 +672,19 @@ "required": true,

},
"updatePreReceiveHookEnforcement": {
"updatePreReceiveHookEnforcementForOrg": {
"method": "PATCH",
"params": {
"org": {
"required": true,
"type": "string"
},
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks/:pre_receive_hook_id"
},
"updatePreReceiveHookEnforcementForRepo": {
"method": "PATCH",
"params": {
"owner": {

@@ -611,0 +691,0 @@ "required": true,

@@ -26,7 +26,11 @@ # @octokit/plugin-enterprise-rest/ghe-2.14

octokit.enterpriseAdmin.getPreReceiveEnvironmentDownloadStatus(downloaded_at, message, pre_receive_environment_id, state)
octokit.enterpriseAdmin.getPreReceiveHook(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.getPreReceiveHook(pre_receive_hook_id)
octokit.enterpriseAdmin.getPreReceiveHookForOrg(org, pre_receive_hook_id)
octokit.enterpriseAdmin.getPreReceiveHookForRepo(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.getTypeStats(type)
octokit.enterpriseAdmin.listGlobalHooks(page, per_page)
octokit.enterpriseAdmin.listPreReceiveEnvironments(page, per_page)
octokit.enterpriseAdmin.listPreReceiveHooks(owner, page, per_page, repo)
octokit.enterpriseAdmin.listPreReceiveHooks(page, per_page)
octokit.enterpriseAdmin.listPreReceiveHooksForOrg(org, page, per_page)
octokit.enterpriseAdmin.listPreReceiveHooksForRepo(owner, page, per_page, repo)
octokit.enterpriseAdmin.modifySettings(settings)

@@ -37,3 +41,4 @@ octokit.enterpriseAdmin.pingGlobalHook(hook_id)

octokit.enterpriseAdmin.removeAuthorizedSshKey(authorized_key)
octokit.enterpriseAdmin.removeEnforcementOverridesForPreReceiveHook(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.removeEnforcementOverridesForPreReceiveHookForOrg(org, pre_receive_hook_id)
octokit.enterpriseAdmin.removeEnforcementOverridesForPreReceiveHookForRepo(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.renameOrg(login, org)

@@ -54,3 +59,4 @@ octokit.enterpriseAdmin.renameUser(login, username)

octokit.enterpriseAdmin.updatePreReceiveHook(pre_receive_hook_id)
octokit.enterpriseAdmin.updatePreReceiveHookEnforcement(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.updatePreReceiveHookEnforcementForOrg(org, pre_receive_hook_id)
octokit.enterpriseAdmin.updatePreReceiveHookEnforcementForRepo(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.upgradeLicense(license)

@@ -209,2 +215,3 @@ octokit.enterpriseAdmin.uploadLicenseForFirstTime(license, password, settings)

octokit.oauthAuthorizations.getOrCreateAuthorizationForApp(client_id, client_secret, fingerprint, note, note_url, scopes)
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint(client_id, client_secret, fingerprint, note, note_url, scopes)
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint(client_id, client_secret, fingerprint, note, note_url, scopes)

@@ -431,5 +438,6 @@ octokit.oauthAuthorizations.listAuthorizations(page, per_page)

octokit.search.commits(order, page, per_page, q, sort)
octokit.search.issues(order, page, per_page, q, sort)
octokit.search.issuesAndPullRequests(order, page, per_page, q, sort)
octokit.search.labels(order, q, repository_id, sort)
octokit.search.repos(order, page, per_page, q, sort)
octokit.search.searchIssues(order, page, per_page, q, sort)
octokit.search.topics(q)

@@ -436,0 +444,0 @@ octokit.search.users(order, page, per_page, q, sort)

@@ -270,2 +270,26 @@ {

"params": {
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/admin/pre-receive-hooks/:pre_receive_hook_id"
},
"getPreReceiveHookForOrg": {
"method": "GET",
"params": {
"org": {
"required": true,
"type": "string"
},
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks/:pre_receive_hook_id"
},
"getPreReceiveHookForRepo": {
"method": "GET",
"params": {
"owner": {

@@ -326,2 +350,30 @@ "required": true,

"params": {
"page": {
"type": "integer"
},
"per_page": {
"type": "integer"
}
},
"url": "/admin/pre-receive-hooks"
},
"listPreReceiveHooksForOrg": {
"method": "GET",
"params": {
"org": {
"required": true,
"type": "string"
},
"page": {
"type": "integer"
},
"per_page": {
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks"
},
"listPreReceiveHooksForRepo": {
"method": "GET",
"params": {
"owner": {

@@ -397,5 +449,19 @@ "required": true,

},
"removeEnforcementOverridesForPreReceiveHook": {
"removeEnforcementOverridesForPreReceiveHookForOrg": {
"method": "DELETE",
"params": {
"org": {
"required": true,
"type": "string"
},
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks/:pre_receive_hook_id"
},
"removeEnforcementOverridesForPreReceiveHookForRepo": {
"method": "DELETE",
"params": {
"owner": {

@@ -606,5 +672,19 @@ "required": true,

},
"updatePreReceiveHookEnforcement": {
"updatePreReceiveHookEnforcementForOrg": {
"method": "PATCH",
"params": {
"org": {
"required": true,
"type": "string"
},
"pre_receive_hook_id": {
"required": true,
"type": "integer"
}
},
"url": "/orgs/:org/pre-receive-hooks/:pre_receive_hook_id"
},
"updatePreReceiveHookEnforcementForRepo": {
"method": "PATCH",
"params": {
"owner": {

@@ -611,0 +691,0 @@ "required": true,

@@ -26,7 +26,11 @@ # @octokit/plugin-enterprise-rest/ghe-2.15

octokit.enterpriseAdmin.getPreReceiveEnvironmentDownloadStatus(downloaded_at, message, pre_receive_environment_id, state)
octokit.enterpriseAdmin.getPreReceiveHook(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.getPreReceiveHook(pre_receive_hook_id)
octokit.enterpriseAdmin.getPreReceiveHookForOrg(org, pre_receive_hook_id)
octokit.enterpriseAdmin.getPreReceiveHookForRepo(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.getTypeStats(type)
octokit.enterpriseAdmin.listGlobalHooks(page, per_page)
octokit.enterpriseAdmin.listPreReceiveEnvironments(page, per_page)
octokit.enterpriseAdmin.listPreReceiveHooks(owner, page, per_page, repo)
octokit.enterpriseAdmin.listPreReceiveHooks(page, per_page)
octokit.enterpriseAdmin.listPreReceiveHooksForOrg(org, page, per_page)
octokit.enterpriseAdmin.listPreReceiveHooksForRepo(owner, page, per_page, repo)
octokit.enterpriseAdmin.modifySettings(settings)

@@ -37,3 +41,4 @@ octokit.enterpriseAdmin.pingGlobalHook(hook_id)

octokit.enterpriseAdmin.removeAuthorizedSshKey(authorized_key)
octokit.enterpriseAdmin.removeEnforcementOverridesForPreReceiveHook(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.removeEnforcementOverridesForPreReceiveHookForOrg(org, pre_receive_hook_id)
octokit.enterpriseAdmin.removeEnforcementOverridesForPreReceiveHookForRepo(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.renameOrg(login, org)

@@ -54,3 +59,4 @@ octokit.enterpriseAdmin.renameUser(login, username)

octokit.enterpriseAdmin.updatePreReceiveHook(pre_receive_hook_id)
octokit.enterpriseAdmin.updatePreReceiveHookEnforcement(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.updatePreReceiveHookEnforcementForOrg(org, pre_receive_hook_id)
octokit.enterpriseAdmin.updatePreReceiveHookEnforcementForRepo(owner, pre_receive_hook_id, repo)
octokit.enterpriseAdmin.upgradeLicense(license)

@@ -209,2 +215,3 @@ octokit.enterpriseAdmin.uploadLicenseForFirstTime(license, password, settings)

octokit.oauthAuthorizations.getOrCreateAuthorizationForApp(client_id, client_secret, fingerprint, note, note_url, scopes)
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint(client_id, client_secret, fingerprint, note, note_url, scopes)
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint(client_id, client_secret, fingerprint, note, note_url, scopes)

@@ -432,5 +439,6 @@ octokit.oauthAuthorizations.listAuthorizations(page, per_page)

octokit.search.commits(order, page, per_page, q, sort)
octokit.search.issues(order, page, per_page, q, sort)
octokit.search.issuesAndPullRequests(order, page, per_page, q, sort)
octokit.search.labels(order, q, repository_id, sort)
octokit.search.repos(order, page, per_page, q, sort)
octokit.search.searchIssues(order, page, per_page, q, sort)
octokit.search.topics(q)

@@ -437,0 +445,0 @@ octokit.search.users(order, page, per_page, q, sort)

{
"name": "@octokit/plugin-enterprise-rest",
"version": "2.0.0",
"version": "2.0.1",
"publishConfig": {

@@ -38,3 +38,3 @@ "access": "public",

"devDependencies": {
"@octokit/routes": "17.0.0",
"@octokit/routes": "18.1.0",
"coveralls": "^3.0.2",

@@ -41,0 +41,0 @@ "lodash.camelcase": "^4.3.0",

@@ -15,3 +15,3 @@ # plugin-enterprise-rest.js

const Octokit = require('@octokit/rest')
.plugin(require('@octokit/enterprise-rest/v2.15'))
.plugin(require('@octokit/plugin-enterprise-rest/ghe-2.15'))
const octokit = new Octokit({

@@ -30,3 +30,3 @@ baseUrl: 'https://github.acme-inc.com/api/v3'

const Octokit = require('@octokit/rest')
.plugin(require('@octokit/enterprise-rest/v2.15/all'))
.plugin(require('@octokit/plugin-enterprise-rest/ghe-2.15/all'))
const octokit = new Octokit({

@@ -33,0 +33,0 @@ baseUrl: 'https://github.acme-inc.com/api/v3'

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

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

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

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