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

@octokit/request-error

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/request-error - npm Package Compare versions

Comparing version 1.2.1 to 2.0.0

4

dist-src/index.js

@@ -21,3 +21,3 @@ import { Deprecation } from "deprecation";

return statusCode;
}
},
});

@@ -29,3 +29,3 @@ this.headers = options.headers || {};

requestCopy.headers = Object.assign({}, options.request.headers, {
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]"),
});

@@ -32,0 +32,0 @@ }

@@ -22,3 +22,3 @@ import { Deprecation } from 'deprecation';

return statusCode;
}
},
});

@@ -30,3 +30,3 @@ this.headers = options.headers || {};

requestCopy.headers = Object.assign({}, options.request.headers, {
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]"),
});

@@ -33,0 +33,0 @@ }

{
"name": "@octokit/request-error",
"description": "Error class for Octokit request errors",
"version": "1.2.1",
"version": "2.0.0",
"license": "MIT",

@@ -33,14 +33,14 @@ "files": [

"@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.8.1",
"@pika/plugin-build-web": "^0.8.1",
"@pika/plugin-bundle-web": "^0.8.1",
"@pika/plugin-ts-standard-pkg": "^0.8.1",
"@pika/plugin-build-node": "^0.9.0",
"@pika/plugin-build-web": "^0.9.0",
"@pika/plugin-bundle-web": "^0.9.0",
"@pika/plugin-ts-standard-pkg": "^0.9.0",
"@types/jest": "^25.1.0",
"@types/node": "^13.1.0",
"@types/once": "^1.4.0",
"jest": "^24.7.1",
"jest": "^25.1.0",
"pika-plugin-unpkg-field": "^1.1.0",
"prettier": "^1.17.0",
"prettier": "^2.0.1",
"semantic-release": "^17.0.0",
"ts-jest": "^24.0.2",
"ts-jest": "^25.1.0",
"typescript": "^3.4.5"

@@ -47,0 +47,0 @@ },

@@ -6,3 +6,3 @@ # http-error.js

[![@latest](https://img.shields.io/npm/v/@octokit/request-error.svg)](https://www.npmjs.com/package/@octokit/request-error)
[![Build Status](https://travis-ci.com/octokit/request-error.js.svg?branch=master)](https://travis-ci.com/octokit/request-error.js)
[![Build Status](https://github.com/octokit/request-error.js/workflows/Test/badge.svg)](https://github.com/octokit/request-error.js/actions?query=workflow%3ATest)
[![Greenkeeper](https://badges.greenkeeper.io/octokit/request-error.js.svg)](https://greenkeeper.io/)

@@ -44,3 +44,3 @@

headers: {
"x-github-request-id": "1:2:3:4"
"x-github-request-id": "1:2:3:4",
}, // response headers

@@ -51,8 +51,8 @@ request: {

body: {
bar: "baz"
bar: "baz",
},
headers: {
authorization: "token secret123"
}
}
authorization: "token secret123",
},
},
});

@@ -59,0 +59,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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