@octokit/endpoint
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -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> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19989
0