Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: octokit/plugin-throttling.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.0.1
Choose a base ref
...
head repository: octokit/plugin-throttling.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.0.2
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Feb 27, 2024

  1. build(deps): lock file maintenance (#680)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 27, 2024
    Copy the full SHA
    dbc2d38 View commit details
  2. fix(README): update examples for ESM (#679)

    wolfy1339 authored Feb 27, 2024
    Copy the full SHA
    0551690 View commit details
Showing with 139 additions and 139 deletions.
  1. +5 −5 README.md
  2. +134 −134 package-lock.json
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -34,8 +34,8 @@ Install with `npm install @octokit/core @octokit/plugin-throttling`. Optionally
**Note**: If you use it with `@octokit/rest` v16, install `@octokit/core` as a devDependency. This is only temporary and will no longer be necessary with `@octokit/rest` v17.

```js
const { Octokit } = require("@octokit/core");
const { throttling } = require("@octokit/plugin-throttling");
import { Octokit } from "@octokit/core";
import { throttling } from "@octokit/plugin-throttling";
```

</td></tr>
@@ -107,8 +107,8 @@ npm install --save ioredis
Then in your application:

```js
const Bottleneck = require("bottleneck");
const Redis = require("redis");
import Bottleneck from "bottleneck";
import Redis from "redis";

const client = Redis.createClient({
/* options */
@@ -145,7 +145,7 @@ await connection.disconnect();
To use the `ioredis` library instead:

```js
const Redis = require("ioredis");
import Redis from "ioredis";
const client = new Redis({
/* options */
});
Loading