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/request-error.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.3
Choose a base ref
...
head repository: octokit/request-error.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.0.0
Choose a head ref

Commits on Jan 23, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 23, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    a75ad3a View commit details

Commits on Jan 30, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 30, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0e6e811 View commit details

Commits on Feb 6, 2023

  1. build(deps): lock file maintenance

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 6, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    74a8504 View commit details

Commits on Feb 9, 2023

  1. chore(deps): update dependency prettier to v2.8.4

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 9, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    584703b View commit details

Commits on Feb 13, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 13, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    31fe924 View commit details

Commits on Feb 20, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9b54564 View commit details

Commits on Feb 27, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 27, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    21fe4d8 View commit details
  2. ci(action): update actions/add-to-project action to v0.4.1 (#315)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 27, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4069d74 View commit details

Commits on Mar 6, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 6, 2023
    Copy the full SHA
    ad634c5 View commit details

Commits on Mar 17, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 17, 2023
    Copy the full SHA
    47d1519 View commit details
  2. chore(deps): update dependency typescript to v5 (#318)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 17, 2023
    Copy the full SHA
    a8087ff View commit details

Commits on Mar 20, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 20, 2023
    Copy the full SHA
    7984f8d View commit details

Commits on Mar 23, 2023

  1. chore(deps): update dependency prettier to v2.8.6 (#320)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 23, 2023
    Copy the full SHA
    2de88c9 View commit details

Commits on Mar 24, 2023

  1. chore(deps): update dependency prettier to v2.8.7 (#321)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 24, 2023
    Copy the full SHA
    c300115 View commit details

Commits on Mar 27, 2023

  1. build(deps): lock file maintenance

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 27, 2023
    Copy the full SHA
    8abdaee View commit details

Commits on Apr 3, 2023

  1. ci(action): update actions/add-to-project action to v0.5.0 (#324)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 3, 2023
    Copy the full SHA
    e36f5ea View commit details
  2. build(deps): lock file maintenance (#323)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 3, 2023
    Copy the full SHA
    527fcdd View commit details

Commits on Apr 10, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 10, 2023
    Copy the full SHA
    f0cb5dc View commit details

Commits on Apr 17, 2023

  1. build(deps): lock file maintenance

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 17, 2023
    Copy the full SHA
    d77ee22 View commit details

Commits on Apr 23, 2023

  1. chore(deps): update dependency prettier to v2.8.8

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 23, 2023
    Copy the full SHA
    6cd2523 View commit details

Commits on Apr 24, 2023

  1. build(deps): lock file maintenance

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 24, 2023
    Copy the full SHA
    3c6aeed View commit details

Commits on May 1, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored May 1, 2023
    Copy the full SHA
    e4fcf1b View commit details

Commits on May 8, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored May 8, 2023
    Copy the full SHA
    bb6b2dd View commit details

Commits on May 15, 2023

  1. build(deps): lock file maintenance

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored May 15, 2023
    Copy the full SHA
    6ef1970 View commit details

Commits on May 22, 2023

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

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored May 22, 2023
    Copy the full SHA
    dee67cf View commit details

Commits on May 26, 2023

  1. Copy the full SHA
    7e4f2c3 View commit details

Commits on May 27, 2023

  1. Copy the full SHA
    3d7fa5e View commit details

Commits on May 29, 2023

  1. build(deps): lock file maintenance

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored May 29, 2023
    Copy the full SHA
    5175112 View commit details

Commits on May 31, 2023

  1. ci: stop testing against NodeJS v14, v16 (#331)

    * build(package): set minimal node version in engines field to v18
    BREAKING CHANGE: Drop support for NodeJS v14, v16
    
    * ci: stop testing against NodeJS v14, v16
    
    * ci: stop testing against NodeJS v14, v16
    
    * ci: stop testing against NodeJS v14, v16
    
    * ci: stop testing against NodeJS v14, v16
    
    * ci: stop testing against NodeJS v14, v16
    
    ---------
    
    Co-authored-by: Keegan Campbell <me@kfcampbell.com>
    wolfy1339 and kfcampbell authored May 31, 2023
    Copy the full SHA
    dc68be2 View commit details
Showing with 2,103 additions and 1,899 deletions.
  1. +1 −1 .github/workflows/add_to_octokit_project.yml
  2. +1 −2 .github/workflows/test.yml
  3. +17 −0 README.md
  4. +2,080 −1,892 package-lock.json
  5. +4 −4 package.json
2 changes: 1 addition & 1 deletion .github/workflows/add_to_octokit_project.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/add-to-project@v0.4.0
- uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/octokit/projects/10
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -13,9 +13,8 @@ jobs:
strategy:
matrix:
node_version:
- 14
- 16
- 18
- 20
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -66,6 +66,23 @@ error.request; // { method, url, headers, body }
error.response; // { url, status, headers, data }
```

### Usage with Octokit

```js
try {
// your code here that sends at least one Octokit request
await octokit.request("GET /");
} catch (error) {
// Octokit errors always have a `error.status` property which is the http response code
if (error.status) {
// handle Octokit error
} else {
// handle all other errors
throw error;
}
}
```

## LICENSE

[MIT](LICENSE)
3,972 changes: 2,080 additions & 1,892 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -37,9 +37,9 @@
"@types/once": "^1.4.0",
"jest": "^29.0.0",
"pika-plugin-unpkg-field": "^1.1.0",
"prettier": "2.8.3",
"prettier": "2.8.8",
"ts-jest": "^29.0.0",
"typescript": "^4.0.0"
"typescript": "^5.0.0"
},
"jest": {
"preset": "ts-jest",
@@ -60,7 +60,7 @@
[
"@pika/plugin-build-node",
{
"minNodeVersion": "14"
"minNodeVersion": 18
}
],
[
@@ -91,6 +91,6 @@
]
},
"engines": {
"node": ">= 14"
"node": ">= 18"
}
}