Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/core

Package Overview
Dependencies
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/core - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

2

dist-node/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc