mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-12-14 22:25:06 +00:00
Update packages, change to node16
This commit is contained in:
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