@octokit/core
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -60,3 +60,3 @@ 'use strict'; | ||
const VERSION = "3.1.0"; | ||
const VERSION = "3.1.1"; | ||
@@ -63,0 +63,0 @@ class Octokit { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "3.1.0"; | ||
export const VERSION = "3.1.1"; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "3.1.0"; | ||
export declare const VERSION = "3.1.1"; |
@@ -7,3 +7,3 @@ import { getUserAgent } from 'universal-user-agent'; | ||
const VERSION = "3.1.0"; | ||
const VERSION = "3.1.1"; | ||
@@ -10,0 +10,0 @@ class Octokit { |
{ | ||
"name": "@octokit/core", | ||
"description": "Extendable client for GitHub's REST & GraphQL APIs", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "files": [ | ||
"before-after-hook": "^2.1.0", | ||
"universal-user-agent": "^5.0.0" | ||
"universal-user-agent": "^6.0.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
@@ -272,8 +272,3 @@ # core.js | ||
```js | ||
const MyOctokit = Octokit.defaults({ | ||
foo: { | ||
opt1: 1, | ||
}, | ||
}); | ||
const octokit = new MyOctokit((options) => { | ||
const MyOctokit = Octokit.defaults((options) => { | ||
return { | ||
@@ -283,6 +278,9 @@ foo: Object.assign({}, options.foo, { opt2: 1 }), | ||
}); | ||
const octokit = new MyOctokit({ | ||
foo: { opt2: 1 }, | ||
}); | ||
// options will be { foo: { opt1: 1, opt2: 1 }} | ||
``` | ||
Be careful about mutating the `options` object directly, as it can have unforeseen consequences. | ||
Be careful about mutating the `options` object in the `Octokit.defaults` callback, as it can have unforeseen consequences. | ||
@@ -289,0 +287,0 @@ ## Authentication |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
48770
439
- Removedcross-spawn@6.0.6(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexeca@1.0.0(transitive)
- Removedget-stream@4.1.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedmacos-release@2.5.1(transitive)
- Removednice-try@1.0.5(transitive)
- Removednpm-run-path@2.0.2(transitive)
- Removedos-name@3.1.0(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedpump@3.0.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstrip-eof@1.0.0(transitive)
- Removeduniversal-user-agent@5.0.0(transitive)
- Removedwhich@1.3.1(transitive)
- Removedwindows-release@3.3.3(transitive)
Updateduniversal-user-agent@^6.0.0