Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/request

Package Overview
Dependencies
Maintainers
3
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/request - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

5

lib/http-error.js

@@ -0,1 +1,4 @@

const Deprecation = require('deprecation')
const logOnce = require('once')(deprecation => console.warn(deprecation))
module.exports = class HttpError extends Error {

@@ -15,3 +18,3 @@ constructor (message, statusCode, headers, request) {

get () {
console.warn('`error.code` is deprecated, use `error.status`.')
logOnce(new Deprecation('[@octokit/request] `error.code` is deprecated, use `error.status`.'))
return statusCode

@@ -18,0 +21,0 @@ }

4

package.json
{
"name": "@octokit/request",
"version": "2.4.0",
"version": "2.4.1",
"publishConfig": {

@@ -40,4 +40,6 @@ "access": "public"

"@octokit/endpoint": "^3.1.1",
"deprecation": "^1.0.1",
"is-plain-object": "^2.0.4",
"node-fetch": "^2.3.0",
"once": "^1.4.0",
"universal-user-agent": "^2.0.1"

@@ -44,0 +46,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc