mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-04-07 06:59:37 +00:00
Update packages, change to node16
This commit is contained in:
8
node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js
generated
vendored
8
node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js
generated
vendored
@ -7,13 +7,9 @@ export function addQueryParameters(url, parameters) {
|
||||
return (url +
|
||||
separator +
|
||||
names
|
||||
.map(name => {
|
||||
.map((name) => {
|
||||
if (name === "q") {
|
||||
return ("q=" +
|
||||
parameters
|
||||
.q.split("+")
|
||||
.map(encodeURIComponent)
|
||||
.join("+"));
|
||||
return ("q=" + parameters.q.split("+").map(encodeURIComponent).join("+"));
|
||||
}
|
||||
return `${name}=${encodeURIComponent(parameters[name])}`;
|
||||
})
|
||||
|
4
node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
generated
vendored
4
node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
generated
vendored
@ -1,7 +1,7 @@
|
||||
import isPlainObject from "is-plain-object";
|
||||
import { isPlainObject } from "is-plain-object";
|
||||
export function mergeDeep(defaults, options) {
|
||||
const result = Object.assign({}, defaults);
|
||||
Object.keys(options).forEach(key => {
|
||||
Object.keys(options).forEach((key) => {
|
||||
if (isPlainObject(options[key])) {
|
||||
if (!(key in defaults))
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
|
2
node_modules/@octokit/endpoint/dist-src/util/omit.js
generated
vendored
2
node_modules/@octokit/endpoint/dist-src/util/omit.js
generated
vendored
@ -1,6 +1,6 @@
|
||||
export function omit(object, keysToOmit) {
|
||||
return Object.keys(object)
|
||||
.filter(option => !keysToOmit.includes(option))
|
||||
.filter((option) => !keysToOmit.includes(option))
|
||||
.reduce((obj, key) => {
|
||||
obj[key] = object[key];
|
||||
return obj;
|
||||
|
8
node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
generated
vendored
Normal file
8
node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export function removeUndefinedProperties(obj) {
|
||||
for (const key in obj) {
|
||||
if (obj[key] === undefined) {
|
||||
delete obj[key];
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
12
node_modules/@octokit/endpoint/dist-src/util/url-template.js
generated
vendored
12
node_modules/@octokit/endpoint/dist-src/util/url-template.js
generated
vendored
@ -29,9 +29,7 @@ function encodeReserved(str) {
|
||||
.split(/(%[0-9A-Fa-f]{2})/g)
|
||||
.map(function (part) {
|
||||
if (!/%[0-9A-Fa-f]/.test(part)) {
|
||||
part = encodeURI(part)
|
||||
.replace(/%5B/g, "[")
|
||||
.replace(/%5D/g, "]");
|
||||
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
||||
}
|
||||
return part;
|
||||
})
|
||||
@ -39,11 +37,7 @@ function encodeReserved(str) {
|
||||
}
|
||||
function encodeUnreserved(str) {
|
||||
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
|
||||
return ("%" +
|
||||
c
|
||||
.charCodeAt(0)
|
||||
.toString(16)
|
||||
.toUpperCase());
|
||||
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
||||
});
|
||||
}
|
||||
function encodeValue(operator, value, key) {
|
||||
@ -132,7 +126,7 @@ function getValues(context, operator, key, modifier) {
|
||||
}
|
||||
export function parseUrl(template) {
|
||||
return {
|
||||
expand: expand.bind(null, template)
|
||||
expand: expand.bind(null, template),
|
||||
};
|
||||
}
|
||||
function expand(template, context) {
|
||||
|
Reference in New Issue
Block a user