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

@octokit/app

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/app - npm Package Compare versions

Comparing version 11.3.1 to 11.4.0

2

dist-node/index.js

@@ -190,3 +190,3 @@ 'use strict';

const VERSION = "11.3.1";
const VERSION = "11.4.0";

@@ -193,0 +193,0 @@ function webhooks(appOctokit, options // Explict return type for better debugability and performance,

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

export const VERSION = "11.3.1";
export const VERSION = "11.4.0";
import { Octokit as OctokitCore } from "@octokit/core";
import { OAuthApp } from "@octokit/oauth-app";
import { Webhooks } from "@octokit/webhooks";
import { Options, EachInstallationInterface, EachRepositoryInterface, GetInstallationOctokitInterface } from "./types";
import { Options, ConstructorOptions, EachInstallationInterface, EachRepositoryInterface, GetInstallationOctokitInterface } from "./types";
declare type Constructor<T> = new (...args: any[]) => T;
declare type OctokitType<O extends Options> = O["Octokit"] extends typeof OctokitCore ? InstanceType<O["Octokit"]> : OctokitCore;
declare type OctokitClassType<O extends Options> = O["Octokit"] extends typeof OctokitCore ? O["Octokit"] : typeof OctokitCore;
export declare class App<O extends Options = Options> {
declare type OctokitType<TOptions extends Options> = TOptions["Octokit"] extends typeof OctokitCore ? InstanceType<TOptions["Octokit"]> : OctokitCore;
declare type OctokitClassType<TOptions extends Options> = TOptions["Octokit"] extends typeof OctokitCore ? TOptions["Octokit"] : typeof OctokitCore;
export declare class App<TOptions extends Options = Options> {
static VERSION: string;
static defaults<S extends Constructor<any>>(this: S, defaults: Partial<Options>): S;
octokit: OctokitCore;
static defaults<TDefaults extends Options, S extends Constructor<App<TDefaults>>>(this: S, defaults: Partial<TDefaults>): {
new (...args: any[]): {
octokit: OctokitType<TDefaults>;
webhooks: Webhooks<{
octokit: OctokitType<TDefaults>;
}>;
oauth: OAuthApp<"github-app", OctokitClassType<TDefaults>>;
getInstallationOctokit: GetInstallationOctokitInterface<OctokitType<TDefaults>>;
eachInstallation: EachInstallationInterface<OctokitType<TDefaults>>;
eachRepository: EachRepositoryInterface<OctokitType<TDefaults>>;
log: {
[key: string]: unknown;
debug: (message: string, additionalInfo?: object | undefined) => void;
info: (message: string, additionalInfo?: object | undefined) => void;
warn: (message: string, additionalInfo?: object | undefined) => void;
error: (message: string, additionalInfo?: object | undefined) => void;
};
};
} & S;
octokit: OctokitType<TOptions>;
webhooks: Webhooks<{
octokit: OctokitType<O>;
octokit: OctokitType<TOptions>;
}>;
oauth: OAuthApp<"github-app", OctokitClassType<O>>;
getInstallationOctokit: GetInstallationOctokitInterface<OctokitType<O>>;
eachInstallation: EachInstallationInterface<OctokitType<O>>;
eachRepository: EachRepositoryInterface<OctokitType<O>>;
oauth: OAuthApp<"github-app", OctokitClassType<TOptions>>;
getInstallationOctokit: GetInstallationOctokitInterface<OctokitType<TOptions>>;
eachInstallation: EachInstallationInterface<OctokitType<TOptions>>;
eachRepository: EachRepositoryInterface<OctokitType<TOptions>>;
log: {

@@ -26,4 +44,4 @@ debug: (message: string, additionalInfo?: object) => void;

};
constructor(options: O);
constructor(options: ConstructorOptions<TOptions>);
}
export { createNodeMiddleware } from "./middleware/node/index";
import { Octokit } from "@octokit/core";
import { Endpoints } from "@octokit/types";
export declare type Options = {
appId: number | string;
privateKey: string;
appId?: number | string;
privateKey?: string;
webhooks?: {

@@ -22,2 +22,6 @@ secret: string;

};
export declare type ConstructorOptions<TOptions extends Options> = TOptions & {
appId: number | string;
privateKey: string;
};
export declare type InstallationFunctionOptions<O> = {

@@ -24,0 +28,0 @@ octokit: O;

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

export declare const VERSION = "11.3.1";
export declare const VERSION = "11.4.0";
{
"name": "@octokit/app",
"description": "GitHub Apps toolset for Node.js",
"version": "11.3.1",
"version": "11.4.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

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