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

@octokit/app

Package Overview
Dependencies
Maintainers
4
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 13.1.7 to 13.1.8

15

dist-node/index.js

@@ -27,10 +27,12 @@ "use strict";

module.exports = __toCommonJS(dist_src_exports);
var import_core = require("@octokit/core");
var import_core5 = require("@octokit/core");
var import_auth_app3 = require("@octokit/auth-app");
var import_oauth_app2 = require("@octokit/oauth-app");
var import_webhooks3 = require("@octokit/webhooks");
// pkg/dist-src/version.js
var VERSION = "13.1.7";
var VERSION = "13.1.8";
// pkg/dist-src/webhooks.js
var import_core = require("@octokit/core");
var import_auth_app = require("@octokit/auth-app");

@@ -85,5 +87,7 @@ var import_auth_unauthenticated = require("@octokit/auth-unauthenticated");

var import_plugin_paginate_rest = require("@octokit/plugin-paginate-rest");
var import_core3 = require("@octokit/core");
// pkg/dist-src/get-installation-octokit.js
var import_auth_app2 = require("@octokit/auth-app");
var import_core2 = require("@octokit/core");
async function getInstallationOctokit(app, installationId) {

@@ -140,2 +144,3 @@ return app.octokit.auth({

var import_plugin_paginate_rest2 = require("@octokit/plugin-paginate-rest");
var import_core4 = require("@octokit/core");
function eachRepositoryFactory(app) {

@@ -267,3 +272,3 @@ return Object.assign(eachRepository.bind(null, app), {

constructor(options) {
const Octokit = options.Octokit || import_core.Octokit;
const Octokit5 = options.Octokit || import_core5.Octokit;
const authOptions = Object.assign(

@@ -279,3 +284,3 @@ {

);
this.octokit = new Octokit({
this.octokit = new Octokit5({
authStrategy: import_auth_app3.createAppAuth,

@@ -309,3 +314,3 @@ auth: authOptions,

clientType: "github-app",
Octokit
Octokit: Octokit5
});

@@ -312,0 +317,0 @@ } else {

import { composePaginateRest } from "@octokit/plugin-paginate-rest";
import { Octokit } from "@octokit/core";
import { App } from "./index";
import { getInstallationOctokit } from "./get-installation-octokit";

@@ -3,0 +5,0 @@ function eachInstallationFactory(app) {

import { composePaginateRest } from "@octokit/plugin-paginate-rest";
import { Octokit } from "@octokit/core";
import { App } from "./index";
function eachRepositoryFactory(app) {

@@ -3,0 +5,0 @@ return Object.assign(eachRepository.bind(null, app), {

import { createAppAuth } from "@octokit/auth-app";
import { Octokit } from "@octokit/core";
import { App } from "./index";
async function getInstallationOctokit(app, installationId) {

@@ -3,0 +5,0 @@ return app.octokit.auth({

import { Octokit as OctokitCore } from "@octokit/core";
import { createAppAuth } from "@octokit/auth-app";
import { OAuthApp } from "@octokit/oauth-app";
import { Webhooks } from "@octokit/webhooks";
import { VERSION } from "./version";

@@ -5,0 +6,0 @@ import { webhooks } from "./webhooks";

import { createNodeMiddleware as oauthNodeMiddleware } from "@octokit/oauth-app";
import { createNodeMiddleware as webhooksNodeMiddleware } from "@octokit/webhooks";
import { App } from "../../index";
import { onUnhandledRequestDefault } from "./on-unhandled-request-default";

@@ -4,0 +5,0 @@ function noop() {

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

const VERSION = "13.1.7";
const VERSION = "13.1.8";
export {
VERSION
};

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

import { Octokit } from "@octokit/core";
import { createAppAuth } from "@octokit/auth-app";

@@ -2,0 +3,0 @@ import { createUnauthenticatedAuth } from "@octokit/auth-unauthenticated";

import { Octokit } from "@octokit/core";
import { App } from "./index";
import { EachInstallationFunction, EachInstallationInterface } from "./types";
import type { EachInstallationFunction, EachInstallationInterface } from "./types";
export declare function eachInstallationFactory(app: App): EachInstallationInterface<Octokit>;

@@ -5,0 +5,0 @@ export declare function eachInstallation(app: App, callback: EachInstallationFunction<Octokit>): Promise<void>;

import { Octokit } from "@octokit/core";
import { App } from "./index";
import { EachRepositoryFunction, EachRepositoryInterface, EachRepositoryQuery } from "./types";
import type { EachRepositoryFunction, EachRepositoryInterface, EachRepositoryQuery } from "./types";
export declare function eachRepositoryFactory(app: App): EachRepositoryInterface<Octokit>;

@@ -5,0 +5,0 @@ export declare function eachRepository(app: App, queryOrCallback: EachRepositoryQuery | EachRepositoryFunction<Octokit>, callback?: EachRepositoryFunction<Octokit>): Promise<void>;

import { Octokit as OctokitCore } from "@octokit/core";
import { OAuthApp } from "@octokit/oauth-app";
import { Webhooks } from "@octokit/webhooks";
import { Options, ConstructorOptions, EachInstallationInterface, EachRepositoryInterface, GetInstallationOctokitInterface } from "./types";
import type { Options, ConstructorOptions, EachInstallationInterface, EachRepositoryInterface, GetInstallationOctokitInterface } from "./types";
type Constructor<T> = new (...args: any[]) => T;

@@ -6,0 +6,0 @@ type OctokitType<TOptions extends Options> = TOptions["Octokit"] extends typeof OctokitCore ? InstanceType<TOptions["Octokit"]> : OctokitCore;

type IncomingMessage = any;
type ServerResponse = any;
import { App } from "../../index";
import { Options } from "../../types";
import type { Options } from "../../types";
export type MiddlewareOptions = {

@@ -6,0 +6,0 @@ pathPrefix?: string;

import { Octokit } from "@octokit/core";
import { Endpoints } from "@octokit/types";
import type { Endpoints } from "@octokit/types";
export type Options = {

@@ -4,0 +4,0 @@ appId?: number | string;

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

export declare const VERSION = "13.1.7";
export declare const VERSION = "13.1.8";
import { Octokit } from "@octokit/core";
import { Webhooks, EmitterWebhookEvent } from "@octokit/webhooks";
import { Options } from "./types";
import { Webhooks, type EmitterWebhookEvent } from "@octokit/webhooks";
import type { Options } from "./types";
export declare function webhooks(appOctokit: Octokit, options: Required<Options>["webhooks"]): Webhooks<EmitterWebhookEvent & {
octokit: Octokit;
}>;

@@ -5,7 +5,9 @@ // pkg/dist-src/index.js

import { OAuthApp } from "@octokit/oauth-app";
import { Webhooks as Webhooks2 } from "@octokit/webhooks";
// pkg/dist-src/version.js
var VERSION = "13.1.7";
var VERSION = "13.1.8";
// pkg/dist-src/webhooks.js
import { Octokit } from "@octokit/core";
import { createAppAuth } from "@octokit/auth-app";

@@ -60,5 +62,7 @@ import { createUnauthenticatedAuth } from "@octokit/auth-unauthenticated";

import { composePaginateRest } from "@octokit/plugin-paginate-rest";
import { Octokit as Octokit3 } from "@octokit/core";
// pkg/dist-src/get-installation-octokit.js
import { createAppAuth as createAppAuth2 } from "@octokit/auth-app";
import { Octokit as Octokit2 } from "@octokit/core";
async function getInstallationOctokit(app, installationId) {

@@ -115,2 +119,3 @@ return app.octokit.auth({

import { composePaginateRest as composePaginateRest2 } from "@octokit/plugin-paginate-rest";
import { Octokit as Octokit4 } from "@octokit/core";
function eachRepositoryFactory(app) {

@@ -242,3 +247,3 @@ return Object.assign(eachRepository.bind(null, app), {

constructor(options) {
const Octokit = options.Octokit || OctokitCore;
const Octokit5 = options.Octokit || OctokitCore;
const authOptions = Object.assign(

@@ -254,3 +259,3 @@ {

);
this.octokit = new Octokit({
this.octokit = new Octokit5({
authStrategy: createAppAuth3,

@@ -284,3 +289,3 @@ auth: authOptions,

clientType: "github-app",
Octokit
Octokit: Octokit5
});

@@ -287,0 +292,0 @@ } else {

@@ -6,3 +6,3 @@ {

},
"version": "13.1.7",
"version": "13.1.8",
"description": "GitHub Apps toolset for Node.js",

@@ -18,8 +18,8 @@ "main": "dist-node/index.js",

"@octokit/oauth-app": "^4.0.7",
"@octokit/plugin-paginate-rest": "^7.0.0",
"@octokit/types": "^10.0.0",
"@octokit/plugin-paginate-rest": "^6.0.0",
"@octokit/types": "^9.0.0",
"@octokit/webhooks": "^10.0.0"
},
"devDependencies": {
"@octokit/tsconfig": "^1.0.2",
"@octokit/tsconfig": "^2.0.0",
"@types/jest": "^29.0.0",

@@ -26,0 +26,0 @@ "@types/node": "^18.0.0",

Sorry, the diff of this file is not supported yet

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