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

@@ -4,22 +4,22 @@
[![@latest](https://img.shields.io/npm/v/@octokit/endpoint.svg)](https://www.npmjs.com/package/@octokit/endpoint)
![Build Status](https://github.com/octokit/endpoint.js/workflows/Test/badge.svg)
[![Greenkeeper](https://badges.greenkeeper.io/octokit/endpoint.js.svg)](https://greenkeeper.io/)
`@octokit/endpoint` combines [GitHub REST API routes](https://developer.github.com/v3/) with your parameters and turns them into generic request options that can be used in any request library.
<!-- update table of contents by running `npx markdown-toc README.md -i` -->
<!-- toc -->
- [Usage](#usage)
- [API](#api)
- [endpoint()](#endpointroute-options-or-endpointoptions)
- [endpoint.defaults()](#endpointdefaults)
- [endpoint.DEFAULTS](#endpointdefaults-1)
- [endpoint.merge()](#endpointmergeroute-options-or-endpointmergeoptions)
- [endpoint.parse()](#endpointparse)
- [`endpoint(route, options)` or `endpoint(options)`](#endpointroute-options-or-endpointoptions)
- [`endpoint.defaults()`](#endpointdefaults)
- [`endpoint.DEFAULTS`](#endpointdefaults)
- [`endpoint.merge(route, options)` or `endpoint.merge(options)`](#endpointmergeroute-options-or-endpointmergeoptions)
- [`endpoint.parse()`](#endpointparse)
- [Special cases](#special-cases)
- [The `data` parameter set request body directly](#the-data-parameter--set-request-body-directly)
- [The `data` parameter set request body directly](#the-data-parameter-%E2%80%93-set-request-body-directly)
- [Set parameters for both the URL/query and the request body](#set-parameters-for-both-the-urlquery-and-the-request-body)
- [LICENSE](#license)

View File

@@ -355,7 +355,7 @@ function withDefaults(oldDefaults, newDefaults) {
});
}
const VERSION = "6.0.1";
const VERSION = "6.0.5";
const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
// So we use RequestParameters and add method as additional required property.

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
export const VERSION = "6.0.1";
export const VERSION = "6.0.5";

View File

@@ -1 +1 @@
export declare const VERSION = "6.0.1";
export declare const VERSION = "6.0.5";

View File

@@ -345,7 +345,7 @@ function withDefaults(oldDefaults, newDefaults) {
});
}
const VERSION = "6.0.1";
const VERSION = "6.0.5";
const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
// DEFAULTS has all properties set that EndpointOptions has, except url.

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +1,8 @@
{
"_from": "@octokit/endpoint@^6.0.1",
"_id": "@octokit/endpoint@6.0.1",
"_id": "@octokit/endpoint@6.0.5",
"_inBundle": false,
"_integrity": "sha512-pOPHaSz57SFT/m3R5P8MUu4wLPszokn5pXcB/pzavLTQf2jbU+6iayTvzaY6/BiotuRS0qyEUkx3QglT4U958A==",
"_integrity": "sha512-70K5u6zd45ItOny6aHQAsea8HHQjlQq85yqOMe+Aj8dkhN2qSJ9T+Q3YjUjEYfPRBcuUWNgMn62DQnP/4LAIiQ==",
"_location": "/@octokit/endpoint",
"_phantomChildren": {},
"_requested": {
@@ -19,18 +19,18 @@
"_requiredBy": [
"/@octokit/request"
],
"_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.1.tgz",
"_shasum": "16d5c0e7a83e3a644d1ddbe8cded6c3d038d31d7",
"_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.5.tgz",
"_shasum": "43a6adee813c5ffd2f719e20cfd14a1fee7c193a",
"_spec": "@octokit/endpoint@^6.0.1",
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler/node_modules/@octokit/request",
"_where": "/Users/dakale/dev/GitHub/actions/labeler/node_modules/@octokit/request",
"bugs": {
"url": "https://github.com/octokit/endpoint.js/issues"
},
"bundleDependencies": false,
"dependencies": {
"@octokit/types": "^2.11.1",
"is-plain-object": "^3.0.0",
"universal-user-agent": "^5.0.0"
"@octokit/types": "^5.0.0",
"is-plain-object": "^4.0.0",
"universal-user-agent": "^6.0.0"
},
"deprecated": false,
"description": "Turns REST API endpoints into generic request options",
@@ -39,12 +39,12 @@
"@pika/plugin-build-node": "^0.9.0",
"@pika/plugin-build-web": "^0.9.0",
"@pika/plugin-ts-standard-pkg": "^0.9.0",
"@types/jest": "^25.1.0",
"jest": "^24.7.1",
"prettier": "2.0.3",
"@types/jest": "^26.0.0",
"jest": "^26.0.1",
"prettier": "2.0.5",
"semantic-release": "^17.0.0",
"semantic-release-plugin-update-version-in-files": "^1.0.0",
"ts-jest": "^25.1.0",
"ts-jest": "^26.0.0",
"typescript": "^3.4.5"
},
"files": [
@@ -73,5 +73,5 @@
"sideEffects": false,
"source": "dist-src/index.js",
"types": "dist-types/index.d.ts",
"version": "6.0.1"
"version": "6.0.5"
}