@octokit/types 2.0.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@octokit/types",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "Shared TypeScript definitions for Octokit projects",
8
8
  "main": "src/index.ts",
9
+ "files": [
10
+ "src/"
11
+ ],
9
12
  "scripts": {
10
13
  "docs": "typedoc --module commonjs --readme none --out docs src/",
11
14
  "lint": "prettier --check '{src,test}/**/*' README.md package.json !src/generated/*",
@@ -31,13 +34,13 @@
31
34
  "handlebars": "^4.4.5",
32
35
  "lodash.set": "^4.3.2",
33
36
  "npm-run-all": "^4.1.5",
34
- "pascal-case": "^2.0.1",
37
+ "pascal-case": "^3.1.1",
35
38
  "prettier": "^1.18.2",
36
- "semantic-release": "^15.13.24",
39
+ "semantic-release": "^16.0.0",
37
40
  "semantic-release-plugin-update-version-in-files": "^1.0.0",
38
41
  "sort-keys": "^4.0.0",
39
42
  "string-to-jsdoc-comment": "^1.0.0",
40
- "typedoc": "^0.15.0",
43
+ "typedoc": "^0.16.0",
41
44
  "typescript": "^3.6.4"
42
45
  },
43
46
  "release": {
@@ -57,6 +60,6 @@
57
60
  ]
58
61
  },
59
62
  "dependencies": {
60
- "@types/node": "^12.11.1"
63
+ "@types/node": ">= 8"
61
64
  }
62
65
  }
@@ -1,9 +1,8 @@
1
1
  import { EndpointInterface } from "./EndpointInterface";
2
2
  import { EndpointOptions } from "./EndpointOptions";
3
+ import { OctokitResponse } from "./OctokitResponse";
3
4
  import { RequestParameters } from "./RequestParameters";
4
- import { ResponseHeaders } from "./ResponseHeaders";
5
5
  import { Route } from "./Route";
6
- import { Url } from "./Url";
7
6
 
8
7
  export interface RequestInterface {
9
8
  /**
@@ -33,19 +32,3 @@ export interface RequestInterface {
33
32
  */
34
33
  endpoint: EndpointInterface;
35
34
  }
36
-
37
- export type OctokitResponse<T> = {
38
- headers: ResponseHeaders;
39
- /**
40
- * http response code
41
- */
42
- status: number;
43
- /**
44
- * URL of response after all redirects
45
- */
46
- url: Url;
47
- /**
48
- * This is the data you would see in https://developer.Octokit.com/v3/
49
- */
50
- data: T;
51
- };
package/src/VERSION.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = "2.0.0";
1
+ export const VERSION = "2.1.1";