Skip to content

File tree

3 files changed

+17
-27
lines changed

3 files changed

+17
-27
lines changed

dist/main.cjs

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40203,24 +40203,19 @@ function lowercaseKeys(object) {
4020340203
}, {});
4020440204
}
4020540205
function isPlainObject(value) {
40206-
if (typeof value !== "object" || value === null)
40207-
return false;
40208-
if (Object.prototype.toString.call(value) !== "[object Object]")
40209-
return false;
40206+
if (typeof value !== "object" || value === null) return false;
40207+
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
4021040208
const proto = Object.getPrototypeOf(value);
40211-
if (proto === null)
40212-
return true;
40209+
if (proto === null) return true;
4021340210
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
4021440211
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
4021540212
}
4021640213
function mergeDeep(defaults, options) {
4021740214
const result = Object.assign({}, defaults);
4021840215
Object.keys(options).forEach((key) => {
4021940216
if (isPlainObject(options[key])) {
40220-
if (!(key in defaults))
40221-
Object.assign(result, { [key]: options[key] });
40222-
else
40223-
result[key] = mergeDeep(defaults[key], options[key]);
40217+
if (!(key in defaults)) Object.assign(result, { [key]: options[key] });
40218+
else result[key] = mergeDeep(defaults[key], options[key]);
4022440219
} else {
4022540220
Object.assign(result, { [key]: options[key] });
4022640221
}
@@ -40269,9 +40264,9 @@ function addQueryParameters(url, parameters) {
4026940264
return `${name}=${encodeURIComponent(parameters[name])}`;
4027040265
}).join("&");
4027140266
}
40272-
var urlVariableRegex = /\{[^}]+\}/g;
40267+
var urlVariableRegex = /\{[^{}}]+\}/g;
4027340268
function removeNonChars(variableName) {
40274-
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
40269+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
4027540270
}
4027640271
function extractUrlVariableNames(url) {
4027740272
const matches = url.match(urlVariableRegex);
@@ -40451,7 +40446,7 @@ function parse(options) {
4045140446
}
4045240447
if (url.endsWith("/graphql")) {
4045340448
if (options.mediaType.previews?.length) {
40454-
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
40449+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
4045540450
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
4045640451
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
4045740452
return `application/vnd.github.${preview}-preview${format}`;

dist/post.cjs

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40011,24 +40011,19 @@ function lowercaseKeys(object) {
4001140011
}, {});
4001240012
}
4001340013
function isPlainObject(value) {
40014-
if (typeof value !== "object" || value === null)
40015-
return false;
40016-
if (Object.prototype.toString.call(value) !== "[object Object]")
40017-
return false;
40014+
if (typeof value !== "object" || value === null) return false;
40015+
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
4001840016
const proto = Object.getPrototypeOf(value);
40019-
if (proto === null)
40020-
return true;
40017+
if (proto === null) return true;
4002140018
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
4002240019
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
4002340020
}
4002440021
function mergeDeep(defaults, options) {
4002540022
const result = Object.assign({}, defaults);
4002640023
Object.keys(options).forEach((key) => {
4002740024
if (isPlainObject(options[key])) {
40028-
if (!(key in defaults))
40029-
Object.assign(result, { [key]: options[key] });
40030-
else
40031-
result[key] = mergeDeep(defaults[key], options[key]);
40025+
if (!(key in defaults)) Object.assign(result, { [key]: options[key] });
40026+
else result[key] = mergeDeep(defaults[key], options[key]);
4003240027
} else {
4003340028
Object.assign(result, { [key]: options[key] });
4003440029
}
@@ -40077,9 +40072,9 @@ function addQueryParameters(url, parameters) {
4007740072
return `${name}=${encodeURIComponent(parameters[name])}`;
4007840073
}).join("&");
4007940074
}
40080-
var urlVariableRegex = /\{[^}]+\}/g;
40075+
var urlVariableRegex = /\{[^{}}]+\}/g;
4008140076
function removeNonChars(variableName) {
40082-
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
40077+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
4008340078
}
4008440079
function extractUrlVariableNames(url) {
4008540080
const matches = url.match(urlVariableRegex);
@@ -40259,7 +40254,7 @@ function parse(options) {
4025940254
}
4026040255
if (url.endsWith("/graphql")) {
4026140256
if (options.mediaType.previews?.length) {
40262-
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
40257+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
4026340258
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
4026440259
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
4026540260
return `application/vnd.github.${preview}-preview${format}`;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "create-github-app-token",
33
"private": true,
44
"type": "module",
5-
"version": "1.11.3",
5+
"version": "1.11.4",
66
"description": "GitHub Action for creating a GitHub App Installation Access Token",
77
"scripts": {
88
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy