@octokit/core
Advanced tools
Comparing version 3.5.1 to 3.6.0
@@ -47,3 +47,3 @@ 'use strict'; | ||
const VERSION = "3.5.1"; | ||
const VERSION = "3.6.0"; | ||
@@ -50,0 +50,0 @@ const _excluded = ["authStrategy"]; |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "3.5.1"; | ||
export const VERSION = "3.6.0"; |
@@ -5,3 +5,3 @@ import * as OctokitTypes from "@octokit/types"; | ||
export declare type RequestParameters = OctokitTypes.RequestParameters; | ||
export declare type OctokitOptions = { | ||
export interface OctokitOptions { | ||
authStrategy?: any; | ||
@@ -21,3 +21,3 @@ auth?: any; | ||
[option: string]: any; | ||
}; | ||
} | ||
export declare type Constructor<T> = new (...args: any[]) => T; | ||
@@ -24,0 +24,0 @@ export declare type ReturnTypeOf<T extends AnyFunction | AnyFunction[]> = T extends AnyFunction ? ReturnType<T> : T extends AnyFunction[] ? UnionToIntersection<Exclude<ReturnType<T[number]>, void>> : never; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "3.5.1"; | ||
export declare const VERSION = "3.6.0"; |
@@ -7,3 +7,3 @@ import { getUserAgent } from 'universal-user-agent'; | ||
const VERSION = "3.5.1"; | ||
const VERSION = "3.6.0"; | ||
@@ -10,0 +10,0 @@ class Octokit { |
{ | ||
"name": "@octokit/core", | ||
"description": "Extendable client for GitHub's REST & GraphQL APIs", | ||
"version": "3.5.1", | ||
"version": "3.6.0", | ||
"license": "MIT", | ||
@@ -23,3 +23,3 @@ "files": [ | ||
"@octokit/graphql": "^4.5.8", | ||
"@octokit/request": "^5.6.0", | ||
"@octokit/request": "^5.6.3", | ||
"@octokit/request-error": "^2.0.5", | ||
@@ -37,13 +37,12 @@ "@octokit/types": "^6.0.3", | ||
"@types/fetch-mock": "^7.3.1", | ||
"@types/jest": "^26.0.0", | ||
"@types/jest": "^27.0.0", | ||
"@types/lolex": "^5.1.0", | ||
"@types/node": "^14.0.4", | ||
"@types/node-fetch": "^2.5.0", | ||
"fetch-mock": "^9.0.0", | ||
"http-proxy-agent": "^4.0.1", | ||
"http-proxy-agent": "^5.0.0", | ||
"jest": "^27.0.0", | ||
"lolex": "^6.0.0", | ||
"prettier": "2.3.1", | ||
"prettier": "2.4.1", | ||
"proxy": "^1.0.1", | ||
"semantic-release": "^17.0.0", | ||
"semantic-release": "^18.0.0", | ||
"semantic-release-plugin-update-version-in-files": "^1.0.0", | ||
@@ -50,0 +49,0 @@ "ts-jest": "^27.0.0", |
@@ -426,7 +426,15 @@ # core.js | ||
const MyActionOctokit = Octokit.plugin( | ||
require("@octokit/plugin-paginate-rest"), | ||
require("@octokit/plugin-throttling"), | ||
require("@octokit/plugin-retry") | ||
require("@octokit/plugin-paginate-rest").paginateRest, | ||
require("@octokit/plugin-throttling").throttling, | ||
require("@octokit/plugin-retry").retry | ||
).defaults({ | ||
authStrategy: require("@octokit/auth-action"), | ||
throttle: { | ||
onAbuseLimit: (retryAfter, options) => { | ||
/* ... */ | ||
}, | ||
onRateLimit: (retryAfter, options) => { | ||
/* ... */ | ||
}, | ||
}, | ||
authStrategy: require("@octokit/auth-action").createActionAuth, | ||
userAgent: `my-octokit-action/v1.2.3`, | ||
@@ -433,0 +441,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52129
19
449
Updated@octokit/request@^5.6.3