Fix dependency incompatibilities
This commit is contained in:
parent
40a500c743
commit
c1f49580cf
749 changed files with 372856 additions and 91172 deletions
16
node_modules/@octokit/core/README.md
generated
vendored
16
node_modules/@octokit/core/README.md
generated
vendored
|
|
@ -3,7 +3,7 @@
|
|||
> Extendable client for GitHub's REST & GraphQL APIs
|
||||
|
||||
[](https://www.npmjs.com/package/@octokit/core)
|
||||
[](https://github.com/octokit/core.js/actions?query=workflow%3ATest+branch%3Amain)
|
||||
[](https://github.com/octokit/core.js/actions?query=workflow%3ATest+branch%3Amaster)
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
|
|
@ -32,11 +32,11 @@ If you don't need the Plugin API then using [`@octokit/request`](https://github.
|
|||
<tr><th>
|
||||
Browsers
|
||||
</th><td width=100%>
|
||||
Load <code>@octokit/core</code> directly from <a href="https://esm.sh">esm.sh</a>
|
||||
|
||||
Load <code>@octokit/core</code> directly from <a href="https://cdn.skypack.dev">cdn.skypack.dev</a>
|
||||
|
||||
```html
|
||||
<script type="module">
|
||||
import { Octokit } from "https://esm.sh/@octokit/core";
|
||||
import { Octokit } from "https://cdn.skypack.dev/@octokit/core";
|
||||
</script>
|
||||
```
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ const response = await octokit.graphql(
|
|||
}
|
||||
}
|
||||
}`,
|
||||
{ login: "octokit" },
|
||||
{ login: "octokit" }
|
||||
);
|
||||
```
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ octokit.request("POST /repos/{owner}/{repo}/pulls", {
|
|||
owner,
|
||||
repo,
|
||||
title: "My pull request",
|
||||
base: "main",
|
||||
base: "master",
|
||||
head: "my-feature",
|
||||
draft: true,
|
||||
});
|
||||
|
|
@ -271,7 +271,7 @@ If you need a deep or conditional merge, you can pass a function instead.
|
|||
```js
|
||||
const MyOctokit = Octokit.defaults((options) => {
|
||||
return {
|
||||
foo: Object.assign({}, options.foo, { opt1: 1 }),
|
||||
foo: Object.assign({}, options.foo, { opt2: 1 }),
|
||||
};
|
||||
});
|
||||
const octokit = new MyOctokit({
|
||||
|
|
@ -425,7 +425,7 @@ const { Octokit } = require("@octokit/core");
|
|||
const MyActionOctokit = Octokit.plugin(
|
||||
require("@octokit/plugin-paginate-rest").paginateRest,
|
||||
require("@octokit/plugin-throttling").throttling,
|
||||
require("@octokit/plugin-retry").retry,
|
||||
require("@octokit/plugin-retry").retry
|
||||
).defaults({
|
||||
throttle: {
|
||||
onAbuseLimit: (retryAfter, options) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue