Socket
Socket
Sign inDemoInstall

@octokit/endpoint

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/endpoint - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

4

lib/merge.js

@@ -10,4 +10,4 @@ module.exports = defaultOptions

if (typeof route === 'string') {
const [method, url] = route.split(' ')
options = Object.assign({ method, url }, options)
let [method, url] = route.split(' ')
options = Object.assign(url ? { method, url } : { url: method }, options)
} else {

@@ -14,0 +14,0 @@ options = route || {}

{
"name": "@octokit/endpoint",
"version": "3.0.1",
"version": "3.1.0",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public",

@@ -111,3 +111,3 @@ # endpoint.js

<td>
If <code>route</code> is set it has to be a string consisting of the request method and URL, e.g. <code>GET /orgs/:org</code>
If <code>route</code> is set it has to be a string consisting of URL and the request method, e.g. <code>GET /orgs/:org</code>. If it’s set to a URL only the method defaults to <code>GET</code>.
</td>

@@ -114,0 +114,0 @@ </tr>

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