mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-12-16 23:26:47 +00:00
Add node modules and package files
This commit is contained in:
4
node_modules/@octokit/endpoint/dist-src/parse.js
generated
vendored
4
node_modules/@octokit/endpoint/dist-src/parse.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
import urlTemplate from "url-template";
|
||||
import { addQueryParameters } from "./util/add-query-parameters";
|
||||
import { extractUrlVariableNames } from "./util/extract-url-variable-names";
|
||||
import { omit } from "./util/omit";
|
||||
import { parseUrl } from "./util/url-template";
|
||||
export function parse(options) {
|
||||
// https://fetch.spec.whatwg.org/#methods
|
||||
let method = options.method.toUpperCase();
|
||||
@@ -19,7 +19,7 @@ export function parse(options) {
|
||||
]);
|
||||
// extract variable names from URL to calculate remaining variables later
|
||||
const urlVariableNames = extractUrlVariableNames(url);
|
||||
url = urlTemplate.parse(url).expand(parameters);
|
||||
url = parseUrl(url).expand(parameters);
|
||||
if (!/^http/.test(url)) {
|
||||
url = options.baseUrl + url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user