This commit is contained in:
David Kale
2020-09-08 13:25:36 -04:00
parent e4246d2b5b
commit 91fcbb0108
4227 changed files with 416837 additions and 457884 deletions

View File

@@ -3,8 +3,7 @@
> Send parameterized requests to GitHubs APIs with sensible defaults in browsers and Node
[![@latest](https://img.shields.io/npm/v/@octokit/request.svg)](https://www.npmjs.com/package/@octokit/request)
[![Build Status](https://github.com/octokit/request.js/workflows/Test/badge.svg)](https://github.com/octokit/request.js/actions?query=workflow%3ATest)
[![Greenkeeper](https://badges.greenkeeper.io/octokit/request.js.svg)](https://greenkeeper.io/)
[![Build Status](https://github.com/octokit/request.js/workflows/Test/badge.svg)](https://github.com/octokit/request.js/actions?query=workflow%3ATest+branch%3Amaster)
`@octokit/request` is a request library for browsers & node that makes it easier
to interact with [GitHubs REST API](https://developer.github.com/v3/) and
@@ -159,7 +158,7 @@ const requestWithAuth = request.defaults({
authorization: "token 0000000000000000000000000000000000000001",
},
});
const result = await request("GET /user");
const result = await requestWithAuth("GET /user");
```
For more complex authentication strategies such as GitHub Apps or Basic, we recommend the according authentication library exported by [`@octokit/auth`](https://github.com/octokit/auth.js).

View File

@@ -10,7 +10,7 @@ var isPlainObject = _interopDefault(require('is-plain-object'));
var nodeFetch = _interopDefault(require('node-fetch'));
var requestError = require('@octokit/request-error');
const VERSION = "5.4.2";
const VERSION = "5.4.7";
function getBufferResponse(response) {
return response.arrayBuffer();

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
export const VERSION = "5.4.2";
export const VERSION = "5.4.7";

View File

@@ -1,6 +1,6 @@
import { EndpointInterface } from "@octokit/types";
export default function fetchWrapper(requestOptions: ReturnType<EndpointInterface> & {
redirect?: string;
redirect?: "error" | "follow" | "manual";
}): Promise<{
status: number;
url: string;

View File

@@ -1 +1 @@
export declare const VERSION = "5.4.2";
export declare const VERSION = "5.4.7";

View File

@@ -4,7 +4,7 @@ import isPlainObject from 'is-plain-object';
import nodeFetch from 'node-fetch';
import { RequestError } from '@octokit/request-error';
const VERSION = "5.4.2";
const VERSION = "5.4.7";
function getBufferResponse(response) {
return response.arrayBuffer();

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +1,8 @@
{
"_from": "@octokit/request@^5.3.0",
"_id": "@octokit/request@5.4.2",
"_id": "@octokit/request@5.4.7",
"_inBundle": false,
"_integrity": "sha512-zKdnGuQ2TQ2vFk9VU8awFT4+EYf92Z/v3OlzRaSh4RIP0H6cvW1BFPXq4XYvNez+TPQjqN+0uSkCYnMFFhcFrw==",
"_integrity": "sha512-FN22xUDP0i0uF38YMbOfx6TotpcENP5W8yJM1e/LieGXn6IoRxDMnBf7tx5RKSW4xuUZ/1P04NFZy5iY3Rax1A==",
"_location": "/@octokit/request",
"_phantomChildren": {},
"_requested": {
@@ -20,10 +20,10 @@
"/@octokit/graphql",
"/@octokit/rest"
],
"_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.2.tgz",
"_shasum": "74f8e5bbd39dc738a1b127629791f8ad1b3193ee",
"_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.7.tgz",
"_shasum": "fd703ee092e0463ceba49ff7a3e61cb4cf8a0fde",
"_spec": "@octokit/request@^5.3.0",
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler/node_modules/@octokit/graphql",
"_where": "/Users/dakale/dev/GitHub/actions/labeler/node_modules/@octokit/graphql",
"bugs": {
"url": "https://github.com/octokit/request.js/issues"
},
@@ -31,12 +31,12 @@
"dependencies": {
"@octokit/endpoint": "^6.0.1",
"@octokit/request-error": "^2.0.0",
"@octokit/types": "^2.11.1",
"@octokit/types": "^5.0.0",
"deprecation": "^2.0.0",
"is-plain-object": "^3.0.0",
"is-plain-object": "^4.0.0",
"node-fetch": "^2.3.0",
"once": "^1.4.0",
"universal-user-agent": "^5.0.0"
"universal-user-agent": "^6.0.0"
},
"deprecated": false,
"description": "Send parameterized requests to GitHubs APIs with sensible defaults in browsers and Node",
@@ -47,19 +47,19 @@
"@pika/plugin-build-web": "^0.9.0",
"@pika/plugin-ts-standard-pkg": "^0.9.0",
"@types/fetch-mock": "^7.2.4",
"@types/jest": "^25.1.0",
"@types/jest": "^26.0.0",
"@types/lolex": "^5.1.0",
"@types/node": "^13.1.0",
"@types/node": "^14.0.0",
"@types/node-fetch": "^2.3.3",
"@types/once": "^1.4.0",
"fetch-mock": "^9.3.1",
"jest": "^24.7.1",
"jest": "^26.0.1",
"lolex": "^6.0.0",
"prettier": "^2.0.1",
"semantic-release": "^17.0.0",
"semantic-release-plugin-update-version-in-files": "^1.0.0",
"ts-jest": "^25.1.0",
"typescript": "^3.4.5"
"ts-jest": "^26.1.0",
"typescript": "^3.9.5"
},
"files": [
"dist-*/",
@@ -87,5 +87,5 @@
"sideEffects": false,
"source": "dist-src/index.js",
"types": "dist-types/index.d.ts",
"version": "5.4.2"
"version": "5.4.7"
}