@octokit/request-error
Advanced tools
Comparing version 1.2.1 to 2.0.0
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
17699
14
1