Socket
Socket
Sign inDemoInstall

@octokit/plugin-rest-endpoint-methods

Package Overview
Dependencies
Maintainers
3
Versions
200
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 2.1.3 to 3.0.0-beta.1

dist-src/endpoints-to-methods.js

16

dist-src/index.js

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

import endpointsByScope from "./generated/endpoints";
import ENDPOINTS from "./generated/endpoints";
import { VERSION } from "./version";
import { registerEndpoints } from "./register-endpoints";
import { endpointsToMethods } from "./endpoints-to-methods";
/**

@@ -15,14 +15,4 @@ * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary

export function restEndpointMethods(octokit) {
// @ts-ignore
octokit.registerEndpoints = registerEndpoints.bind(null, octokit);
// Aliasing scopes for backward compatibility
// See https://github.com/octokit/rest.js/pull/1134
// @ts-ignore
registerEndpoints(octokit, Object.assign(endpointsByScope, {
gitdata: endpointsByScope.git,
authorization: endpointsByScope.oauthAuthorizations,
pullRequests: endpointsByScope.pulls
}));
return {};
return endpointsToMethods(octokit, ENDPOINTS);
}
restEndpointMethods.VERSION = VERSION;

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

export const VERSION = "2.1.3";
export const VERSION = "3.0.0-beta.1";

@@ -1,4 +0,15 @@

import { RestEndpointMethods } from "./generated/rest-endpoint-methods-types";
export declare type Api = {
registerEndpoints: (endpoints: any) => void;
} & RestEndpointMethods;
import { Route, RequestParameters } from "@octokit/types";
import { RestEndpointMethods } from "./generated/types";
export declare type Api = RestEndpointMethods;
export declare type EndpointDecorations = {
deprecated?: string;
renamed?: [string, string];
renamedParameters?: {
[name: string]: string;
};
};
export declare type EndpointsDefaultsAndDecorations = {
[scope: string]: {
[methodName: string]: [Route, RequestParameters?, EndpointDecorations?];
};
};

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

export declare const VERSION = "2.1.3";
export declare const VERSION = "3.0.0-beta.1";
{
"name": "@octokit/plugin-rest-endpoint-methods",
"description": "Octokit plugin adding one method for all of api.github.com REST API endpoints",
"version": "2.1.3",
"version": "3.0.0-beta.1",
"license": "MIT",

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

"fetch-mock": "^8.0.0",
"jest": "^24.9.0",
"jest": "^25.1.0",
"lodash.camelcase": "^4.3.0",

@@ -38,0 +38,0 @@ "lodash.set": "^4.3.2",

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

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 too big to display

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

Sorry, the diff of this file is not supported yet

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