Skip to content

Commit

Permalink
feat: package is not ESM
Browse files Browse the repository at this point in the history
BREAKING CHANGE: package is now ESM
  • Loading branch information
wolfy1339 committed Feb 25, 2024
1 parent 9e4dfee commit 42b16ce
Show file tree
Hide file tree
Showing 11 changed files with 251 additions and 164 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Node
Install with `npm install @octokit/auth-oauth-user`

```js
const { createOAuthUserAuth } = require("@octokit/auth-oauth-user");
import { createOAuthUserAuth } from "@octokit/auth-oauth-user";
```

</td></tr>
Expand Down Expand Up @@ -167,8 +167,8 @@ Node
Install with `npm install @octokit/core @octokit/auth-oauth-user`. Optionally replace `@octokit/core` with a compatible module

```js
const { Octokit } = require("@octokit/core");
const { createOAuthUserAuth } = require("@octokit/auth-oauth-user");
import { Octokit } from "@octokit/core";
import { createOAuthUserAuth } from "@octokit/auth-oauth-user";
```

</td></tr>
Expand Down Expand Up @@ -297,7 +297,7 @@ The <code>redirect_uri</code> parameter you provided in [Step 1 of GitHub's OAut
You can pass in your own <a href="https://github.com/octokit/request.js"><code>@octokit/request</code></a> instance. For usage with enterprise, set <code>baseUrl</code> to the API root endpoint. Example:

```js
const { request } = require("@octokit/request");
import { request } from "@octokit/request";
createOAuthAppAuth({
clientId: "1234567890abcdef1234",
clientSecret: "1234567890abcdef1234567890abcdef12345678",
Expand Down Expand Up @@ -401,7 +401,7 @@ const auth = createOAuthUserAuth({
You can pass in your own <a href="https://github.com/octokit/request.js"><code>@octokit/request</code></a> instance. For usage with enterprise, set <code>baseUrl</code> to the API root endpoint. Example:

```js
const { request } = require("@octokit/request");
import { request } from "@octokit/request";
createOAuthAppAuth({
clientId: "1234567890abcdef1234",
clientSecret: "1234567890abcdef1234567890abcdef12345678",
Expand Down
Loading

0 comments on commit 42b16ce

Please sign in to comment.